SQL Help
Hello to all you SQL experts. Can one of you provide a bit of assistance with the following problem? I've searched my textbook and can't figure out the answer.
I need to create SQL Select statements that would produce running summary files for reports on the following:
Customer volume by month
CustomerID, Month, Total shipments, Total weight
Driver performance by month
Driver ID, Month, Number of manifests on time, Number of manifests delivered late.
Any assistance would be greatly appreciated.
I need to create SQL Select statements that would produce running summary files for reports on the following:
Customer volume by month
CustomerID, Month, Total shipments, Total weight
Driver performance by month
Driver ID, Month, Number of manifests on time, Number of manifests delivered late.
Any assistance would be greatly appreciated.
Hello to all you SQL experts. Can one of you provide a bit of assistance with the following problem? I've searched my textbook and can't figure out the answer.
I need to create SQL Select statements that would produce running summary files for reports on the following:
Customer volume by month
CustomerID, Month, Total shipments, Total weight
Driver performance by month
Driver ID, Month, Number of manifests on time, Number of manifests delivered late.
Any assistance would be greatly appreciated.
I need to create SQL Select statements that would produce running summary files for reports on the following:
Customer volume by month
CustomerID, Month, Total shipments, Total weight
Driver performance by month
Driver ID, Month, Number of manifests on time, Number of manifests delivered late.
Any assistance would be greatly appreciated.
Hello to all you SQL experts. Can one of you provide a bit of assistance with the following problem? I've searched my textbook and can't figure out the answer.
I need to create SQL Select statements that would produce running summary files for reports on the following:
Customer volume by month
CustomerID, Month, Total shipments, Total weight
Driver performance by month
Driver ID, Month, Number of manifests on time, Number of manifests delivered late.
Any assistance would be greatly appreciated.
I need to create SQL Select statements that would produce running summary files for reports on the following:
Customer volume by month
CustomerID, Month, Total shipments, Total weight
Driver performance by month
Driver ID, Month, Number of manifests on time, Number of manifests delivered late.
Any assistance would be greatly appreciated.
from table
group by Customerid, Month
order by Customerid, Month
Like so?
SELECT a.customerid, a.month, SUM(b.[total shipments]), SUM(b.[total weight])
FROM table a
JOIN table b
ON a.customerid = b.customerid
AND b.month <= a.month
GROUP BY a.customerid, a.month
ORDER BY 1,2
and the same general idea for the second one. Not sure the definitions of 'volume' or 'performance'
Trending Topics
that or:
SELECT a.customerid, a.month, SUM(b.[total shipments]), SUM(b.[total weight])
FROM table a
JOIN table b
ON a.customerid = b.customerid
AND b.month <= a.month
GROUP BY a.customerid, a.month
ORDER BY 1,2
and the same general idea for the second one. Not sure the definitions of 'volume' or 'performance'
SELECT a.customerid, a.month, SUM(b.[total shipments]), SUM(b.[total weight])
FROM table a
JOIN table b
ON a.customerid = b.customerid
AND b.month <= a.month
GROUP BY a.customerid, a.month
ORDER BY 1,2
and the same general idea for the second one. Not sure the definitions of 'volume' or 'performance'
that or:
SELECT a.customerid, a.month, SUM(b.[total shipments]), SUM(b.[total weight])
FROM table a
JOIN table b
ON a.customerid = b.customerid
AND b.month <= a.month
GROUP BY a.customerid, a.month
ORDER BY 1,2
and the same general idea for the second one. Not sure the definitions of 'volume' or 'performance'
SELECT a.customerid, a.month, SUM(b.[total shipments]), SUM(b.[total weight])
FROM table a
JOIN table b
ON a.customerid = b.customerid
AND b.month <= a.month
GROUP BY a.customerid, a.month
ORDER BY 1,2
and the same general idea for the second one. Not sure the definitions of 'volume' or 'performance'







