Mysql – SQL : Find Differences between columns and only till 12 rows and then sum the differences
I am looking for SQL to Find Differences between columns and only till 12 rows and then sum the differences. For example this is the table I have TAB_PAYOUT. Column DIFFERENCE is calculated by substracting the value of column PAY…