Databases
109 questions. Open a question to solve it and check the official answer.
Databases · 1 mark
(ii) State one reason why the Candidates field could not be of the Boolean data type. .............................................................................................…
Databases · 3 marks · official answer ready
(b) Show the output given by the query-by-example grid. Field: SubjectName Practicals Candidates Table: ASSESS ASSESS ASSESS Sort: Ascending Show: 3 3 Criteria:
Databases · 3 marks · official answer ready
(c) Complete the query-by-example grid to output the subjects with fewer than 150 candidates. Display only the SubjectCode, SubjectName and Candidates fields in order of the numbe…
Databases · 2 marks · official answer ready
(a) Identify which field you would choose for the primary key. State a reason for your choice. Field ..............................................................................…
Databases · 3 marks · official answer ready
(b) Complete the query-by-example grid to display only the description and the country of origin for those items not in store. Field: Table: Sort: Show: Criteria: or: [3] 15 16 re…
Databases · 2 marks · official answer ready
(b) HTML colour codes and Media Access Control (MAC) addresses are two examples of where hexadecimal is used in Computer Science. Give two other examples of where hexadecimal can …
Databases · 1 mark
(a) State the number of fields that are in the table GAMES. .......................................................................................................................…
Databases · 1 mark
(b) State one important fact that must be true for a field to be a primary key. ...................................................................................................…
Databases · 3 marks · official answer ready
(c) Complete the query-by-example grid to output all the games that have no stock and that are on order with the supplier. Display only the GameID, GameName and GamePrice fields i…
Databases · 4 marks · official answer ready
(a) Complete this query-by-example grid to display only the item number and the description of single use items, where the stock level is below the reorder level. Field: Table: So…
Databases · 1 mark · official answer ready
(b) Give a reason why the field SingleUse is not required in the table NURSE. .....................................................................................................…
Databases · 7 marks · official answer ready
8 An electronic game has three square mats that are coloured red, green and blue. The player will see a colour displayed on a screen and has 1 second to hit the mat that matches t…
Databases · 1 mark
22 UNTIL Continue = 0 (ii) Identify the field that should be used as the primary key. .............................................................................................…
Databases · 1 mark
(a) State the reason ID could be used as a primary key in the table GENRE. ........................................................................................................…
Databases · 1 mark
(b) State the number of records in the table GENRE. ...............................................................................................................................…
Databases · 4 marks · official answer ready
(c) Complete the query-by-example grid to display any genres with overdue books. Only display the ID, GenreName and Overdue fields in order of the number of books overdue from lar…
Databases · 5 marks · official answer ready
6 A database table, PLANT, is used to keep a record of plants sold by a nursery. The table has these fields: • NAME – name of plant • FLOWER – whether the plant flowers (True) or …
Databases · 6 marks · official answer ready
11 A theme park has a game where a player tries to run from the start to the finish without getting wet. The system for the game uses sensors and a microprocessor to spray water a…
Databases · 2 marks · official answer ready
(b) Identify the field that is most suitable to be a primary key and give a reason for your choice. Fieldname .....................................................................…
Databases · 4 marks · official answer ready
(c) Complete the query-by-example grid to show the items where the quantity in stock is fewer than 10. Show all the fields from the database table in descending order of cost. Fie…
