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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Reports 2008 combining Command and db together

Status
Not open for further replies.

Marina385

Programmer
Jan 7, 2015
3
0
0
CA
Hi,

I'm new at Crystal Reports and I need to make a report where I need to combine Command and direct db together.
Can you please tell me how can I do that in SQL query? With INNER JOIN or?
How can I integrate mCallEnd and mOpInterval in the SQL query in Command so I can have all fields and formulas from all 3 tables in Command?

Thank you in advance
 
 http://files.engineering.com/getfile.aspx?folder=88be9fb5-a49d-4484-8d61-d99d8da22da2&file=problem11.JPG
It appears that you have a command and two tables. You would need to open the database expert and establish the joins necessary. But joining a command and other tables can affect performance. It is better to either go with all tables or (preferred) a command or stored procedure (best performance) for the data source.
 
The query for Command is really long and complicated and it's used in another report. I'm trying to use this Command with another table called mCallEnd because I need couple of fields from mCallEnd table to make my report.

I attached the picture of report that I need to make along with my Command query and links between Command and mCallEnd.
The first 3 columns I need to pull out from mCallEnd table, and Total Billable Minutes is made in Command query.

Thanks!
 
 http://files.engineering.com/getfile.aspx?folder=b804074c-882b-425b-a1dc-b3e16ba4c6d0&file=report1.jpg
Try to add the tables to the command instead of adding them to the report.

Viewer and Scheduler for Crystal reports, SSRS and Dynamic Dashboards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top