Skip to content

Tag: sql

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 …

How to compare two sets

I need to get all aid’s values which have cid != 40 and cid= 39 (many-to-many connection) I’ve prepared two queries but i don’t know how to except second from first SELECT DISTINCT aid FROM …