Solved

Need help with the Maximum function

Posted on 2008-06-11
5
1,496 Views
Last Modified: 2008-06-11
I'm unsure how to get this function to work correctly in crystal reports, however, I can clearly get this work from a query directly from sql.

Anyhow, I have multiple links setup in crystal reports the very last table that's link is where the data becomes duplicated, because of how are web application is storing the data.  Where this data may become unique is using the "CreationTimeStamp" field from that table.  But I can't get crystal to show to only show the results based of the most recent time stamp created.  Also I not viewing the creationTimeStamp anywhere on the report.  I'm just using to suppress or filter out the data that I want.
0
Comment
Question by:ldcray
  • 4
5 Comments
 
LVL 17

Expert Comment

by:MIKE
ID: 21763324
Just take the SQL Script that creates the table in the format that you desire and ADD that SQL Script to the DATASOURCE... ADD COMMAND line....this will generate an VIRTUAL TABLE....something like a VIEW in Crystal...so that you can link it up just like any other table.

Hope it helps.
Mike
0
 

Author Comment

by:ldcray
ID: 21763467
Yeah, but I was wandering how would you do it specifically in Crystal, otherwise I would created a view.
0
 
LVL 17

Expert Comment

by:MIKE
ID: 21763508
Add the TABLE(s) in question...then go to REPORT >>> SELECTION FORMULAS >>> GROUP

then type in your MIN or MAX logic there....

0
 
LVL 17

Accepted Solution

by:
MIKE earned 500 total points
ID: 21763527
In my experience you can do it within the SELECTION FORMULAS >> GROUP....but for what you are doing...I would simply ...just ADD the SQL SCRIPT to the ADD COMMAND LINE at the datasource IN CRYSTAL.

Again,...this would immediately create a virtual table for immediate linking and use. NO view in SQL would be needed.......
0
 
LVL 17

Expert Comment

by:MIKE
ID: 21764079
Glad to be of service....
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now