Experience in using Crystal Reports 3-displaying fields in multiple tables in a report (using Table Association)

Source: Internet
Author: User

A simple example:
Employee table (employee ID employee name department ID)
Department table (Department ID Department name)

Required: Select employee table. employee name, Department table. Department name from employee table, Department table where employee table. Department No. = Department table. Department No.

Operation steps (to list several important ones, which are also difficult to operate at the time)
1. Drag the XSD file directly into the employee table and department table without any field Association.
2. Create the rpt file, select the employee table and department table, and create the Department number that links to the employee table ---> Department Number of the Department table
3. Drag the. aspx file into the report Control
4. Create a dataset in. aspx. CS, which contains two tables named "Employee table" and "department table" (consistent with the name of the XSD to be dragged)
The SQL statements are:
Select * from employee table
Select * from department table

This is basically the case. You can try to discuss any issues.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.