Presentation is loading. Please wait.

Presentation is loading. Please wait.

Similar presentations


Presentation on theme: "Queries More Practice."β€” Presentation transcript:

1 Queries More Practice

2 Query: TotalProfit Create a query that uses a calculated field to determine the total profits for each movie. Name the calculated field Profit. Use the following formula for to determine the profit: π‘€π‘œπ‘£π‘–π‘’π‘ .πΊπ‘Ÿπ‘œπ‘ π‘  βˆ’[π‘€π‘œπ‘£π‘–π‘’π‘ .𝐡𝑒𝑑𝑔𝑒𝑑]

3 Query: Post2004OrHighBudget
Create a query that will list the Title, ReleaseDate, Budget, Runtime, and Genre of all movies that were filmed after 2004 or had a budget of at least $50,000, (>= ).

4 Query: GenreAverages Create a query that for each genre calculates the average budget allocated as well as the average gross income.

5 Query: GenreMovieCount
Create a query that for each genre will list the total number of movies in the database.

6 Query: ActorPlaceOfBirthCount1 & 2
Create a query that for each movie will list the total number of actors from either the USA or the UK.

7 On-Campus Participation
Save your file as: β€œfirstName_lastNameAQ.accdb” Submit through course tools.

8 Forms A First Look

9 Forms Forms provide an easy way to input data Forms can be relative to one or many tables When multiple tables are used, we have a form with a subform Forms can have a variety of different layout styles and layers of grouping

10 Forms There are 3 views associated with forms
Form View Layout View Design View In most cases, forms created with the form wizard will need some adjusting

11 Forms: Example Using the Form Wizard, create a form with a subform. The main form should include only the movie title while the subform should include all of the actor information from the Actors table. Make sure to view the data by MovieTitle and that the subform uses the datasheet layout. Name the main form β€œMovies” and the subform β€œActorsInfo”

12 Reports A First Look

13 Reports Reports make data easy to read
Data for reports can come from both tables and queries Like forms, reports can have layers of grouping Reports can also be sorted by several fields Fields in a report can be summarized (averaged, summed, min, max)

14 Reports Have a variety of layout options
Like forms, reports also have several views Report View Print Preview Layout View Design View Most reports will require some modifications after creation

15 Reports: Example Using the Report Wizard, create a report that will present all of the information for each movie. Make sure to group by the Title and sort in ascending order. Also ensure that a tabular layout is used and that the orientation is landscape.


Download ppt "Queries More Practice."

Similar presentations


Ads by Google