PrepAway - Latest Free Exam Questions & Answers

You need to ensure that the following requirements are met: The fields must use the minimum amount of space

You develop a database application. You create four tables. Each table stores different categories of
products.
You create a Primary Key field on each table.
You need to ensure that the following requirements are met:
The fields must use the minimum amount of space.
The fields must be an incrementing series of values.
The values must be unique among the four tables.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Create a ROWVERSION column.

B.
Create a SEQUENCE object that uses the INTEGER data type.

C.
Use the INTEGER data type along with IDENTITY

D.
Use the UNIQUHDENTTFIER data type along with NEWSEQUENTIALID()

E.
Create a TIMESTAMP column.

6 Comments on “You need to ensure that the following requirements are met: The fields must use the minimum amount of space

  1. Mark says:

    I would say B.
    It takes less space than the UNIQUEIDENTIFIER datatype (16Bytes) vs INT (4Bytes)
    It would be unique across whatever calls it, because a SEQUENCE is an independent object, getting its next value with the NEXT VALUE FOR SeqName, defining a constraint on the PrimaryKey of all tables as

    ALTER TABLE tname
    ADD CONSTRAINT DFT_tname_cname
    DEFAULT(NEXT VALUE FOR SeqName) FOR cname;




    0



    0

Leave a Reply