SQL Left Join Omit Rows Found -
i have 2 tables 1 list transactions , 1 list cancelled. how show transactions not cancelled , omit cancelled ones?
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
Post a Comment