Skip to content
Advertisement

Tag: mysql

Exclude records from query based on two joined tables results

I have an app that is used to inspecting residence rooms at a university. Staff goes through the rooms and inspects based on the list of inspection items and marks the condition as a pass or fail. every inspection has 25 detail lines that can be marked with a pass or fail table 1 is the inspection table insp_no, Description,

Referencing the count in object PHP

I’m trying to reference COUNT(*) from the object below. I grab the date using $the_date = $obj2->the_date as per the below example, but how do I reference count? Of course using COUNT(*) will throw …

SQL Query not return values

Im running a bit of SQL on my php app, its meant to return a value that gets compared to the value that does get returned. The query is returning two of the 4 values that i need. I’ve tried to …

Advertisement