I am getting the following message when I run this query:
You tried to execute a query that does not include the specified expression 'Date' as part of an aggregate function
What am I missing?
thanks
You tried to execute a query that does not include the specified expression 'Date' as part of an aggregate function
Code:
SELECT A.Date, A.Cust_Name, A.SO_No, (select count(*) from SPnoteOrder_tbl as B where B.LineNO < A.LineNO and A.ComputerName = b.computerName)+1 AS Rank, A.ComputerName, A.FriendlyName, A.License_PartNo, A.Part_No, A.System, A.NW_Ver, A.Country INTO Order_tbl
FROM SPnoteOrder_tbl AS A
GROUP BY A.NW_Ver;
What am I missing?
thanks