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) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -