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

Checking sequence of numbers and populate a flag if number is out of sequence - response (6) by cumar

$
0
0
Hi Rajeev, I have some new requirement extention to above mentioned one. I want to use above output as input to this.  Input (Above Output):- Serial_Number Send_Date File_Count Non_Seq_Flag 76543890 1-Jan-13 4 No 76543891 1-Jan-13 5 Yes 76543891 2-Jan-13 4 No 76543890 2-Jan-13 3 Yes 76543891 3-Jan-13 2 No 76543890 3-Jan-13 1 No Output:- I want to aggregate by date by summing the File_Count and Non_Seq_Flag is set to Yes if atleast one Yes for that particular date else No. Send_Date File_Count Non_Seq_Flag 1-Jan-13 9 Yes 2-Jan-13 7 Yes 3-Jan-13 3 No Thanks a lot in advance. Regards, Sagar

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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