Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DateTime = max(DateTime),
- OrderNo,
- ProductNo,
- Value,
- Brand,
- BrandName,
- LinkUp,
- KDF,
- StartDate,
- CompletionDate,
- ID_AVG,
- Consumption = AVG(Consumption)
- FROM
- (....) S1
- GROUP BY
- OrderNo,
- ProductNo,
- Value,
- Brand,
- BrandName,
- LinkUp,
- KDF,
- StartDate,
- CompletionDate,
- ID_AVG
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement