GeoServer: Getting More Out of SQL Viewshttp://boundlessgeo.com/2015/03/support-story-getting-sql-views/