hey all,
first off i'm not the best at sql so bear with me.....
doing a query that has mutiple where clauses in it (using 'and' obviously) however after data has met this long list of where's i need to apply a sort of 'or' clause but all the previous where clauses still need to be adhered to - will it work with just the 'or'?
in the past i used to do something along the lines of
declare @str varchar(1000)
then set @str to be the long list of clauses etc then add my new clauses to end of the @str
however its been a while and i can't remember the syntax for it. or am i way off here?
any help greatly appreciated!
first off i'm not the best at sql so bear with me.....
doing a query that has mutiple where clauses in it (using 'and' obviously) however after data has met this long list of where's i need to apply a sort of 'or' clause but all the previous where clauses still need to be adhered to - will it work with just the 'or'?
in the past i used to do something along the lines of
declare @str varchar(1000)
then set @str to be the long list of clauses etc then add my new clauses to end of the @str
however its been a while and i can't remember the syntax for it. or am i way off here?
any help greatly appreciated!