Skip to content
Advertisement

How to compare database data in php

I want to compare the database data in the php.

This is my table

hospital_payment_data table

JavaScript

cash_receipt_publish table

JavaScript

This is my sql syntax

JavaScript

in this web page result

enter image description here

I Want result

If the date and the amount match or the amount match, I would like to express it as False by comparing the table with the table in cash_receipt_public.

JavaScript

Advertisement

Answer

I think you can use a full join;

JavaScript

EDIT:

In MariaDB, you can use:

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