I think i posted this in the wrong place, so i'll put it here
Hi,
Is there a way (through case or if statements i assume) to select rows from a table depending on a parameters value?
i.e.
@customerID int
if customerID = (certainValue)
select * from Table where customerID = @customerID
else
select * from table
Thanks for your time
Lee