Presentation on theme: "Your Tasks Create queries and reports that will meet the needs of the business. Reports should have a consistent house style. B. Explain any testing you."— Presentation transcript:
1Your TasksCreate queries and reports that will meet the needs of the business.Reports should have a consistent house style.B. Explain any testing you have carried out and provide justification for your choice of method(s).The scenario for which queries and reports you should create can be found here:Egaict.wikispaces.com
2Scenario behind tasksYou should now be able to produce a range of queries and reports to meet business needs of the company , which include:identifying customers living in particular counties, so that invitations can be sent to promote local events where Cards by James are being sold.The next event is in Cambridgeshire, with more planned in different countiespromoting new ranges of online cards to existing customers by .The latest range will appeal particularly to female customersidentifying customers who have not yet paid, allowing reminder letters to be posted out to these customers.
3Scenario behind tasksidentifying customers who have bought particular types of card in particular months, so that they can telephone special promotional offers to different groups of customers.For example, they had a special promotion for Thank You cards in June 2012 and needed to telephone all customers who had bought this type of card in that month.analysing sales data for each month, showing the different types of cards sold and the income from the cards sold.
5How to create a query 1. Click on Create 2. Click on Query Design 3. Select the tables you want to get information from by double clicking on them4. Close this menu before continuing
6Creating a query- entering criteria Once you have selected the information that you want to show up in the query results you will have to enter the criteria you want the records to match. You will sue the criteria line to do this
7Different types of queries The following slides will take your through some examples of different QueriesThe examples are based on a Music Database. You will have to apply them to the Cards by James task where relevantDifferent types of queries
8Simple Query- songs by a particular artists A simple query is where we are searching for records that match only one criteria like the example we just did.If you did it correctly the design view of the query will look like this-Example query : songs by BeyonceSave this query as ; songs by ‘name of artist’
9And Query- popular songs of 2011 An and query is where we are searching for records that match two or more criteria like the example shown below.If you do correctly the design view of the query will look similar to thisExample query : popular songs of 2011Save this query as ; popular songs of ‘year’
10Wildcard query- songs beginning with A wild card query uses the * symbol to find criteria that begins, ends or contains a particular letter.*a- means ends with aA* - means begins with A*a*- means it contains an A anywhere in the wordSave query as: Song name begins with ‘letter*’( you only have to enter the letter followed by the *. The computer will add the word like automatically)Example query : songs beginning with S
11Advanced QueriesOn the following slides are some a examples of advanced queries that some of you may want to try in your own database.We will look at these types of queries in more detail next year when we come back to databases but feel free to have a go now.
12Logical Query These types of queries use the following symbols Can be used on the following types of dataNumber fieldsCurrency FieldsDate/Time fields<Less than ( before)>More than (after)<=Less than or equal to>=More than or equal toBETWEEN __ AND __Between two values
13Example of a logical query Pocket money is Less than £10
14Parameter QueryA query related to particular query that can be used over and over againIt comes up with a prompt box for you to enter criteria every time it is runE.g.Find all the people with a certain special talent