SQL First Function
Via Scoop.it – XQuery & T-Sql
This allows you to obtain aggregation information for individual rows in a result. Unfortunately, this does not work in MySQL, but it does work in both Oracle and T-SQL (transact SQL, which is what MS SQL Server uses).
Via geeklad.com







