Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. NaderC

    Simple Group By

    Yes PHV, I got something like this, thank you. SELECT od.ItemNumber, o.InvoiceDate, od.UnitPrice FROM Orders o INNER JOIN OrderDetails od ON o.OrderNumber = od.OrderHeaderNumber INNER JOIN Customers c ON o.CustomerCode = c.CustomerCode INNER JOIN (--==== Derived table "d" finds...
  2. NaderC

    Simple Group By

    Just another note: ItemNumber can also come from the OrderDetails table.
  3. NaderC

    Simple Group By

    which table is ClientOrderDate in? ItemNumber comes from the Products table. ClientOrderDate comes from the Orders table. UnitPrice comes from the OrderDetails table. OrderType comes from the Orders table. CustomerCode comes from the Orders table. why would OrderDetails have multiple prices...
  4. NaderC

    Simple Group By

    Hi, I have a database of products, orders and order details. I am trying to write a query that returns the most recent unit prices. This means that I need to see each item that has been sold, and it's most recent price sold. This is what I wrote so far: SELECT ItemNumber, Max(ClientOrderDate)...

Part and Inventory Search

Back
Top