I have a query
SELECT employeedept, execoffice_status, employee, COUNT(*) AS 'employeetotal', YEAR_cse1 =YEAR(execoffice_date)
FROM CSEReduxResponses
WHERE execoffice_status = 1
GROUP BY employeedept, execoffice_status, YEAR(execoffice_date), employee
order by [YEAR_cse1],
LIMIT 20
Which when I add the LIMIT it gives me a error "Incorrect syntax near '20'.". Is there another way to get the top 20?
I have Microsoft SQL Server Management Studio 10.0.2531.0, SQL server 2008.