Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Need help with the Maximum function

Posted on 2008-06-11
5
Medium Priority
?
1,504 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 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
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…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Screencast - Getting to Know the Pipeline
Suggested Courses

927 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