Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

SQL help - forum topic by todil

$
0
0

Hi gurus, I am trying to generate a sql based on this scenario. please suggest how. i have a table with credit card number, transaction date and amount and merchant. I want to find a creditcard number which did transations in 3 consecutive months with same merchant with total amount >1000. eg:-a customer would have made transaction in walmart in oct, nov,dec and the total amount for 3 months should be > 1000. 

please suggest. 

Thanks

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>