1.
Which of the following SQL statements is used to retrieve and manipulate data?
Correct Answer
B. DML
Explanation
DML stands for Data Manipulation Language and is used to retrieve and manipulate data in SQL. It includes statements such as SELECT, INSERT, UPDATE, and DELETE, which are used to query and modify data in a database. DML statements allow users to retrieve specific data from tables, insert new data, update existing data, and delete unwanted data.
2.
Which of these DML commands is used to retrieve rows from a table?
Correct Answer
A. Select
Explanation
The correct answer is "select." This DML command is used to retrieve rows from a table. It allows you to specify the columns and conditions to filter the data you want to retrieve. The "retrieve" option is not a valid DML command. "Commit" is used to save changes made to the database, and "save point" is used to mark a specific point in a transaction for rollback purposes.
3.
This command modifies one or more data.
Correct Answer
C. Update
Explanation
The command "update" is the correct answer because it is commonly used to modify one or more data in a database. It is specifically designed for making changes to existing data, allowing users to update the values of specific columns or rows in a table. The other options, "select," "modify," and "change," do not specifically indicate the action of modifying data and are not commonly used for this purpose.
4.
Which of these commands adds one or more records to a database?
Correct Answer
A. Insert
Explanation
The command "insert" is used to add one or more records to a database. This command allows new data to be inserted into a specific table and creates a new record or row in the database with the provided information. It is commonly used when there is a need to add new data or information into an existing database. The "insert" command is essential for maintaining and updating the content of a database.
5.
The SELECT statement embedded within another SELECT statement is called...
Correct Answer
D. Subselect
Explanation
A subselect is a SELECT statement that is embedded within another SELECT statement. It is used to retrieve data from one or more tables and is typically used as a subquery within the WHERE or HAVING clause of the outer query. The subselect allows for more complex and specific queries by providing a way to filter and manipulate data before it is returned in the outer query's result set.
6.
The ____ command removes one or more record from the database.
Correct Answer
A. Delete
Explanation
The "delete" command is used to remove one or more records from the database. This command is commonly used in database management systems to delete specific data entries or entire rows from a table. It allows users to remove unwanted or outdated information from the database, ensuring data integrity and maintaining an accurate and up-to-date database.
7.
Which of these statements is a limited DML statement?
Correct Answer
C. Select
Explanation
A limited DML statement refers to a statement that does not modify or change data in the database. Among the given options, the "select" statement is the only one that retrieves data from the database without making any changes to it. The "delete," "insert," and "update" statements, on the other hand, are DML statements that respectively remove data, add new data, and modify existing data in the database. Therefore, the correct answer is "select."
8.
All of these DML statements are supported fully in PL/SQL except...
Correct Answer
B. Call
Explanation
The SELECT, UPDATE, and DELETE statements are all fully supported in PL/SQL. However, the CALL statement is not supported in PL/SQL. The CALL statement is used to invoke a stored procedure or function in other programming languages such as Java or C#. In PL/SQL, stored procedures and functions are invoked using the EXECUTE statement.
9.
Which of the following is not a DML command?
Correct Answer
D. Drop
Explanation
The DROP command is not a Data Manipulation Language (DML) command. DML commands are used to manipulate data within a database, such as updating, selecting, or deleting records. The DROP command, on the other hand, is a Data Definition Language (DDL) command used to remove objects from the database, such as tables or indexes.
10.
Which of the following is returned by the MIN function?
Correct Answer
B. Smallest value
Explanation
The MIN function is used to find the smallest value in a set of values. Therefore, the correct answer is "smallest value".