How can I get only the first few rows, After I performed order by to a table?
In SQL 2012, let's say I have a table:
----------------------
| Sales | ProductType |
----------------------
120 | Foodstuff
100 | Electronic
200 | Mobile
Now the problem is: I select with order by Sales DESC
and I only want to get 2 rows.