The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
ok im trying to figure out a way to compare a table to another to find rows that no longer have a parent. similar to orphan thread but my only problem is that the column names are different but hold the same data. so the USE() function isnt possible and i do not think ON() will work because it will only find the rows that do coinside with table 1 from table 2. basically i want find journals that no longer have journalists and remove them.
|
|
#2
|
||||
|
||||
|
what i'd personally do is run a high tensity script doing all the work in php.
PHP Code:
|
|
#3
|
||||
|
||||
|
thanks for the suggestion but not what i was looking for
|
|
#4
|
||||
|
||||
|
Quote:
|
|
#5
|
||||
|
||||
|
Code:
SELECT * from table1 LEFT JOIN table2 ON (table1.column1 = table2.column2) WHERE table2.column2 = NULL |
![]() |
|
|