Database MCQS

A. Structured Language
B. Standard Query Language
C. Sequential Query Language
D. Simple Question Language
A. SELECT * FROM employees;
B. SELECT ALL FROM employees;
C. SHOW COLUMNS FROM employees;
D. DISPLAY employees;
A. Specify the columns to be selected
B. Filter rows based on a condition
C. Sort the result set
D. Join multiple tables
A. UPDATE
B. MODIFY
C. CHANGE
D. SET
A. Filter rows
B. Group rows
C. Sort the result set
D. Combine tables
A. VARCHAR
B. CHAR
C. TEXT
D. BLOB
A. Ascending
B. Descending
C. Random
D. Alphabetical
A. COUNT()
B. TOTAL()
C. SUM()
D. ROWCOUNT()
A. Filter rows
B. Sort the result set
C. Combine rows into groups
D. Join multiple tables
A. DELETE FROM table;
B. REMOVE * FROM table;
C. TRUNCATE TABLE table;
D. DROP TABLE table;
A. Combines rows from two or more tables
B. Retrieves all rows from a table
C. Retrieves rows that have no matching rows in the other table
D. Excludes specified rows
A. INSERT INTO
B. ADD DATA
C. UPDATE DATA
D. ADD INTO
A. PRIMARY KEY
B. UNIQUE
C. FULLTEXT
D. INDEX
A. Filter rows
B. Sort the result set
C. Filter groups
D. Combine rows into groups
A. DESCRIBE
B. SHOW TABLE
C. DISPLAY TABLE
D. INFO TABLE
A. 255
B. 512
C. 1024
D. It varies based on the version
A. ALLOW PRIVILEGES
B. GRANT PRIVILEGES
C. GRANT
D. ALLOW ACCESS
A. Filter rows
B. Sort the result set
C. Limit the number of rows returned
D. Join multiple tables
A. MAX()
B. HIGH()
C. TOP()
D. HIGHEST()
A. Sort the result set
B. Filter rows
C. Eliminate duplicate values
D. Combine rows into groups
A. MyISAM
B. InnoDB
C. MEMORY
D. ARCHIVE
A. MODIFY
B. CHANGE
C. UPDATE
D. SET
A. Allows NULL values
B. Prevents NULL values
C. Sorts values in descending order
D. Groups values
A. DELETE DATABASE
B. DROP DATABASE
C. REMOVE DATABASE
D. DESTROY DATABASE
A. Combine rows from two or more tables
B. Sort the result set
C. Combine rows into groups
D. Join multiple tables
A. Automatically adds a new row
B. Automatically updates or deletes related rows
C. Allows NULL values
D. Sorts values in ascending order
A. VARCHAR
B. TEXT
C. BLOB
D. CHAR
A. Find the average value
B. Find the total number of rows
C. Find the highest value
D. Find the lowest value
A. CREATE TABLE
B. NEW TABLE
C. ADD TABLE
D. INSERT TABLE
A. Filter rows
B. Rename a column or table
C. Sort the result set
D. Combine rows into groups
A. Automatically increments the value of a column
B. Sets a column to a predefined value
C. Allows NULL values in a column
D. Adds a default value to a column
A. MIN()
B. LOW()
C. BOTTOM()
D. LEAST()
A. Filter rows based on a range
B. Filter rows based on a list of values
C. Sort the result set
D. Join multiple tables
A. ADD COLUMN
B. MODIFY COLUMN
C. INSERT COLUMN
D. CHANGE COLUMN
A. Display the structure of a table
B. Show the list of tables in a database
C. Display the content of a table
D. Show the indexes of a table
A. ADD INDEX
B. CREATE INDEX
C. INDEX TABLE
D. ALTER INDEX
A. Sort in descending order
B. Specify a description
C. Sort in ascending order
D. Display columns
A. UPDATE VALUES
B. MODIFY VALUES
C. SET VALUES
D. UPDATE SET
A. Save changes to the database
B. Undo changes made during the current transaction
C. Commit changes to the database
D. Delete records from the database
A. Load data from a file into a table
B. Load data from a table into a file
C. Load data from one database to another
D. Load data from multiple tables
A. NOW()
B. CURRENT_DATE()
C. GETDATE()
D. SYSDATE()
A. Count all rows
B. Count only distinct rows
C. Count rows based on a condition
D. Count rows in a specific column
A. MyISAM
B. InnoDB
C. MEMORY
D. ARCHIVE
A. DELETE TABLE
B. REMOVE TABLE
C. DROP TABLE
D. DELETE FROM TABLE
A. CONCAT()
B. MERGE()
C. COMBINE()
D. STRING()
A. Remove specific records
B. Remove all records and reset auto-increment
C. Remove duplicate records
D. Remove NULL values
A. UNIQUE
B. ADD UNIQUE
C. CONSTRAINT UNIQUE
D. CREATE CONSTRAINT
A. Atomicity, Consistency, Isolation, Durability
B. Association, Consistency, Isolation, Dependency
C. Atomicity, Consistency, Integration, Durability
D. Association, Commitment, Isolation, Dependency
A. GRANT ALL PRIVILEGES
B. GRANT FULL ACCESS
C. GRANT SUPERUSER
D. GRANT ALL RIGHTS
A. Retrieve all rows from the left table
B. Retrieve rows that have no matching rows in the right table
C. Combine rows from two or more tables
D. Exclude specified rows
A. Ensures unique values in a column
B. Establishes a link between two tables
C. Limits the number of rows returned
D. Sets a default value for a column
A. STRLEN()
B. LEN()
C. LENGTH()
D. STRINGLENGTH()
A. Combine multiple columns
B. Replace NULL values with a specified value
C. Calculate the average value
D. Concatenate multiple rows
A. Binary Large Object
B. Basic Long Object
C. Binary Linked Object
D. Basic Linked Object
A. MODIFY TABLE
B. CHANGE TABLE
C. ALTER TABLE
D. UPDATE TABLE
A. Filter rows based on a condition
B. Sort the result set
C. Combine rows into groups
D. Search for a specified pattern in a column
A. GETUSER()
B. CURRENT_USER()
C. USER()
D. GET_CURRENT_USER()
A. Stores binary data
B. Stores a list of values
C. Stores floating-point numbers
D. Stores integer values
A. REMOVE PRIVILEGES
B. DELETE PRIVILEGES
C. DROP PRIVILEGES
D. REVOKE
A. Calculate the average value
B. Replace NULL values with a specified value
C. Concatenate multiple rows
D. Round numeric values
A. Table Structured Query Language
B. Transactional SQL
C. Transact-SQL
D. Table SQL
A. DATETIME
B. DATE
C. TIMESTAMP
D. TIME
A. Filter rows
B. Sort the result set
C. Limit the number of rows returned
D. Join multiple tables
A. DELETE FROM table;
B. REMOVE * FROM table;
C. TRUNCATE TABLE table;
D. DROP TABLE table;
A. Filter rows
B. Sort the result set
C. Combine rows into groups
D. Join multiple tables
A. STRLEN()
B. LEN()
C. LENGTH()
D. STRINGLENGTH()
A. Combines rows from two or more tables
B. Retrieves all rows from a table
C. Retrieves rows that have no matching rows in the other table
D. Excludes specified rows
A. ADD COLUMN
B. MODIFY COLUMN
C. INSERT COLUMN
D. CHANGE COLUMN
A. Filter rows based on a condition
B. Sort the result set
C. Combine rows into groups
D. Search for a specified pattern in a column
A. CONCAT()
B. MERGE()
C. COMBINE()
D. STRING()
A. Filter rows
B. Group rows
C. Sort the result set
D. Combine rows into groups
A. Ensures unique values in a column
B. Limits the number of rows returned
C. Enforces a condition on a column
D. Sets a default value for a column
A. DELETE TABLE
B. REMOVE TABLE
C. DROP TABLE
D. DELETE FROM TABLE
A. Save changes to the database
B. Undo changes made during the current transaction
C. Commit changes to the database
D. Delete records from the database
A. UPDATE VALUES
B. MODIFY VALUES
C. SET VALUES
D. UPDATE SET
A. Establish a link between two tables
B. Automatically increments the value of a column
C. Enforce a unique constraint
D. Limit the number of rows returned
A. UNIQUE
B. ADD UNIQUE
C. CONSTRAINT UNIQUE
D. CREATE CONSTRAINT
A. Atomicity, Consistency, Isolation, Durability
B. Association, Consistency, Isolation, Dependency
C. Atomicity, Consistency, Integration, Durability
D. Association, Commitment, Isolation, Dependency
A. Sort the result set
B. Filter rows
C. Eliminate duplicate values
D. Combine rows into groups
A. GRANT ALL PRIVILEGES
B. GRANT FULL ACCESS
C. GRANT SUPERUSER
D. GRANT ALL RIGHTS
A. Filter rows
B. Sort the result set
C. Filter groups
D. Combine rows into groups
A. CREATE TABLE
B. NEW TABLE
C. ADD TABLE
D. INSERT TABLE
A. Combines rows from two or more tables
B. Retrieves all rows from a table
C. Retrieves rows that have no matching rows in the other table
D. Generates the Cartesian product of two tables
A. Find the average value
B. Find the total number of rows
C. Find the highest value
D. Find the lowest value
A. MODIFY
B. CHANGE
C. UPDATE
D. SET
A. Stores binary data
B. Stores integer values
C. Stores floating-point numbers
D. Stores a list of values
A. ALLOW PRIVILEGES
B. GRANT PRIVILEGES
C. GRANT
D. ALLOW ACCESS
A. Filter rows
B. Sort the result set
C. Limit the number of rows returned
D. Join multiple tables
A. Stores XML data
B. Stores binary data
C. Stores integer values
D. Stores a list of values
A. INSERT INTO
B. ADD ROW
C. NEW ROW
D. CREATE ROW
A. Combine multiple columns
B. Replace NULL values with a specified value
C. Calculate the average value
D. Concatenate multiple rows
A. Stores binary data
B. Stores integer values
C. Stores floating-point numbers
D. Stores a list of values
A. REMOVE PRIVILEGES
B. DELETE PRIVILEGES
C. DROP PRIVILEGES
D. REVOKE
A. Find the average value
B. Find the length of a string
C. Find the position of a substring in a string
D. Concatenate multiple strings
A. Generate a sequence of numbers
B. Execute a set of statements in response to an event
C. Establish a link between two tables
D. Enforce a unique constraint
A. Count the number of rows affected by a query
B. Suppress the count of the number of rows affected by a query
C. Count the total number of rows in a table
D. Disable the use of COUNT function
A. DIFFDATEDAYS()
B. DATEDIFF()
C. DIFFDATE()
D. DATE_DIFF()
A. Extract a single value from an XML string
B. Combine multiple XML values
C. Concatenate XML strings
D. Validate XML structure
A. MODIFY TABLE
B. CHANGE TABLE
C. ALTER TABLE
D. UPDATE TABLE
A. Execute a set of statements in a loop
B. Handle exceptions and errors in a controlled manner
C. Define a cursor for record processing
D. Create a temporary table
A. Filter rows based on a condition
B. Sort the result set
C. Combine rows into groups
D. Perform conditional logic in a query
A. ADD INDEX
B. CREATE INDEX
C. INDEX TABLE
D. ALTER INDEX
A. Combine rows from two or more tables
B. Rotate rows into columns based on values in a specified column
C. Sort the result set
D. Join multiple tables
A. DELETE INDEX
B. REMOVE INDEX
C. DROP INDEX
D. ERASE INDEX
A. Combine rows from two or more tables
B. Rotate columns into rows based on values in a specified column
C. Sort the result set
D. Join multiple tables
A. Suppress errors in a query
B. Display a custom error message
C. Count the number of errors in a query
D. Create a temporary error table
A. Combine rows from two or more tables
B. Update, insert, or delete data based on a condition
C. Sort the result set
D. Join multiple tables
A. GRANT EXECUTE
B. GRANT EXECUTION
C. ALLOW EXECUTE
D. ALLOW EXECUTION
A. Index an entire XML column
B. Index specific elements or attributes in an XML column
C. Exclude XML columns from indexing
D. Disable indexing for XML columns
A. Concatenate multiple values
B. Convert a value to a different data type and handle errors gracefully
C. Find the average value
D. Validate XML structure
A. DELETE TABLE
B. REMOVE TABLE
C. TRUNCATE TABLE
D. DROP TABLE
A. Generate a sequence of numbers
B. Execute a set of statements in a loop
C. Define a cursor for record processing
D. Create a temporary table
A. Combine rows from two or more tables
B. Rotate rows into columns based on values in a specified column
C. Execute a table-valued function for each row
D. Sort the result set
A. RENAME TABLE
B. ALTER TABLE RENAME
C. ALTER TABLE RENAME TO
D. ALTER TABLE RENAME AS
A. Perform full-text search
B. Concatenate multiple columns
C. Validate XML structure
D. Generate a sequence of numbers
A. Find the length of a string
B. Find the current user
C. Calculate the average value
D. Concatenate multiple rows
A. Concatenate multiple columns
B. Parse a string into a specified data type
C. Calculate the average value
D. Generate a sequence of numbers
A. CREATE PROCEDURE
B. NEW PROCEDURE
C. ADD PROCEDURE
D. INSERT PROCEDURE
A. Mathematical constant representing the ratio of a circle's circumference to its diameter
B. Numeric constant representing the speed of light
C. Constant representing the number of days in a year
D. Constant representing the number of seconds in a minute
A. Concatenate multiple strings
B. Quote an identifier to make it a valid SQL Server delimited identifier
C. Calculate the average value
D. Round numeric values
A. Structured Question Language
B. Standard Query Language
C. Sequential Query Language
D. Structured Query Language
A. VARCHAR2
B. CHAR
C. CLOB
D. VARCHAR
A. Concatenate multiple columns
B. Replace NULL values with a specified value
C. Calculate the average value
D. Concatenate multiple rows
A. ADD INDEX
B. CREATE INDEX
C. INDEX TABLE
D. ALTER INDEX
A. Convert a date to a string
B. Convert a string to a date
C. Concatenate multiple dates
D. Round a date value
A. Store binary data
B. Store XML data
C. Provide a one-row, one-column table for selecting expressions
D. Store numeric values
A. STRLEN()
B. LEN()
C. LENGTH()
D. STRINGLENGTH()
A. Save changes to the database
B. Undo changes made during the current transaction
C. Commit changes to the database
D. Delete records from the database
A. CREATE TABLE
B. NEW TABLE
C. ADD TABLE
D. INSERT TABLE
A. Combine rows from two or more tables
B. Retrieve all rows from the left table
C. Retrieve rows that have no matching rows in the right table
D. Exclude specified rows
A. GRANT ALL PRIVILEGES
B. GRANT FULL ACCESS
C. GRANT SUPERUSER
D. GRANT ALL RIGHTS
A. Combine rows from two or more tables
B. Rotate rows into columns based on values in a specified column
C. Sort the result set
D. Join multiple tables
A. Filter rows
B. Sort the result set
C. Filter groups
D. Combine rows into groups
A. DELETE TABLE
B. REMOVE TABLE
C. DROP TABLE
D. DELETE FROM TABLE
A. Filter rows
B. Sort the result set
C. Combine rows into groups
D. Join multiple tables
A. Remove specific records
B. Remove all records and reset auto-increment
C. Remove duplicate records
D. Remove NULL values
A. VARCHAR
B. TEXT
C. CLOB
D. CHAR
A. Combine rows from two or more tables
B. Update, insert, or delete data based on a condition
C. Sort the result set
D. Join multiple tables
A. CREATE SEQUENCE
B. NEW SEQUENCE
C. ADD SEQUENCE
D. INSERT SEQUENCE
A. Stores XML data
B. Stores binary data
C. Stores integer values
D. Stores a list of values
A. Concatenate multiple values
B. Find the length of a string
C. Retrieve the value of a parameter in the database context
D. Validate XML structure
A. ALLOW PRIVILEGES
B. GRANT PRIVILEGES
C. GRANT
D. ALLOW ACCESS
A. Filter rows based on a range of values
B. Sort the result set
C. Combine rows into groups
D. Search for a specified pattern in a column
A. Calculate the average value
B. Assign a rank to each row within a result set
C. Concatenate multiple rows
D. Find the length of a string
A. Combine rows from two or more tables
B. Rotate rows into columns based on values in a specified column
C. Find the common rows between two SELECT statements
D. Join multiple tables
A. REMOVE PRIVILEGES
B. DELETE PRIVILEGES
C. DROP PRIVILEGES
D. REVOKE
A. Generate a random globally unique identifier
B. Concatenate multiple columns
C. Calculate the average value
D. Round numeric values
A. Concatenate multiple strings
B. Output a line of text to the console
C. Calculate the average value
D. Round numeric values
A. GETUSER()
B. CURRENT_USER()
C. USER()
D. SESSION_USER()
A. Perform data manipulation tasks
B. Schedule and manage jobs, including PL/SQL blocks and stored procedures
C. Calculate the average value
D. Create database links
A. Concatenate multiple columns
B. Find the length of a string
C. Find the position of a substring in a string
D. Concatenate multiple rows
A. GRANT EXECUTE
B. GRANT EXECUTION
C. ALLOW EXECUTE
D. ALLOW EXECUTION
A. Combine rows from two or more tables
B. Create a temporary result set for use in a SELECT statement
C. Sort the result set
D. Join multiple tables
A. Perform data manipulation tasks
B. Read and write files on the server's file system
C. Calculate the average value
D. Create triggers
A. Concatenate multiple values
B. Perform bitwise AND operation on two numbers
C. Calculate the average value
D. Round numeric values