SELECT EmpId
FROM EmployeeSalary
WHERE Project <>'P1';
SELECT E.EmpFname, E.EmpLname, P.EmpPosition
FROM EmployeeInfo E INNER JOIN EmployeePosition P ON
E.EmpID = P.EmpID AND P.EmpPosition IN ('Manager');
1
SELECT TOP N * FROM EmployeePosition ORDER BY Salary DESC;
1
SELECT SUBSTRING(EmpLname, 1, 4) FROM EmployeeInfo;
1
SELECT EmpID FROM (SELECT rowno, EmpID from EmployeeInfo) WHERE MOD(rowno,2)=0;
1
SELECT EmpID FROM (SELECT rowno, EmpID from EmployeeInfo) WHERE MOD(rowno,2)=1;
SELECT SUBSTRING(Address, 1, CHARINDEX('(',Address)) FROM EmployeeInfo;