SQL Left Join Omit Rows Found -


i have 2 tables 1 list transactions , 1 list cancelled. how show transactions not cancelled , omit cancelled ones?

enter image description here

i want show transactions not cancelled, in case transaction transaction_id = 1.

select *  transaction_table  transaction_id not in (     select transaction_id      canceled_table); 

however, looking @ example suggest add field "canceled" transaction_table instead of using seperate table.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

xcode - Swift Playground - Files are not readable -

jboss7.x - JBoss AS 7.3 vs 7.4 and differences -