SELECT CASE col1 WHEN 'M' THEN 'Manager' ELSE 'Employee' END as EmpType
FROM tablename
You can use a CASE statement. Books online has a very good reference for using CASE.|||Thanks - works great!
SELECT CASE col1 WHEN 'M' THEN 'Manager' ELSE 'Employee' END as EmpType
FROM tablename
You can use a CASE statement. Books online has a very good reference for using CASE.|||Thanks - works great!
No comments:
Post a Comment