Dear Experts
Can you please suggest
How do i Convert the following two queries into one query
(SELECT SUM(Qty+QtyFree) AS TOT_IN
FROM detail AS D
WHERE TTYPE IN ('P','R','T')
GROUP BY BID),
(SELECT SUM(Qty+QtyFree) AS TOT_OUT
FROM detail
WHERE TTYPE IN ('S','B','A')
GROUP BY BID)
THANKS
Nitin SontakkeRank #264 · 9.6K reputationPosted Jun 29, 2019, 1:36 AM EDT
Vishal PatelRank #3,290 · 437 reputationPosted Jun 27, 2019, 9:47 PM EDT
Vikas Gore62 reputationPosted Jun 27, 2019, 9:50 PM EDT
Shaik Ali37 reputationPosted Jun 30, 2019, 7:24 AM EDT
Gajendra JangidRank #157 · 14.9K reputationPosted Jun 30, 2019, 10:17 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts