0
/In this case I want to take all orders made in 1997 and the value of the 10 best and show however the years is in the Orders table and the value is in the Orders Details table/
select Orderdate From Orders Where Year (Orderdate) = 1997 Order by Orderdate
Select TOP(10) (Quantity*Unitprice) as Total From [Order Details] Order By Total desc
Is there a field that correlates the rows of each table? If it exists use JOIN.
– anonimo
pf edit your question, the title is confused, and put in question tbm the structure of tables
– Ricardo Pontual