A book has an ISBN which is 330247204X
Choose the most appropriate data type for the ISBN.
Numeric: integer
Text
Boolean
Date
Did this page help you?
A book has an ISBN which is 330247204X
Choose the most appropriate data type for the ISBN.
Numeric: integer
Text
Boolean
Date
Choose your answer
Did this page help you?
The manager of a medical centre keeps the doctor’s stock records in a database. The stock for any item is not allowed to fall below 15 items and the manager keeps a maximum of 100 items in stock.
The table shows examples of the stock.
|
|
|
|
|
---|---|---|---|---|
Medihoney | 3081043612211 | 15 | Capimed | 0126 |
Sodium fusidate | 1437210227870 | 60 | Brooks Medical | 0112 |
Crepe bandage | 2541233164353 | 100 | Capimed | 0064 |
Crepe bandage | 2834954736849 | 89 | Cams Meds | 0064 |
As data is entered it needs to be verified and validated.
Name the most appropriate field from the table that could be used as a primary key in the database.
How did you do?
Did this page help you?
A library system has two tables; one for borrowers and one for books. Extracts from these tables are shown.
|
|
|
|
---|---|---|---|
5404 | Susan Stranks | 01632 960321 | |
9867 | Fei Hong Zhao | 07700 900222 |
Borrowers table
|
|
|
|
|
|
|
---|---|---|---|---|---|---|
1 | 0859550153 | Bird of Prey | David James | 1977 | 5404 | 27/10/2021 |
34 | 3301028345 | The Fifth Man | Colin Turner | 1998 | 9324 | 05/10/2021 |
35 | 4237681321 | A View of the Temple | Yu Yan Zhang | 2017 | 8854 | 07/10/2021 |
54 | 4237681321 | A View of the Temple | Yu Yan Zhang | 2017 | 5404 | 27/10/2021 |
Books table
For the books
table, name the most appropriate field that could be used as a primary key
How did you do?
The librarian has created a relationship between the books
table and the borrowers
table.
For the books
table, name the most appropriate foreign key field that would be used to create the relationship.
How did you do?
Did this page help you?
Two types of database are relational and flat file.
Give, using an example, one reason why flat file databases are used in certain applications rather than relational databases.
How did you do?
Did this page help you?
A student is creating a spreadsheet of airports for a project.
The formula in G2 is:
=VLOOKUP(F2,A2:B9,2,0)
The completed file could have been created using a database.
Describe two reasons why databases are used in certain applications rather than spreadsheets.
How did you do?
Did this page help you?
A systems analyst has created a new computer system to keep records in a medical centre. She has created a relational database to store the medical records of patients.
The database uses primary and foreign keys.
Describe what is meant by a relational database.
How did you do?
Explain the difference between a primary key and a foreign key.
How did you do?
A dentist works at the medical centre. The dentist stores the medical records of his patients
Describe four other uses of the database software that the dentist can use to help him in his work.
How did you do?
Did this page help you?
Petr has set up a database for a science project on planets in the solar system. Part of the database is shown.
|
|
|
|
|
|
|
|
---|---|---|---|---|---|---|---|
4 | Mars | 2 | 1.88 | N | 0.38 | Regular | 1610 |
5 | Ceres | 0 | 4.61 | N | 0.27 | Dwarf | 1801 |
7 | Saturn | 62 | 29 | Y | 1.16 | Gas Giant | 1610 |
9 | Neptune | 14 | 165 | Y | 1.21 | Gas Giant | 1846 |
10 | Pluto | 5 | 248 | N | 0.62 | Dwarf | 1930 |
11 | Haumea | 1 | 309 | N | 0.401 | Dwarf | 2004 |
When Petr was designing his database, he had to set the data types for each field.
Complete the design table below by filling in the data types for each named field. Use the most appropriate data type.
Each data type must be different. For any numeric field, specify the type of number.
Field name | Data type |
---|---|
| |
| |
| |
|
How did you do?
Write down the names of the planets that are not gas giants but have at least one moon and were first observed after 1800.
How did you do?
Did this page help you?
Two types of database are relational and flat file.
Compare and contrast relational databases and flat file databases.
Your answer must include similarities and differences.
How did you do?
Did this page help you?
Petr has set up a database for a science project on planets in the solar system. Part of the database is shown.
|
|
|
|
|
|
|
|
---|---|---|---|---|---|---|---|
4 | Mars | 2 | 1.88 | N | 0.38 | Regular | 1610 |
5 | Ceres | 0 | 4.61 | N | 0.27 | Dwarf | 1801 |
7 | Saturn | 62 | 29 | Y | 1.16 | Gas Giant | 1610 |
9 | Neptune | 14 | 165 | Y | 1.21 | Gas Giant | 1846 |
10 | Pluto | 5 | 248 | N | 0.62 | Dwarf | 1930 |
11 | Haumea | 1 | 309 | N | 0.401 | Dwarf | 2004 |
Operators such as AND, OR, NOT, LIKE, >, >=, <, <=, =, <> can be used to search Petr’s planet database. The search criteria for all the gas giant planets with more than 20 moons would look like this:
Type_of_planet = "Gas Giant" AND Number_of_moons > 20
Write down the search criteria that will produce a list of planets that are not gas giants but have at least one moon and were first observed after 1800.
How did you do?
Did this page help you?