How to join two query in SQL (Oracle)

Posted by MAHESH A SONI on Stack Overflow See other posts from Stack Overflow or by MAHESH A SONI
Published on 2010-06-03T07:04:09Z Indexed on 2010/06/03 7:14 UTC
Read the original article Hit count: 188

Filed under:

How can I join these queries?

SELECT RCTDT, SUM(RCTAMOUNT), COUNT(RCTAMOUNT) FROM RECEIPTS4
WHERE RCTDT BETWEEN '01-nov-2009' AND '30-nov-2009' 
AND RCTTYPE='CA' AND RCTAMOUNT>0
GROUP BY RCTDT

---

SELECT RCTDT, SUM(RCTAMOUNT), COUNT(RCTAMOUNT) FROM RECEIPTS4
WHERE RCTDT BETWEEN '01-nov-2009' AND '30-nov-2009' 
AND RCTTYPE='CQ' AND RCTAMOUNT>0
GROUP BY RCTDT

© Stack Overflow or respective owner

Related posts about oracle9i