r/SQL • u/Livid-Explanation215 • Jul 15 '26
SQL Server how to solve this ??
Consider a table named "Sales" with columns: SalespersonID, CustomerID, SaleDate. Write a SQL query to calculate the salesperson who made the highest number of sales each quarter.
0
Upvotes
View all comments
Show parent comment
1
u/Yavuz_Selim Jul 15 '26
The query should run. It uses the columns and table mentioned.
The flair is 'SQL Server' - if MSSQL is not used, the query might fail to run - not every flavour of SQL supports DATEPART for example.