I'm not sure how to go about this. In my tbl_Project_Employee below I have 4 dummy records. I need a query that selects where the employee_type_id = 48 if it exists; otherwise I select where the employee_type_id = 22. I've shown below the table what my results should be.
Thanks,
Sherry
SQL:
[pre]
tbl_Project_Employee
ProjectID Employee_Type_ID Employee_Type_Desc Email
001 48 Public_Contact john.doe@anywhere.com
001 22 Project_Manager jane.doe@anywhere.com
002 48 Public_Contact susan.jones@anywhere.com
003 22 Project_Manager david.howard@anywhere.com
Results S/B:
ProjectID Employee_Type_ID Employee_Type_Desc Email
001 48 Public_Contact john.doe@anywhere.com
002 48 Public_Contact susan.jones@anywhere.com
003 22 Project_Manager david.howard@anywhere.com
[/pre]
Thanks,
Sherry