Click here to Skip to main content
15,917,997 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
i want to display Premium amount in the Reports basis on the PolicystartDate
how to show Monthly and Annually.I have(Policydate,PaymentMode,Premium amount)
how to make view in the sql2008.
so it will help in the reports.

Policystatedate clientName Premium amount Premiummode PolicyNo
23/03/2011 sa 1000 monthly 14
23/04/2012 ba 2000 Anunally 15

i want to make this type of calendar view.

PolicyNo clientName jan feb march april may june july aug sep oct nov dec
14 sa 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000

15 ba 2000 amount will be April

how to make this crosstab Reports???
plz tell me.

thanks for advance
Posted
Updated 10-Jul-12 4:03am
v4
Comments
Sandeep Mewara 10-Jul-12 10:04am    
What have you tried so far? Do you know how to make crosstab report?
sadhana4 12-Jul-12 10:28am    
no i dont kw how to make the crosstab reports

sadhana you must read PIVOT function which will help you to modify your table as per your requirement.
check this below link; hope it helps
Converting two column as row from a table[^]
 
Share this answer
 
In this case you need to do is

Make table
Fields are Date, Name, Amount, PremiumMode, Jan, Fab, .... ,Dec

Now check condition
if(premiumMode = Monthly) THEN
 insert into Jan...Dec equal to Amount
else
 put that empty

In report you will get you required output

All The Best.
 
Share this answer
 
v4
Since you are not even aware of how to create cross tab reports, start from here:
MSDN: Cross-Tab Reports[^]
Video: Crystal Reports Tutorial Creating Cross-Tab Reports[^]
Cross Tab Reports[^]

Go through them, try out!
 
Share this answer
 

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