Solved

Need help with the Maximum function

Posted on 2008-06-11
5
1,502 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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. …
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

617 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