I have two tables, one of which has personnel details And the second table of visits is the doctor How can I do it by date Display the report of the expenses paid by each doctor