Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Using Or within a clause with multiple ANDs

$
0
0
I think i need to put my OR in (), but not sure how . . query runs longer than it should..

I want SITE_ID to be LIke 'AP%' OR Like 'G9%' then the other ANDs.

[code language="sql"]HAVING
Q.PERI

Viewing all articles
Browse latest Browse all 3145

Trending Articles