Selecting Top Records

//Selecting top 2 records among all records

SELECT TOP 2 * FROM PurchaseTable

SELECT TOP 3 * FROM PurchaseTable WHERE Code = ‘XX0001’  ORDER BY PurchaseDate DESC

About linnaryone
try to be a lady who can satisfy and have a positive thinking

Leave a comment