Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

casestament

$
0
0

i have an issue in case statement  question i have one table t there are two column firest one item and second size item would be like

item             size

a                1

b                1

c               0

d              1

e              0

when i write a query  and pass yes in where condition then select all 1 in size column or pass no then select 0 and pass all then show all 0 and 1


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>