We start this thread by mentioning the Yahoo Query Language, YQL
The Yahoo Query Language is an expressive SQL-like language that lets you query, filter, and join data across Web services. With YQL, apps run faster with fewer lines of code and a smaller network footprint
PL/SQL stands for Procedural Language extension of SQL. It is is a combination of SQL along with the procedural features of programming languages. It was developed by Oracle Corporation in the early 90’s to enhance the capabilities of SQL. This language is also implemented as part of other languages like Python http://www.postgresql.org/docs/9.3/static/plpython.html perl http://www.postgresql.org/docs/9.3/static/plperl.html etc http://www.postgresql.org/docs/9.3/stat ... al-pl.html
2. SQL Windows functions.
A window function performs a calculation across a set of table rows that are somehow related to the current row. This is comparable to the type of calculation that can be done with an aggregate function. But unlike regular aggregate functions, use of a window function does not cause rows to become grouped into a single output row — the rows retain their separate identities. Behind the scenes, the window function is able to access more than just the current row of the query result.
Source: http://www.postgresql.org/docs/9.3/stat ... indow.html
3. Reated links
http://www.amazon.com/PostGIS-Action-Re ... 617291390/
http://www.amazon.com/Practical-Postgre ... 0054RCT7Q/