Blog gw

“NOT IN” statement di SQL

Posted by dillah2008 on July 31, 2008

Awalnya sebel banget kenapa ga bisa menggunakan statement ini, setelah dicek ternyata ketemu satu permasalahan yaitu select yang mau dibandingkan tidak boleh ada null nya.

select t1.a,t1.b from t1 where ti.a not in (selec k1.a from k1 where k1.a is not null)

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>