Using SQL like Excel - First example
In my previous post, I have shown the relation between SQL MODEL clause and an Excel spreadsheet.
In this post, you can see a sample on how it works. It is a first of a few posts I'll write on MODEL clause.
In the post, you can see how to realize the same result in SQL.
In the following image, King haven't the percentage of commission, but I set it with the formula C14*0,45 (here I'm using the comma as decimal separator). How you can see, in the spreadsheet, only King the salary_bonus is modified
SQL allow you to obtain the same result