Skip to content
Advertisement

List which has no reports submitted

I have two tables in MySQL database.

  1. tbl_sites (similarly around 3500 sites)
  1. tbl_reports (Similarly multiple reports from each sites)

I want to get the list of sites by site name, where the report count is still zero. A report is considered as successfully submitted when the report_status = 2.

Advertisement

Answer

Using exists logic we can try:

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