48. All of the following are SQL DDL commands except: A) CREATE TABLE. B) DROP INDEX. C)…
- User
- All of the following are SQL DDL commands except: A) CREATE TABLE. B) DROP INDEX. C) ADD TABLE. D) ALTER TABLE.
- The specification in the SQL CREATE TABLE command that enforces referential integrity is the: A) PRIMARY KEY. B) UNIQUE INDEX. C) FOREIGN KEY. D) NOT NULL.
- In standard SQL, all of the following are valid deletion options for foreign keys except: A) CASCADE. B) SET NULL. C) CHECK. D) not specifying an action.
- Assistant
C) ADD TABLE. C) FOREIGN KEY. C) CHECK.
- User
- To retrieve all columns from table A in a SQL SELECT operation, the SELECT should read which of the following? A) SELECT * FROM A… B) SELECT ALL FROM A… C) SELECT ALL COLUMNS FROM A… D) SELECT FROM A ALL COLUMNS…
- To have Oracle display the structure of a table named Employee, write which of the following? A) SELECT * FROM Employee; B) SHOW Employee; C) DISPLAY Employee; D) DESCRIBE Employee;
- Which of the following is another term for the system data dictionary? A) ALL view B) System catalog C) DBA view D) CONSTRAINTS
- Assistant
A) SELECT * FROM A… D) DESCRIBE Employee; B) System catalog
- User
- The data model level that an ER diagram best describes is the: A) external. B) conceptual. C) physical. D) internal.
- In the ER model, what symbol is used to represent an attribute that can have multiple values for an entity instance? A) Dashed oval B) Solid oval C) Double oval D) Oval with smaller ovals attached to it
- In the ER model, the set of values permitted for an attribute is called the: A) domain. B) range. C) entity set. D) instance.
- Assistant
B) conceptual. D) Oval with smaller ovals attached to it A) domain.
- User
- In an ER diagram, attributes are represented by: A) rectangles. B) ovals. C) diamonds. D) triangles.
- In the ER model, an attribute that can be broken down into smaller attributes is called: A) composite. B) derived. C) null. D) a superattribute.
- In the ER model, if the value of an attribute is determined by a calculation on the value of another attribute in a relation, we call the first attribute: A) weak. B) strong. C) derived. D) null.
- Assistant
A) rectangles. A) composite. C) derived.
- User
- In the ER model, a dashed oval is used to indicate which kind of attribute? A) Composite B) Multi-valued C) Null D) Derived
- In the ER model, the defining properties or qualities of an entity are called: A) attributes. B) members. C) fields. D) objects.
- In the ER model, an attribute, such as address, that can be broken up into smaller elements is said to be: A) composite. B) multi-valued. C) normalized. D) derived.
- Assistant
B) Multi-valued A) attributes. A) composite.
- User
- In the ER model, if the value of an attribute is null, it often means: A) the attribute is incorrect. B) the value is unknown. C) the value is zero. D) the value is a blank string.
- Of the following types of keys, the one that does not appear in the Entity-Relational model is: A) superkey. B) candidate key. C) primary key. D) foreign key.
- Any attribute or set of attributes that uniquely identifies an entity is called a: A) superkey. B) candidate key. C) primary key. D) secondary key
- Assistant
B) the value is unknown. A) superkey. B) candidate key. C) primary key.
- User
- Of the following types of keys, the one that does not appear in the Entity-Relational model is: A) superkey. B) candidate key. C) primary key. D) foreign key.
- Any attribute or set of attributes that uniquely identifies an entity is called a: A) superkey. B) candidate key. C) primary key. D) secondary key.
- In the ER model, a key that consists of more than one attribute is described as: A) composite. B) derived. C) a superkey. D) a foreign key
- Assistant
D) foreign key. C) primary key. A) composite.
- User
- On an ER diagram, the primary key of an entity is indicated by: A) underlining. B) italics. C) bold font. D) a double oval.
- In the ER model, a superkey in which all the attributes are necessary for uniqueness is called a(n): A) foreign key. B) composite key. C) candidate key. D) alternate key.
- An attribute or set of attributes used for accessing records but whose values are not unique is called a: A) candidate key. B) secondary key. C) superkey. D) primary key.
- Assistant
A) underlining. C) candidate key. B) secondary key.
- User
- In a library, the relationship between the Borrower entity set and the Books entity set normally has cardinality of: A) one-to-one. B) one-to-many. C) many-to-one. D) many-to-many.
- In a bank, if we assume that savings accounts can be jointly owned by two or more customers, and that a customer can have more than one savings account, the relationship between the Savings Accounts entity set and the Customer entity set is: A) one-to-one. B) one-to-many. C) many-to-one. D) many-to-many.
- In a business, if a department can have many workers, but each worker belongs to only one department, the cardinality of the department-to-worker relationship is: A) one-to-one. B) one-to-many. C) many-to-one. D) many-to-many.
- Assistant
B) one-to-many. D) many-to-many. B) one-to-many.
- User
- In the ER model, the number of entities that can map to one another under a relationship is called the: A) degree of the relationship. B) cardinality of the relationship. C) order of the relationship. D) descriptor of the relationship.
- The set of all possible values for an attribute is called its ______________.
- Explain what each of the following basic shapes represents in an ER diagram: rectangle, diamond, oval, line.
- Assistant
B) cardinality of the relationship. 42. The set of all possible values for an attribute is called its domain. 43.
- Rectangle: Represents an entity or table in the database.
- Diamond: Represents a relationship between entities.
- Oval: Represents an attribute of an entity.
- Line: Represents the connection or association between entities in a relationship.
- User
- Is it possible for a superkey not to be a candidate key? Why or why not?
- Explain the difference between the terms superkey, candidate key, and primary key.
- Briefly describe the four types of binary relationships possible between an entity set A and an entity set B based on relationship cardinality.
- Which type of relational table constraint cannot be specified as a column-level constraint? A) Composite primary key B) Uniqueness C) Check D) Default
- Assistant
-
Yes, it is possible for a superkey not to be a candidate key. A superkey is any set of attributes that uniquely identifies an entity, while a candidate key is a minimal superkey, meaning it cannot have any unnecessary attributes. Therefore, a superkey may have additional attributes that are not necessary for uniqueness, making it not a candidate key.
-
Superkey: A superkey is any set of attributes that uniquely identifies an entity. Candidate key: A candidate key is a minimal superkey, meaning it is a superkey without any unnecessary attributes. Primary key: A primary key is a selected candidate key that uniquely identifies each row or entity in a table and serves as the main identifier for the table.
-
The four types of binary relationships between entity sets A and B based on cardinality are:
-
- User
Having multiple copies of the same data is called: A) data redundancy. B) data integrity. C) data consistency. D) data standards. 9. Non-relational big data technologies designed to process large amounts of data in real time are collectively known as _________. 10. A description of the logical structure of a database is called a(n): A) outline. B) skeleton. C) schema. D) view.
- Assistant
A) data redundancy. 9. Non-relational big data technologies designed to process large amounts of data in real time are collectively known as NoSQL. 10. A description of the logical structure of a database is called a(n) schema.
- User
- When mapping a hierarchy from an EER diagram to a relational model, which of the following methods can be used? A) Create a single table that includes all attributes of the superset and the subsets. B) Create a table for the superset and one for each of the subsets. C) Create tables for the subsets but include the attributes of the superset in each. D) All of these are correct.
- If a relation has a primary key consisting of three attributes, which of the following must be true? A) Each of the attributes in the primary key must be a foreign key. B) The relation represents a weak entity. C) The relation represents a many-to-many relationship. D) None of these is correct.
- True or False? The degree of a relation is a characteristic of the intension of the relati
- Assistant
B) Create a table for the superset and one for each of the subsets. D) None of these is correct. False. The degree of a relation is a characteristic of the extension of the relation, not the intension.
- User
- In the relational model, the integrity rules that states that a foreign key must match a value in the home relation or be completely null is: A) entity integrity. B) referential integrity. C) domain integrity. D) relational integrity.
- Assistant
B) referential integrity.