Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

help with complex query

$
0
0

hi

i have a subqury below like

select count(Weigh),sum(Weigh) from myTable where id=120 and status=0

select count(Weigh),sum(Weigh) from myTable where id=120 and status=2

select count(Weigh),sum(Weigh) from myTable where id=120 and status=3

i want return them in a query

please help me

thanks 


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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