This stored procedure can be used to build new tables in MySQL which can then can be used like Common Table Expressions (CTEs) in MS SQL Server/SSRS.
This statement:
- Builds a table from a variable name.
- Loads specific columns from another table into the new table.
- The procedure can then be called multiple times to form different tables.
- From there, you can do various SELECT statements and joins to process your data comparisons.
Link to Gist on GitHub: https://gist.github.com/jushusted/5853529
Resullt: http://jsfiddle.net/jushusted/YqWhX/embedded/result/
Loading ....
No comments:
Post a Comment