Hello all,
I have a query that I am working on and I need to add another field to it, but I am unsure how to do it. Here is my current working query. I need to add in a count of CartonID's where the CartonID = '?????????'. Any ideas how to do this?
I have a query that I am working on and I need to add another field to it, but I am unsure how to do it. Here is my current working query. I need to add in a count of CartonID's where the CartonID = '?????????'. Any ideas how to do this?
Code:
SELECT ContNum, DoorNum, RecDate,COUNT(CartonID) as total
FROM Details
WHERE ContNum = 'Truck_123'
GROUP BY ContNum, DoorNum, RecDate