Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

Where Clause in T-Sql

$
0
0

Hi,

I am trying to use following conditions in my where clause but trying make sure that i ma using correct way.
Requirement: need to change, see below:
a.   Program <> 35 and acct1 <> 1
b.   Program = 30, 31 and acct1 =6
My Where clause is correct as below?
    WHERE TYPE <> 35 AND ACCT1 <> 2
    AND TYPE IN (30, 31) AND ACCT1 = 6

Thanks


Viewing all articles
Browse latest Browse all 4871

Trending Articles