SQL

SQL snippets and guidance for database development. Covers key topics like choosing between single and multiple LINQ to SQL data contexts for your data layer architecture, and simulating Oracle-style rownum functionality in MySQL queries.

server

Rownum Simulation with MySQL

I recently had the need to SELECT some data from MySQL tables and include a “rownum” column on each row. For example, I needed some results that looked like this:…