Ninad077 commited on
Commit
b530d2b
·
verified ·
1 Parent(s): 70d47eb

Update queries.py

Browse files
Files changed (1) hide show
  1. queries.py +7 -6
queries.py CHANGED
@@ -117,12 +117,13 @@ queries = {
117
 
118
  # Query 10
119
  '10. Positive transaction components validation': '''
120
- select
121
- *
122
- from `fynd-db.finance_recon_tool_asia.11_seller_fees_daily`
123
- where
124
- transaction_type in ('Sale','SLA','Claim')
125
- and net_charges > 0
 
126
  ''',
127
 
128
 
 
117
 
118
  # Query 10
119
  '10. Positive transaction components validation': '''
120
+ SELECT CONCAT(bag_id,transaction_type,total_charges) AS Merged,
121
+ FROM
122
+ `fynd-db.finance_recon_tool_asia.11_seller_fees_daily`
123
+ GROUP BY
124
+ 1
125
+ HAVING
126
+ COUNT(CONCAT(bag_id,transaction_type)) NOT IN (1)
127
  ''',
128
 
129