Photo AI

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 icon

Question 5

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.png

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

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

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

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

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:
    1. Ring
    2. Bangle
    3. Earrings
    4. Bracelet
    5. Necklace.

Step 5

5.1.5 Create an input mask on the JewelleryId field.

97%

117 rated

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

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.

Join the NSC students using SimpleStudy...

97% of Students

Report Improved Results

98% of Students

Recommend to friends

100,000+

Students Supported

1 Million+

Questions answered

;