Hi there, welcome to the forums. Check out CASE in Books Online for more detailed info, but the following should get you going:create table yourTable ([name] varchar(10), address varchar(25), zipcode varchar(5), customer_end_date datetime)insert into yourTable select 'Nathan', '123 Main Street', '92109', getdate() + 10 union select 'Natalie', '321 Main Street', '94583', getdate() -10gocreate view v_testasselect [name], address, zipcode, case when customer_end_date > getdate() then 'P' else 'I' end as 'status'from yourTablegoselect * from v_testdrop view v_testgodrop table yourTablego
Nathan Skerl