sql - Checking for two fields in a record -



sql - Checking for two fields in a record -

i trying eliminate records both fields match given values table.

select code, num table_a (code not in (select code table_b) , num not in (select num table_b))

however seems eliminate records have either of these values. need eliminate records have both matching given record table2. or seems counter-intuitive here?

select code, num table_a ta not exists (select 1 table_b tb tb.code=ta.code) , not exists (select 1 table_b tb tb.num=ta.num)

sql

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -