
Print test
68 Matching questions
- There are two ways to create a non-clustered index on a table. One uses Transact-SQL script statements, and the other uses the visual interface of ___
- Data can only be sorted in one way, it simply is not possible to have ___ clustered indexes on the same table.
- The fourth normal form (4NF) involves two independent attributes brought together to form a primary key along with a third attribute. But, if the two attributes don't really uniquely identify the entity without the third attribute, then the design violates ___ .
- Multiple values in the foreign key table can reference the ___
- The third normal form is violated when the ___
- These keys are then stored in a structure called a ___ that enables SQL Server to find the row(s) associated with those defined values much more quickly and efficiently.
- Candidate keys that are not selected as the primary key are then known as ___
- Candidate keys:
- There are two ways to create a non-clustered index on a table. One uses ___ , and the other uses the visual interface of SQL Server Management Studio.
- A primary key is a set of columns in a table that ___
- If the two attributes don't really uniquely identify the entity without the third attribute, then ___
- Central phrase to remember in describing the third normal form is that every attribute must ___
- A unique constraint acts similarly ___
- Three different types of constraints available within SQL Server ensure that you are able to maintain database integrity:
- System allows you to assign multiple products to multiple customers. This is a ___
- The second normal form (2NF) ensures that ___
- We must remove the TOTAL from the table to comply with the third normal form.
We could replace our original attributes with the following attributes:
• Order Number
• Customer Number
• Unit Price
• Quantity
Now our table is in 3NF. But, you might ask, what about the TOTAL? - Placing columns in the correct table makes it easier to ___
- An index is an on-disk (or stored) structure associated entirely with a table or a view that ___
- A table with a clustered index is considered a ___
- When a table has no clustered index, the data rows are then stored in an unordered structure called a ___
- By definition, a primary key must be ___
- A clustered index is a ___ construct, unlike most indexes, which are logical or software-based.
- A ___ is similar to a partial dependency in that both refer to attributes that are not fully dependent on a primary key.
- primary key:
- A unique constraint acts similarly to a primary key but with two important differences:
- We have a table of widget orders that contains the following attributes:
• Order Number (primary key)
• Customer Number
• Unit Price
• Quantity
• Total
What about the total? The total can be derived by multiplying the unit price by the quantity, and therefore it's ___ - When two tables relate to each other, one of them will act as the primary table and the other will act as the ___
- 2NF is entirely based on dependency: specifically, the attributes of the entity in question, which is not part of a candidate key, must be ___
- There are two basic requirements for a database to be in third normal form:
- Every table must have a ___
- You cannot have two rows containing a ___
- A clustered index is a physical construct, unlike most indexes, which are ___
- Without locks, a change made by one transaction could be ___
- Normalization, by definition, is ___
- A foreign key then creates a relationship between two tables by linking the ___
- The third normal form (3NF) checks for ___
- Create a foreign key constraint using the SSMS interface:
- Create a unique constraint:
- A non-normalized database is often more complex and therefore more ___
- One important feature of SQL Server is its automatic creation of a clustered index when the ___
- Imagine that you take the tables in a database and categorize them based on two data types:
- Normalization reduces ___
- Fifth normalization form (5NF):
- Third normalization form (3NF):
- First normalization form (1NF):
- Each table can have only ___ clustered index that defines how SQL Server will sort the data stored inside the table.
- SQL Server will require all associated values with the constraint in the foreign key table to have ___
- If an attribute depends on one of the primary key attributes but not the others, then it becomes a partial dependency, which violates the ___
- You can only have one clustered index per table. Why?
- A composite primary key occurs when ___
- The base camp data (...) violates the first normal form: the repeating tour attribute (Tour 1, Tour 2, and Tour 3) is not unique ( there are three values assigned for Tours). To redesign the data model so that it complies with the first normal form, you must ___
- Normalization has these three advantages:
- Fourth normalization form (4NF):
- A unique key constraint will allow you to ___
- Create a non-clustered index using Sql Server Management Studio
- Second normalization form (2NF):
- Although it may take longer to design a normalized database, such databases are easier to work with and reduce ___
- The first normalized form (1NF) means the data is in an entity format, which basically means that the following three conditions must be met:
- The second normal form is violated when ___
- The third normal form is resolved by ___
- Once you have defined a primary key for the table, ___
- Locks are ___
- In order to connect two tables, the primary key is replicated from the primary to the secondary table, and all the key attributes duplicated from the primary table become known as the ___
- It is in the tables that relate entities that ___
- A dependency is considered transient when ___
- Normalization, in a nutshell, is ___
- On a table ___ , you can add multiple table columns to the index key.
- a foreign key.
- b moving the nondependent attribute to a new entity.
- c not fully dependent on the primary key.
- d to a primary key (...)
- e mechanisms that are used to prevent simultaneous changes to the database
- f functionally dependent upon the entire primary key.
- g with a non-clustered index
- h the fourth normal form
- i attribute depends on the key but also on another nonkey attribute.
- j foreign key in one of the tables to the primary key of the referenced table.
- k one
- l second normal form.
- m physical
- n Eliminate repeating groups
- o transitive dependencies.
- p corresponding values in the primary key table.
- q primary key; without a primary key, it's not a valid table.
- r alternate keys.
- s the design violates the fourth normal form.
- t • Columns containing a unique key constraint may contain only one row with a NULL value.
• A table may have multiple unique constraints. - u the process of organizing data in order to reduce redundancy by dividing a database into two or more tables and then defining table relationships.
- v NULL value in the same option, as that would violate the unique constraint's duplicate value error.
- w B-tree
- x SQL Server Management Studio.
- y the composite primary key plays an important role.
- z SSMS »» Databases folder »» Tables folder »» Indexes subfolder »» New index »» New Index properties box »» This is where you would select whether the index you are creating is to be clustered or non-clustered.
- aa • Development costs
• Usability
• Extensibility - ab uniquely identifies each row of data.
- ac clustered table
- ad We can simply compute the TOTAL "on the fly" when performing database queries.
We can now use the following query in order to achieve the same results, without violating normalization rules:
SELECT OrderNumber, UnitPrice * Quantity
AS Total
FROM WidgetOrders - ae an attribute depends on only part of the key.
- af SSMS »» . Right-click the table and select Design view »» Table Designer »» Select Relationships »» Select the table to which you wish to add the foreign key constraint »» Tables and Columns Specification »» Click the ellipsis (. . .) »» Select the table that your foreign key refers to in the primary key table »» OK »» Close »» Save All
- ag Eliminate redundant data
- ah the elimination of redundant data to save space.
- ai The data in the rows are sorted in only one order.
- aj resolve the repeating group of tour attributes into a single unique attribute and then move any multiple values to a unique table.
- ak you define more than one column as your primary key.
- al "provide a fact about the key, the whole key, and nothing but the key."
- am Eliminate columns not dependent on key
- an heap.
- ao • The database must already meet the requirements of both 1NF and 2NF.
• The database must not contain any columns that aren't fully dependent upon the primary key. - ap transitive dependency
- aq secondary table.
- ar development costs.
- as Isolate semantically related multiple relationships
- at understand a database and write correct queries.
- au unique and must have a value that is not null.
- av two
- aw you have met the first normalized form criterion.
- ax • Tables that define entities
• Tables that relate entities - ay attribute1 is dependent on attribute2, which is then dependent on the primary key.
- az logical or software-based.
- ba increases the speed of data retrieval.
- bb All the potential primary keys.
- bc Isolate independent multiple relationships
- bd overwritten by another transaction that executes at the same time.
- be • The table must have no duplicate records.
• The table also must not have multivalued attributes..
• The entries in the column or attribute must be of the same data type. - bf enforce the uniqueness property of columns, in addition to a primary key within a table.
- bg primary key is defined for a table.
- bh SSMS »» right-clicking the table and selecting Design »» Table Designer »» select Indexes/Keys »» Click on the Add button to create a new key »» the Type property in the right side of the property box and change it from the default of Index to Unique Key »» Columns property section, Click (. . .) »» Close »» Save All
- bi Transact-SQL script statements
- bj difficult to modify.
- bk same record in the primary key table.
- bl "many-to-many" relationship between the Customer and Products tables.
- bm an attribute or set of attributes that can be used to uniquely identify each row.
- bn locking contention and improves multiple-user performance.
- bo each attribute does in fact describe the entity.
- bp Primary keys, foreign keys, and composite (unique) keys.