Requête avec concaténation
Bonjour,
Je souhaite faire une requête qui concatène deux champs et je souhaite afficher les champs LineAmount, SalesPrice, etc.
Voici ma requête:
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| SELECT
ItemID,
CustAccount,
(ItemID + ', ' + CustAccount) as ArtClient,
max(CREATEDDATETIME) as DateMaxi
FROM SALESLINE
group by
ItemID,
CustAccount
ORDER BY
CustAccount,
ItemID |
Par contre comment faire pour afficher également les colonnes LineAmount et SalesPrice en laissant la concaténation sur ItemID et CustAccount ?
Par avance merci.