Microsoft
Software
Hardware
Network
Question : MySQL Query Where Not Exists
Given table1 with rows id,type,name and table2 with rows id,priority,level
Some of the id's in table2 are also in table1, but in this case, I want to select all id's from table1 that do NOT have a matching id in table2.
What's the simplest way to build this query?
Answer : MySQL Query Where Not Exists
this trick will do;
1: 2: 3: 4: 5:
select t1. from table1 t1 LEFT JOIN table2 t2 ON t1.id = t2.id WHERE t2.id IS NULL
Random Solutions
return max for each group
how to do selective sorting based on contents of a column
Upgrade PHP to 5.3 version (or 5.2 eventually) on Plesk 9.5.2
TRY and CATCH
Import vs. link
Disable Wireless adapters when Laptops are connected to LAN
Excel and Sharepoint locking issue
Unable to view certain websites internally on several OSx boxes
Not downloading Offline address book files. A server (URL) could not be located. 0X8004010F
Counting number of checked checkboxes in a form (when checkboxes are all named differently)