Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Do I Pull The Latest Record?
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01176703
Message ID:
01176918
Views:
7
>I have a customer header and customer line items table.
>
>I want to pull the header and LATEST line item record joined
>together.
>
>How do I do this?

select * from customer c
left join OrderHeaders oh
on c.CustID = oh.CustID
where ordernumber =
(Select max(Ordernumber) from OrderHeader)
Previous
Reply
Map
View

Click here to load this message in the networking platform