Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Help:LastMonth Data Post Reply Post New Topic
Author Message
Nav522
Senior Member
Senior Member


Joined: 25 Aug 2009
Location: United States
Online Status: Offline
Posts: 166
Quote Nav522 Replybullet Topic: Help:LastMonth Data
     Posted: 04 Nov 2009 at 6:30pm
Hello folks,
                  Am trying to create a report using the Command feature of crystal reports. I need 3 columns say periodname,periodstartdate and periodenddate. Periodname is monthname, periodstartdate shud return previous month starting date, periodenddate shud previous month end date.

I need the format as follows

period name: Oct 2009
periodstartdate: 10/1/2009
           enddate:10/30/2009


can i pull the alias in the report, i.e can i use the Periodname in the report

select sysdate from dual as "Periodname".


Thanks


IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 05 Nov 2009 at 6:32am
No, sql syntax is select sysdate as Periodname from dual.  You can use the periodname from the command, just look in table.
IP IP Logged
Nav522
Senior Member
Senior Member


Joined: 25 Aug 2009
Location: United States
Online Status: Offline
Posts: 166
Quote Nav522 Replybullet Posted: 05 Nov 2009 at 6:41am

thanks for gettin bak lockwelle. so i shoud get rid of the quotations for the periodname. Thank you very much

 

IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum