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

SQL Statements

Status
Not open for further replies.

Greeham

Programmer
Joined
Feb 7, 2001
Messages
4
Location
ES
Can someone tell me how to insert an SQL Statement in my Report?

I need the following:

I'm using a table named F_DOCS.
I've included a lot of calculated records and formulas but now I need to obtain the number of records where F_DOCS.DO_HOUR is within a range of time.
I would like to obtain this by using an SQL Statement.

Thank you ALL !!
 
A report can only have one SQL statement, so you would need a subreport to get a second statement and return different results.

A report can have many SQL expressions, but these only add columns to your original statement. Ken Hamady
Crystal Reports Training and a
Quick Reference Guide to VB/Crystal
 
Can you explain why you don't want to compute
this via a conditional total within the report?

- Ido
 
Ido has a great idea. If these records are already in the report, you can simply do a conditional total. There is a FAQ that explains how to do conditional totals (see the FAQ on common formulas). Ken Hamady
Crystal Reports Training and a
Quick Reference Guide to VB/Crystal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top