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
Crystal Reports 11 (migrating from 8.5) and VB6 using RDO resultset as datasource
Rundll error error loading F3SCRCTR.DLL
PHP 5.3.2 installation problem on Vista IIS7
PL/SQL Export table data to .csv file and save; launch Excel inside PL/SQL and load saved .csv file
Should Sys Admins (Domain Admins) also have user accounts?
SQL 2005 Select Query from multiple tables
Cisco 851 router installation blocks XP File and Print Services functionality for attached client PC's.
Need a random list of 1000 geocoded locations in any one country
FTP not working on Windows Server 2008 IIS 7
Displaying GroupWise contacts in Exchange address book?