Professional Documents
Culture Documents
Bug Catcher 09
Bug Catcher 09
Bug Catcher 1
SELECT * FROM (SELECT FirstName,LastName, EmpID, ROW_Number() OVER (ORDER BY FirstName) AS Position FROM Employee) AS EmpSort
Bug Catcher 2
WITH LocList AS (Address, Municipality, Region) (SELECT Street, City, State FROM Location) SELECT * FROM LocList
WITH LocList (Address, Municipality, Region) AS (SELECT City, State FROM Location) SELECT * FROM LocList
Bug Catcher 3
WITH LocList (Address, Municipality, Region) AS (SELECT City, State FROM Location) SELECT * FROM LocList
You must specify the same number of fields in your select list as specified in the column list of the CTE
WITH LocList (Address, Municipality, Region) AS (SELECT Street, City, State FROM Location) SELECT * FROM LocList
Bug Catcher 4
SELECT * FROM [Grant] WHERE EmpID IS NOT NULL COMPUTE SUM AS Amount