Click here to Skip to main content
15,891,907 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have to columns ...
promotionid isroi
12 y
12 N
13 n
14 y
15 n
15 n
16 n
16 n
16 n
16 y

Promotion Type column should display the type of the Promotion.
If the Promotion has at least one Investment Type that is configured as IsROI=y then Promotion Type will be “ROI”. If the Promotion has all 'n' values then it has to display 'NONROI'= False”.


Output will be

promotion_id promotion_type
12 ROI
13 NONROI
14 ROI
15 NOROI
16 ROI
Posted
Updated 17-Jun-14 1:55am
v2

1 solution

are you the previous poster please show what you are done
and we will guide you


ok see this link
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900