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

Report with summaries in it thru sql

Status
Not open for further replies.

p8ass8

IS-IT--Management
Jun 18, 2007
13
US
I need to build a report in Crystal, but with all the data coming thru a stored procedure in SQL server.


The report has the following fields:
physician id, physician's name - from physician table
count of number of patients represented by each physician,
in each category - labtest 1, 2, 3 or 4 performed on patient.

basically, I need a total of number of patients 'represented' by each doctor, broken down by labtest category, and then need to calculate the percentage of grand total.

The report lists the doctors that represent over 1% of patients and it takes hospitalid as parameter.
If a patient has had 5 xray done by the same doctor, the number of xrays must be counted as 1.
 
please post your question (which isn't very clear, by the way) in the appropriate forum -- crystal reports or sql server

this is the ANSI SQL forum

r937.com | rudy.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top