5.1 Edit the tbJewellery table as follows:
5.1.1 Change the field size of the Metal field to 33 - NSC Computer Application Technology - Question 5 - 2016 - Paper 1
Question 5
5.1 Edit the tbJewellery table as follows:
5.1.1 Change the field size of the Metal field to 33.
5.1.2 Change the format of the Stones field to display 'Yes' and '... show full transcript
Worked Solution & Example Answer:5.1 Edit the tbJewellery table as follows:
5.1.1 Change the field size of the Metal field to 33 - NSC Computer Application Technology - Question 5 - 2016 - Paper 1
Step 1
5.1.1 Change the field size of the Metal field to 33.
96%
114 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
To change the field size of the Metal field, access the properties of the tbJewellery table. Locate the Metal field and set its size to 33 characters.
Step 2
5.1.2 Change the format of the Stones field to display 'Yes' and 'No'.
99%
104 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
Format the Stones field to allow for a Yes/No type. This can typically be achieved by setting the format property to a Yes/No data type or a boolean format.
Step 3
5.1.3 Set the field properties of the Grams field so that...
96%
101 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
Configure the Grams field with the following properties:
Set the 'Required' property to Yes, ensuring that the user must input a value.
Use a Validation Rule to restrict entries to between 11 and 80. The rule can look like: >10 AND <=80.
Provide an appropriate validation message such as 'Please enter a value between 11 and 80.'
Step 4
5.1.4 Edit the JewelleryType field options.
98%
120 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
Edit the JewelleryType field options to:
Remove the 'Watch' option.
Add 'Bangle' as the second option in the list. The final order should be:
Ring
Bangle
Earrings
Bracelet
Necklace.
Step 5
5.1.5 Create an input mask on the JewelleryId field.
97%
117 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
Set up an input mask for the JewelleryId field to enforce the format:
Use 'LLL000' where 'L' represents a letter and '0' represents a digit. This allows for three letters, one letter or digit, and one or two digits at the end.
Step 6
5.1.6 Set the default value of the ValuationDate.
97%
121 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
To set the ValuationDate default value, utilize a formula that adds 60 days to the current date. This can be set as:
DATEADD(day, 60, GETDATE())
This SQL function will calculate the date that is 60 days later than today.