Jump to content

[SOLVED] mysql exists function problem


lenerd3000

Recommended Posts

hi,

suppose i have 2 table. i want to get all the records from table1 where table1's id is not exist in table2. how can do that.

my code is like this:

 

SELECT * FROM students WHERE status = 'Verified' AND not EXISTS(SELECT studentid FROM records WHERE (fname = 'joe'))

 

nothing happen for that. pls help. mysql version is 5.0

Link to comment
https://forums.phpfreaks.com/topic/89454-solved-mysql-exists-function-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.