Search Header Logo
Higher - Database query design

Higher - Database query design

Assessment

Presentation

Computers

10th Grade

Practice Problem

Easy

Created by

G Alexander-Doyle

Used 2+ times

FREE Resource

13 Slides • 8 Questions

1

media

2

  • I can create a design for a database query which includes the following:

    • Field names

    • Computed fields (with aliases)

    • Table(s)

    • Search criteria

    • Grouping

    • Sort order

Achievements

  • We are learning how to design database queries, specifically detailing fields, tables, search criteria, grouping and sort order.

Aims

3

media

4

media

5

media

6

Match

Match the query design rows with the SQL implementation.

Field(s) and calculations(s)

Table(s) and query

Search criteria

Grouping

Sort order

SELECT

FROM

WHERE

GROUP BY

ORDER BY

7

Multiple Choice

Which aggregate function should be used for finding the highest value in a column?

1

MAX

2

MIN

3

COUNT

4

SUM

5

AVERAGE

8

Multiple Choice

Which aggregate function should be used for totalling the values in a column?

1

MAX

2

MIN

3

COUNT

4

SUM

5

AVERAGE

9

Multiple Choice

Which aggregate function should be used for returning the number of records which meet the search criteria?

1

MAX

2

MIN

3

COUNT

4

SUM

5

AVERAGE

10

media

11

media

12

media

13

Multiple Select

Which of the following answers would be selected if the wildcard ‘McN%’ was used in the WHERE LIKE clause?

1

McNichol

2

McKenney

3

McNesbitt

4

McKenzie

5

Macneil

14

Multiple Select

Which of the following answers would be selected if the wildcard ‘_o%’ was included in the WHERE LIKE clause?

WHERE surname LIKE ‘_o_%’

1

Yo

2

Bolton

3

Nolan

4

Moore

5

Opgaard

15

Multiple Choice

When specifying a calculated field an alias should be detailed in

1

Round brackets ( )

2

Square brackets [ ]

3

Quotation marks " "

4

Apostrophes ' '

16

Open Ended

Question image

Which two fields has this table been sorted on and in which order?

17

media

18

media

19

media

20

media

21

media
media

Show answer

Auto Play

Slide 1 / 21

SLIDE