*Updated with comments from MySQL at end of post. *
I’ve worked with a lot of the different flavors of SQL, including Oracle, SQL Server, Postgres, and SQLite, so I thought I knew all nuances of different SQL syntaxes. But I’ve recently been working with a project that’s using a LAMP stack, so I’ve gotten a lot more understanding of the MySQL’s caveats.
I’m working on some data manipulation that requires window functions in MySQL, and I learned the hard way that MySQL doesn’t support them.
Window functions are essential to most types of data manipulation because they allow for calculation across similar groups of rows without having to actually group the rows together and meld the data.
This kind of aggregation comes up all the time in business analysis and data science, for example, if …
[Read more]