Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Impromptu 7.3 Joins

Status
Not open for further replies.

gwynfijones

IS-IT--Management
Apr 11, 2002
21
GB
Is there any way that i can create a join using the today function ?
 
Can you describe the difficulty you are having?
(I have joins that reference the today() function in catalogues against SQL server and PROGRESS databases.)

soi la, soi carré
 
I can add a field that uses the today function within the folders option but am unable to add it to the area where joins are created. I want to be able to work out the companies week number from todays date, the week number is held within a SQL table.
 
Ah, in that case I believe you'll have to recreate the calculation when creating the join.

soi la, soi carré
 
Another useful technique to use for this type of issue is to create the calculated column in SQL within a view of the original table. Then all Impromptu has to do is to report the database result of the calculation, as in:
Code:
begin tran
create view combo_data as
select a.*,b.week_no
from table1 a, weeks b
where getdate() = b.co_date
commit tran

Regards,

Dave Griffin


The Decision Support Group
Reporting Consulting with Cognos BI Tools
Magic with Data [pc2]
Want good answers? Read FAQ401-2487 first!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top