SQL Query Clarification

前端 未结 4 655
耶瑟儿~
耶瑟儿~ 2021-01-23 20:37

I have two tables doctor and billing. I wish to view the dname,doctorid and sum(fees) of doctors treating more than one patient.

doctor table columns are as follows:

4条回答
  •  耶瑟儿~
    2021-01-23 20:58

    FROM billing b,doctor d ON b.doctorid=d.doctorid should be FROM billing b inner join doctor d ON b.doctorid=d.doctorid

提交回复
热议问题