SSRS REPORTING SERVICES EXERCISES▼
- Designing a Simple Report (3)
- Data sources and datasets (1)
- Tables (5)
- Grouping tables (6)
- Expressions (8)
- Pages and printing (2)
- Parameters (15)
- Indicators (3)
- Gauges (4)
- Matrices (5)
- Charts (6)
- Data bars and sparklines (2)
- Lists (4)
- Subreports (2)
- Revision of expressions (3)
- Variables (3)
- Embedding code (3)
- Basic Custom Assemblies (2)
- Examples of custom assemblies (1)
- Customising reports (2)
- Using SQL views (3)
- Stored procedures in SSRS (2)
- Stored procedure parameters (2)
- Dropdowns with procedures (3)
- Multivalue parameter procedures (1)
- Improving report navigation (2)
- Linking reports (drilldown) (4)
- Dynamic reports (2)
SSRS Reporting Services | Subreports exercise | Subreport of actors by film
This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.
You can learn how to do this exercise if you attend one of more of the courses listed below!
You need a minimum screen resolution of about 700 pixels width to see our exercises. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.
This exercise involves creating a report and subreport. First, create the report which will become the subreport, and within this create a dataset listing out all the actors for a particular film (you'll need the tblActor and tblCast tables to do this). Note that this you should apply a filter such that the CastFilmId column should equal @FilmId (a parameter which you'll set in the main report).
Now create the layout of this subreport:
The subreport lists out the name and date of birth of actors
Save this report as Film cast sub, then create another report which will be the main report. Within this, create a dataset to list out all those films which have at least one actor (for this dataset, you will need to include the tblFilm and tblCast tables).
Create a grouping query, with the number of cast rows to be at least 1
Now create a rectangle, and within this create a table (and within this a subreport). This is what your report/subreport combination should look like in layout view and preview:
The films are listed in alphabetical order
Save this report as Film Cast Main, and close it down.