Your Tasks

14
Your Tasks A.Create 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

description

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 have carried out and provide justification for your choice of method(s). - PowerPoint PPT Presentation

Transcript of Your Tasks

Page 1: Your Tasks

Your TasksA. Create 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

Page 2: Your Tasks

Scenario behind tasks• You 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 counties– promoting new ranges of online cards to existing

customers by email. • The latest range will appeal particularly to female customers

– identifying customers who have not yet paid, allowing reminder letters to be posted out to these customers.

Page 3: Your Tasks

Scenario behind tasks

– identifying 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.

Page 4: Your Tasks

INSTRUCTIONSHow to create a query

Page 5: Your Tasks

How to create a query1. Click on Create 2. Click on

Query Design

3. Select the tables you want to get information from by double clicking on them

4. Close this menu before continuing

Page 6: Your Tasks

Creating 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

Page 7: Your Tasks

DIFFERENT 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 relevant

Page 8: Your Tasks

Simple 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-

Save this query as ; songs by ‘name of artist’

Example query : songs by Beyonce

Page 9: Your Tasks

And 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 this

Save this query as ; popular songs of ‘year’

Example query : popular songs of 2011

Page 10: Your Tasks

Wildcard 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 a– A* - means begins with A– *a*- means it contains an A anywhere in the word

Save 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

Page 11: Your Tasks

Advanced Queries

• On 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.

Page 12: Your Tasks

Logical Query

• These types of queries use the following symbols

• Can be used on the following types of data– Number fields– Currency Fields– Date/Time fields

< Less than ( before)

> More than (after)

<= Less than or equal to

>= More than or equal to

BETWEEN __ AND __ Between two values

Page 13: Your Tasks

Example of a logical query

Pocket money is Less than

£10

Page 14: Your Tasks

Parameter Query• A query related to particular query that can be

used over and over again• It comes up with a prompt box for you to enter

criteria every time it is run• E.g.

– Find all the people with a certain special talent