crystal reports - amtech users group forumamtweb.amtechsoftware.net/.../crystal_reports.pdf ·...
Post on 13-Mar-2020
35 Views
Preview:
TRANSCRIPT
Agenda
• What is Crystal Reports?
• Creating a Data Source.
• Adding tables and/or views.
• Define links and link types.
• Grouping, Sums and Totals.
• Working surface.
• Formulas, parameters, special fields, etc.
• Publishing/Presenting the report results.
• Q&A Session.
What is Crystal Reports?
• Crystal Reports is a businessintelligence application usedto design and generatereports from a wide rangeof data sources, with aminimum of written code.
• In other words it is apowerful GUI based, reportwriting tool.
Creating a Data Source Connection
• To create a Data Source inCrystal, an ODBC needs tobe created.
• System DSN vs. User DSN
• Click on the “Add…” button
Creating a Data Source Connection
• Since Imaginera usesMicrosoft SQL Server
scroll all the way down
and select SQL Server driver.
Creating a Data Source Connection
• Name – can type any name
Tip: Avoid “Amtech”.
• Server: can use IP address,server name, or use thedrop down box feature (ithas to be valid, up andrunning)
Creating a Data Source Connection
• Check “Change the defaultdatabase to:” and selectyour database from thedropdown list
Adding Tables and/or Views
• Wizard or manual
• Create a report:
Annual Customer’s Sales By Sales Agent for the Last 3 Years. Along with the customer name, split values per each year on the same line. It should ask for SalesAgent name.
Create Links and Link types
• Inner join will only return rows in which there is a match in both tables based on the join predicate (join field): CUSTOMER.CSCODE --> INVHIST_HDR.CSCODE
CUSTOMER.CSCODE --> INVHIST_HDR.CSCODE
Table A Table B Results
Inner Join
Create Links and Link types
• A left outer join retains all of the rows of the left table, regardless of whether there is a row that matches on the other table. The missing side will contain null
CUSTOMER.CSCODE --> INVHIST_HDR.CSCODE
Table A Table B Results
Left Outer Join
Create Links and Link types
• A right outer join retains all of the rows of the right table, regardless of whether there is a row that matches on the other table. The missing side will contain null
CUSTOMER.CSCODE --> INVHIST_HDR.CSCODE
Table A Table B Results
Right Outer Join
Create Links and Link types
• Full outer join produces the set of all records in Table A and Table B, with matching records from both sides where available. If there is no match, the missing side will contain null
CUSTOMER.CSCODE --> INVHIST_HDR.CSCODE
Table A Table B Results
Full Outer Join
top related