Bhuvnesh (10/8/2013)
select * from TABLE where countryid = @countryselect * from TABLE where countryid = @country OR stateID = @stateid
select * from TABLE where countryid = @country OR stateID = @stateid OR Cityid = @Cityid
Here @country ,stateID and @Cityid are parameters.
+1
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/