Quantcast
Channel: subquery
Browsing index pages (3 articles)

subquery

Hi All,There are two rows in the table, one is the discount record, one is the normal amount. Data as below:txn_id txn_typedocket_voucher_numberamt ...121113226 5 002712 86.88121116789 2 002712-3.41I...

View Article


subquery

To fix your current code, add txn_type = 2 into the where condition of the subquery (I assume that txn_type = 2) identifies Discount. Alternative solution:select T1.txn_id, T1.txn_type,...

View Article


subquery

Thank you very much! Naom, you are such a guru on SQL.It works now.This person has no signature.

View Article
Browsing index pages (3 articles)


Latest Images