i have a task
@state varchar(50),
@location varchar(50)
as
begin
end
if he pass state="",location="" then select all institutes in country
if he pass state value then select institutes in that state
if he pass location also value then select institutes in that particular location
how to write query
please help me

Tapan PatelRank #614 · 3.9K reputationPosted Aug 31, 2016, 6:42 AM EDT
Midhun TpRank #388 · 6.5K reputationPosted Aug 31, 2016, 3:21 AM EDT
ketan borsdiyaRank #2,258 · 624 reputationPosted Aug 31, 2016, 4:23 AM EDT
Santosh Sasupalli178 reputationPosted Aug 31, 2016, 6:43 AM EDT