Question 1
1 markA bus company's database table has a field that stores the time each bus is due to leave the bus station, for example 14:35.
State the most suitable data type for this field.
Model answer
Date/time
Explanation
Times and dates should use the date/time data type so that only valid times can be stored and they can be sorted and compared in time order. Stored as text or as a real number, 14:35 could not be checked or compared properly.
Mark scheme
-
1 mark
Date/time
Accept time. Do not accept real or text.