5g Queries *** Flashcards

0
Q

Give an example of a complex query that could be used to search the customer table. (2)

A
Join of AND/OR/NOT (1)
2 criteria (1)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

The database makes use of simple and complex queries.

i) What is the difference between a simple and a complex query? (2

A

Simple contains one criteria (1)

Complex contains more than one criteria / Complex uses AND,OR,NOT (1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The website uses static and dynamic queries.

Describe the difference between a static and a dynamic query. (2)

A

Static
Hard coded/entered at design (1)
Dynamic
Can be changed by end user/entered at run time (1).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The hospital appointment database uses dynamic and static parameter queries.
Describe the difference between a dynamic and a static parameter query giving an example of the use of each. (4)

A

Dynamic requires parameter to be given at run time (1) whereas static the parameter is hard coded (1)
With static the parameter cannot change (1) with dynamic the parameter can be changed by the end user (1) Examples
Static: department / times of appointments (1)
Dynamic: patient name / date of appointment (1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly