I have tblinv with this type of data:
InvID-----------------invJ
obID------
----------
-------Inv
Total
1-----------------------2-
----------
----------
------1000
.00
2-----------------------2-
----------
----------
------2000
.00
3----------------------3--
----------
----------
------1500
.00
4----------------------3--
----------
----------
------2000
.00
Another tblpay:
payID-----------------payJ
obID------
----------
-------Inv
Total
1-----------------------2-
----------
----------
------500.
00
2-----------------------2-
----------
----------
------2000
.00
3----------------------3--
----------
----------
------500.
00
4----------------------3--
----------
----------
------1500
.00
another tbljob with a JobID that is the primary key that is tied to payJobID and invJobID
I want a sql statment that will output it like this
JobID---------------------
--InvTotal
s---------
--------Pa
yTotal----
----------
-Balance
2-------------------------
----3000.0
0---------
--------25
00.00-----
----------
500.00
3-------------------------
----3500.0
0---------
-------200
0.00------
----------
1500.00
Can it be done??? Thanks for your help!!!!
Start Free Trial