February 9, 2012  
   Login  
Forum  
 
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...Select statement for period tableSelect statement for period table
Previous Previous
 
Next Next
New Post
 1/30/2009 9:10 AM
 

Hi,

If there someone how can help me with a litle syntax problem. I use enesys version 3.0.

I have a period table with the values of all periodes 1 till 12. This is a numeric column. Right now I want to see 01 till 12. 

So the syntax now is select period from period_table.

 

Thanks for helping me.

Inge

New Post
 1/30/2009 2:19 PM
Accepted Answer 


Hi,

Basically you would achieve this like this:

SELECT rightstr("0" || period, 2) AS DisplayPeriod FROM period_table

Depending on how you are considering using this (for some report's parameter?), you may also want to keep your period as a number:

SELECT rightstr("0" || period, 2) AS DisplayPeriod, period FROM period_table

If used as the source of a report's parameter and if your parameter's value need to be a numeric value, you could use both column as shown in the following screen shot:

Report Parameter

Hope this helps,

Regards,


Frederic LATOUR
ENESYS
Previous Previous
 
Next Next
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...Select statement for period tableSelect statement for period table

 
You need to login for posting to the forums.
If you don't have a login, click here to register.
 
Copyright 2010 Enesys - All rights reserved Terms Of UsePrivacy Statement