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

Conditional where

$
0
0
I need two tables to query together, but not if the value is blank(it is empty, not NULL) so I need a conditional WHERE statement likeWHERE IF(p.PartNoAlias='',,w.PartNoAlias=p.PartNoAlias) what is the correct syntax?

Viewing all articles
Browse latest Browse all 3145

Trending Articles