Upload
others
View
3
Download
0
Embed Size (px)
Citation preview
Thomas_Zena_GreenwoodHighSchool_WI_Job1
This table will contain information about the customers, their orders, and their sales rep number
This table will contain information about the sales reps at Floral Frenzy
Thomas_Zena_GreenwoodHighSchool_WI_Job2
Thomas_Zena_GreenwoodHighSchool_WI_Job3
Thomas_Zena_GreenwoodHighSchool_WI_Job4
SELECT Customer.[Customer Name], Customer.[Customer ID], Customer.[Amount Purchased]
FROM Customer;
Thomas_Zena_GreenwoodHighSchool_WI_Job5
SELECT [Sales Rep].[Sales Rep Last Name], [Sales Rep].[Employment Date]
FROM [Sales Rep]
WHERE ((([Sales Rep].[Employment Date])<=#9/9/2010#))
Thomas_Zena_GreenwoodHighSchool_WI_Job5
ORDER BY [Sales Rep].[Employment Date];
Thomas_Zena_GreenwoodHighSchool_WI_Job6
SELECT Customer.[Customer Name], [Sales Rep].[Sales Rep ID], Customer.[Amount Purchased]
FROM [Sales Rep] INNER JOIN Customer ON [Sales Rep].[Sales Rep ID] = Customer.[Sales Rep ID];
Thomas_Zena_GreenwoodHighSchool_WI_Job7
SELECT Avg(Customer.[Amount Purchased]) AS [AvgOfAmount Purchased], [Sales Rep].[Sales Rep Last
Name], [Sales Rep].[Sales Rep ID]
FROM [Sales Rep] INNER JOIN Customer ON [Sales Rep].[Sales Rep ID] = Customer.[Sales Rep ID]
GROUP BY [Sales Rep].[Sales Rep Last Name], [Sales Rep].[Sales Rep ID]
Thomas_Zena_GreenwoodHighSchool_WI_Job7
ORDER BY [Sales Rep].[Sales Rep ID];
Thomas_Zena_GreenwoodHighSchool_WI_Job8