Operation Manual
Contents
18 Crystal Reports User’s Guide
Indexed tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487
Linking tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489
Link from and link to . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490
Link relationships . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490
Performance considerations in one-to-many links . . . . . . . . . . . . . . . 491
Data file considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 493
SQL database considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 495
Performance considerations for all reports . . . . . . . . . . . . . . . . . . . . . 496
The Database Expert Links tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 498
Linking indexed tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 498
Link processing order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 499
Linking options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 500
Using SQL and SQL databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 510
What is SQL? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 510
SQL DBMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 512
How does Crystal Reports use SQL? . . . . . . . . . . . . . . . . . . . . . . . . . 514
The SQL language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 514
Server-side processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 516
How server-side grouping affects the SQL query . . . . . . . . . . . . . . . . 518
Mapping database fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519
About the Map Fields dialog box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519
Remapping processes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520
Remapping altered database fields . . . . . . . . . . . . . . . . . . . . . . . . . . . 522
Saved Data Indexes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 523
How Report Indexing works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 523
Considerations for using Saved Data Indexes . . . . . . . . . . . . . . . . . . 524
Indexing the right field(s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 524
Unicode support in Crystal Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 525
For additional information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 525
Appendix A Report Processing Model 527
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528
What is a “pass”? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528