Skip to content
Advertisement

How do I retrieve data from two tables?

I was on the “hospital_payment_data” table. I want to call up the data of the number of data, the cache_account_received sum, and the total_medical_bills sum, and then bring up the mount sum value from the cash_recipit_rowtable to express. What should I do?

  1. hospital_payment_data

    enter image description here

  2. cash_receipt_row

    enter image description here

I want result

enter image description here

However, sending the following queries results in the following:

wrong result

enter image description here

Advertisement

Answer

Try this.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement