I have 2 queries one is a Sub Query that look something like thisSELECT A.INVOICE ,A.DATE ,B.PAYFROM TABLE ALEFT JOIN (SELECT ,INVOICE ,POST_DATE ,SUM(PAY) AS PAY FROM TABLE B GROUP BY INVOICE) B ON A.INVOICE = B.INVOICE
I want to show all records in table A and only the Pay from table B where the B.Post_Date >= A.DATE How can I pass the Date from the first query to the Sub query so that the Sub query will only pull payments where the Post_Date >= Date from the first query?Any help is greatly appreciated....BrianBrian