Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Do I Pull The Latest Record?
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01176703
Message ID:
01176918
Vues:
8
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform