Jump to content

sql


Guest asherww11

Recommended Posts

Guest asherww11

help!!! everyone who knows the northwind database of access i have to select the category names and the most expensive products from each category(there are 8 kinds of categories)i have tried this:(but nothing)SELECT categories.CATEGORYNAME, productname,MAX (products.unitprice), DISTINCT( products.unitprice)FROM products, categoriesWHERE products.productid = categories.categoryidGROUP BY productname

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...