150 likes | 312 Views
Queries. More Practice. 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:. Query: Post2004OrHighBudget.
E N D
Queries More Practice
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:
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,000.00 (>=50000000).
Query: GenreAverages Create a query that for each genre calculates the average budget allocated as well as the average gross income.
Query: GenreMovieCount Create a query that for each genre will list the total number of movies in the database.
Query: ActorPlaceOfBirthCount1 & 2 Create a query that for each movie will list the total number of actors from either the USA or the UK.
On-Campus Participation Save your file as: “firstName_lastNameAQ.accdb” Submit through course tools.
Forms A First Look
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
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
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”
Reports A First Look
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)
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
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.