Jump to content

query


japanyim

Recommended Posts

this may work for you
select * from table2 t2 where not exists 	(select * from table1 t1 where t1.codeId = t2.memberId)

SELECT * FROM courses A2WHERE EXISTS (SELECT * FROM registration A1WHERE A1.first_choice_code = '0')#1064 - You have an error in your SQL syntax near 'exists (select * from registration A1 Where A1.first_choice_code = '0') LIMIT 0,' at line 3
Link to comment
Share on other sites

select memberID from table2 where memberID=5

sorry, I had too! Could you be more specific about the conditions and the results you want?

thanks you!!but I have more conditions 1.i don't know i have how many id2.and i need do the conparation
Link to comment
Share on other sites

Archived

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

×
×
  • Create New...