Hi.,
This is my Query:
If i know the BusinessUnit ID i have to pass in where clause, Like the Query shown below,
select * from tblHRIMS_EmployeeDetail
where nvrResignedStatus='No' and nvrBusinessUnit= 'BSU-001'
Resultant of this query i query is : 500 Rows
If i dont know the BusinessUnit Id i don't need to pass in where clause, Like the Query shown below,
select * from tblHRIMS_EmployeeDetail
where nvrResignedStatus='No'
Resultant of this query i query is : 1500 Rows
How change the Where clause dynamically, according to input given.
Note: I need in only SQL Query, not by Stored Procedure.
Regards,
V.Somasundaram