Dec. 7, 2023, 4:55 a.m. | Tobi Sam

Towards Data Science - Medium towardsdatascience.com

How SQL Execution Orders Varies Across Databases

Why you can’t GROUP BY ordinal positions in SQL Server but can in others

Transact-SQL vs MySQL execution order (image by author)

After working regularly with open-source databases such as MySQL and PostgreSQL, I recently had the chance to work on a SQL Server project and discovered a subtle but important difference in the SQL landscapes. I observed that in SQL Server, I was unable to GROUP BY ordinal positions (GROUP BY 1, …

author bigquery chance databases image mysql orders ordinal postgresql project server sql sql-server work

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Principal Applied Scientist

@ Microsoft | Redmond, Washington, United States

Data Analyst / Action Officer

@ OASYS, INC. | OASYS, INC., Pratt Avenue Northwest, Huntsville, AL, United States