Which property of an entity can become a column in a table?
In database design, attributes of an entity become columns in a relational table.
Example Usage:
For an Employee entity, attributes might include:

CREATE TABLE Employees (
EmployeeID INT PRIMARY KEY,
Name VARCHAR(50),
Salary DECIMAL(10,2),
DepartmentID INT
);
Each attribute (e.g., Name, Salary) becomes a column in the table.
Why Other Options Are Incorrect:
Option A (Modality) (Incorrect): Describes optional vs. mandatory relationships, not table structure.
Option B (Uniqueness) (Incorrect): Ensures distinct values but is not a column property.
Option D (Non-null values) (Incorrect): Ensures that columns must contain data but does not define attributes.
Thus, the correct answer is Attribute, as attributes of entities become table columns.
Which term defines a column, or group of columns, that refers to a primary key in a different table?
A foreign key is a column (or a set of columns) that establishes a relationship between two tables by referencing the primary key of another table.
Example Usage:
sql
CREATE TABLE Departments (
DeptID INT PRIMARY KEY,
DeptName VARCHAR(50)
);
CREATE TABLE Employees (
EmpID INT PRIMARY KEY,
Name VARCHAR(50),
DeptID INT,
FOREIGN KEY (DeptID) REFERENCES Departments(DeptID)
);
DeptID in Employees is a foreign key, referencing DeptID in Departments.
Ensures referential integrity DeptID in Employees must exist in Departments.
Why Other Options Are Incorrect:
Option A (Super key) (Incorrect): A super key is any set of columns that uniquely identifies a row, but it does not reference another table.
Option B (Simple key) (Incorrect): A simple key is a single-column primary key, not a reference to another table.
Option C (Composite key) (Incorrect): A composite key consists of multiple columns but does not necessarily reference another table.
Thus, the correct answer is Foreign key, as it establishes a connection between two tables.
Which description defines a data type?
A data type defines the kind of data a column can store in a database. It ensures data consistency and efficient storage.
Option A (Correct): A data type is a named set of values, such as INTEGER, VARCHAR, DATE, etc.
Option B (Incorrect): A tuple refers to a row in a relational database, not a data type.
Option C (Incorrect): Data types define column values, but they do not correspond directly to columns.
Option D (Incorrect): Data types do not have a varying set of rows; they define attributes for columns.
Which type of join is demonstrated by the following query?
sql
SELECT *
FROM Make, Model
WHERE Make.ModelID = Model.ID;
This query performs a join operation where records from the Make table and Model table are combined based on the condition Make.ModelID = Model.ID. This condition tests for equality, which is the definition of an EQUIJOIN.
Types of Joins in SQL:
EQUIJOIN (Correct Answer):
Uses an equality operator (=) to match rows between tables.
Equivalent to an INNER JOIN ON condition.
Example:
sql
SELECT *
FROM Employees
JOIN Departments ON Employees.DeptID = Departments.ID;
NON-EQUIJOIN (Incorrect):
Uses comparison operators other than = (e.g., <, >, BETWEEN).
Example:
sql
SELECT *
FROM Employees e
JOIN Salaries s ON e.Salary > s.MedianSalary;
SELF JOIN (Incorrect):
A table is joined with itself using table aliases.
Example:
sql
SELECT e1.Name, e2.Name AS Manager
FROM Employees e1
JOIN Employees e2 ON e1.ManagerID = e2.ID;
CROSS JOIN (Incorrect):
Produces Cartesian product (each row from Table A combines with every row from Table B).
Example:
sql
SELECT *
FROM Employees
CROSS JOIN Departments;
Thus, since our given query uses an equality condition (=) to join two tables, it is an EQUIJOIN.
Which characteristic is true for non-relational databases?
Non-relational databases (also called NoSQL databases) are designed for handling big data and unstructured data efficiently. They are optimized for horizontal scaling, making them ideal for large-scale distributed systems.
Option A (Correct): Non-relational databases are optimized for big data, handling massive volumes of data across distributed architectures.
Option B (Incorrect): NoSQL databases do not use SQL as their primary query language. They often use JSON-based queries (e.g., MongoDB).
Option C (Incorrect): Transaction-heavy applications require ACID compliance, which relational databases (SQL) handle better than NoSQL databases.
Option D (Incorrect): NoSQL databases use document, key-value, graph, or column-family storage models, not tables, columns, and rows like relational databases.
Kristine
11 days agoFiliberto
18 days agoLino
25 days agoLouvenia
1 month agoCarmela
1 month agoKenda
2 months agoJoni
2 months agoYolande
2 months agoEugene
2 months agoGraciela
3 months agoJulieta
3 months agoGary
3 months agoQueenie
3 months agoHaydee
4 months agoLamonica
4 months agoGayla
4 months agoMyong
4 months agoJamal
5 months agoGolda
5 months agoPa
5 months ago