Hello-
Need a little help with queries. I have two tables, one holds all of patient demo and the second has charges, payments and adjustments.
This is how the data looks on the second table
BillingProviderLastName PtAcct SvcDateStamp FinTransDateStamp Charges Payments Adjustments PtProcCodeCPT TransType TransDesc John 3585 9/5/2013 9/9/2013 $150.00 20610 Charges Charges John 3585 9/5/2013 9/9/2013 $100.00 99214 Charges Charges John 3585 9/5/2013 9/9/2013 $25.00 J1030 Charges Charges John 3585 9/5/2013 10/21/2013 $50.00 20610 Adjustments Adjustment - Contractual John 3585 9/5/2013 10/21/2013 $100.00 20610 Payments Ins Pay Lockbox John 3585 9/5/2013 10/21/2013 $50.00 99214 Adjustments Adjustment - Contractual John 3585 9/5/2013 10/21/2013 $50.00 99214 Payments Ins Pay Lockbox John 3585 9/5/2013 10/21/2013 $20.00 J1030 Payments Ins Pay Lockbox John 3585 9/5/2013 6/16/2014 $5.00 20610 Adjustments ADJ - OFFDISC $275.00 $170.00 $105.00
I Would like the data to look like this
BillingProviderLastName PtAcct SvcDateStamp PtProcCodeCPT Charges Payments Adjustments John 3585 9/5/2013 20610 $150.00 $100.00 $50.00 John 3585 9/5/2013 99214 $100.00 $50.00 $50.00 John 3585 9/5/2013 J1030 $25.00 $20.00 $5.00 $275.00 $170.00 $105.00