A television (TV) store has a database table, TVSTOCK, for its new range of televisions. The table stores the screen size of each TV, whether it will show 3D, whether the screen is curved or flat, if the internet is available on the TV, if it has a built-in hard disk drive and the price. Part of the database table is shown below. Table: TVSTOCK | TVID | ScreenSize | 3D | CurvedFlat | Internet | HDD | Price | |:----------|:----------:|:--:|:----------:|:--------:|:---:|:----------| | TV80CVINT | 80 | YES| CV | YES | YES | $7,000.00 | | TV65CVINT | 65 | YES| CV | YES | YES | $5,000.00 | | TV60CVINT | 60 | YES| CV | YES | YES | $4,500.00 | | TV60FTINT | 60 | YES| FT | YES | YES | $4,000.00 | | TV55CVINT | 55 | YES| CV | YES | NO | $3,000.00 | | TV55FTINT | 55 | YES| FT | YES | NO | $3,500.00 | | TV55FTNIN | 55 | YES| FT | NO | NO | $3,000.00 | | TV50CVINT | 50 | YES| CV | YES | NO | $2,500.00 | | TV50FTINT | 50 | YES| FT | YES | NO | $2,000.00 | | TV50FTNIN | 50 | YES| FT | NO | NO | $1,750.00 | | TV42FTINT | 42 | YES| FT | YES | NO | $1,500.00 | | TV37FTINT | 37 | NO | FT | YES | NO | $1,200.00 | | TV20FTNIN | 20 | NO | FT | NO | NO | $800.00 | | TV15FTNIN | 15 | NO | FT | NO | NO | $400.00 |
- (a)State the type of the field TVID and give a reason for your choice.[1]
- (b)Complete the table with the most appropriate data type for each field. | Field name | Data type | |:-----------|:----------| | ScreenSize | | | 3D | | | CurvedFlat | | | Internet | | | HDD | | | Price | |[3]
- (c)Use the query-by-example grid below to provide a list of all of the curved screen TVs that have a built-in hard disk drive. Make sure the list only displays the TVID, the price and the screen size in ascending order of price. Query-by-example grid with columns for Field, Table, Sort, Show, Criteria, or.[5]
Mark scheme
Marking points from the official mark scheme (May/June 2017). The mark or mark type is shown in brackets.
- [1] Any one from:
- - It is the primary key/key field with unique data
- - (Fixed length) text field with alphanumeric data
- [3] 1 mark for every two correct data types
- Field name: ScreenSize -> Data type: Number
- Field name: 3D -> Data type: Boolean
- Field name: CurvedFlat -> Data type: Text
- Field name: Internet -> Data type: Boolean
- Field name: HDD -> Data type: Boolean
- Field name: Price -> Data type: Currency
- [5]
- Field: TVID, ScreenSize, CurvedFlat, HDD, Price
- Table: TVSTOCK, TVSTOCK, TVSTOCK, TVSTOCK, TVSTOCK
- Sort: Price: Ascending
- Show: TVID (ticked), ScreenSize (ticked), CurvedFlat (blank), HDD (blank), Price (ticked)
- Criteria: CurvedFlat: ="CV" ; HDD: YES
- (1 Mark) (1 Mark) (1 Mark) (1 Mark) (1 Mark)
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →