Solved

Need help with the Maximum function

Posted on 2008-06-11
5
1,498 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

821 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