Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Select to retrieve the 10 max values
am rather a newbie...but i was wonder what select statement i can use to retreieve the 10 top values from a table...for instance the 10 books that sell the most.... whit the largest numbers for noofsales
Select title, author, price, noofsales where noofsales between ????
if use between i need 2 values the MAX(noofsales) that would give me one value for the between..how do i find the 10 value?
or is there another select one could use?
0 · ·