Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Crystal Reports Groups


Crystal Reports Groups

Author
Message
Vertigo44
Vertigo44
SSC Veteran
SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)

Group: General Forum Members
Points: 238 Visits: 825
I have a crystal report that groups by provider alphabetically.

For each provider, we have procedures-items section 1 through 10
For each provider, we also have procedure-instructions 1 through 10

The crystal report looks like this....

Provider Name

Procedure - Items #1
Item Type, Item Code, Item Description (can be multiple item types, item codes, item descriptions under the Items heading)
Procedure - Instructions #1
"ajalsdfjalsf"

Procedure - Items #2
Item Type, Item Code, Item Description
Procedure - Instructions #2
"alsdjf;alsjf"

Etc... through #10


Is it possible to use TSQL to get something formatted like this where the procedure Instructions #4 will only be listed for the same procedure item #4 and grouped together?

Provider | Procedure # | Item | Item Type| Item Code | Item Description | Instructions | Instruction Description

Smith | #4 | True | Equipment | 24053 | Laser | False | Null
Smith | #4 | True | Equipment | 26356 | Knife | False | Null
Smith | #4 | False | Null | Null | Null | True | "Procedure Instructions here"

=============================================================

Kline |......
Kline |......
ETC.....
Vertigo44
Vertigo44
SSC Veteran
SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)

Group: General Forum Members
Points: 238 Visits: 825
Sure that is easy. You would use the pivot relational operators.
Vertigo44
Vertigo44
SSC Veteran
SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)

Group: General Forum Members
Points: 238 Visits: 825
Thank you!
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search