SELECT EmployeeID, LastName, EmployeeID % 2 FROM Employees WHERE EmployeeID % 2 = '0'
Also we can use Like Statement to achieve this::
Select * from Employees where ID Like '%[02468]' --for even number of records
Select * from Employees where ID Not Like '%[02468]' --for Odd number
of records
Comments
Post a Comment