We are using that Pubs DB if anyone is familiar with that..
I have two tables I getting data from. They are Titles and Sales.
I need to grab the top ten selling titles.
select titles.title, sales.qty from titles,sales where
sales.qty=(Select min(qty)from sales) and titles.title_id=sales.title_id
this grabs the book that has sold the least amount of books. I am not sure how to write a statement that says, "give me the top ten sales". I can get the max but that doesn't help either.
What is the damm syntax I am looking for..?!!?
I have two tables I getting data from. They are Titles and Sales.
I need to grab the top ten selling titles.
select titles.title, sales.qty from titles,sales where
sales.qty=(Select min(qty)from sales) and titles.title_id=sales.title_id
this grabs the book that has sold the least amount of books. I am not sure how to write a statement that says, "give me the top ten sales". I can get the max but that doesn't help either.
What is the damm syntax I am looking for..?!!?