sql - Regarding combining queries into one -
I have queries and I have executed the query ..
The first TXN_HEADER table is from TXN_HEADER
select * where txhd_receipt_id = 'receipt_id_val' and while_short_desc = 'to_no_val' From the TXN_HEADER table, we get transaction_no values (such as txhd_txn_nr) that use TXN_DETAIL The table is used to get the transaction details.
Select * from TXN_DETAIL where txhd_txn_nr = 'transaction_no_val' and while_short_desc = 'till_no_val My question is that I write these questions illustrated Please, you guys can advise, through which I can add them to a single question in any way, I mean, through the medium of subcategories, through joining Please advise.
Join version:
select from TXN_HEADER inside TXN_HETER_desc .txt.htm_nr = TXN_HEADER.txhd_receipt_id = 'receipt_id_val' and TXN_HEADER.till_short_desc = 'to_no_val' at TXN_DETAIL.txhd_txn_nr and TXN_DETAIL.till_short_desc = 'to_no_val'
Comments
Post a Comment