Q1
True / FalseIn ORACLE, the SELECT INTO statement is used to select data from one or more tables and insert it into another table.
The SELECT INTO statement in ORACLE is used to select data from a table and insert it into a variable, not another table.
Q2
True / FalseThe SELECT INTO statement in ORACLE can only be used within PL/SQL blocks.
SELECT INTO is used to assign values to PL/SQL variables, and thus it must be used within a PL/SQL block.
Q3
True / FalseYou can use SELECT INTO in ORACLE to insert multiple rows of data into multiple variables.
SELECT INTO in ORACLE can only insert one row of data into multiple variables. If the query returns more than one row, it will result in an error.
Q4
True / FalseIn ORACLE, if a SELECT INTO statement does not return any rows, a NO_DATA_FOUND exception is raised.
When a SELECT INTO statement in ORACLE does not find any rows, the NO_DATA_FOUND exception is automatically raised.
Q5
True / FalseThe SELECT INTO statement in ORACLE can include joins between multiple tables.
You can use joins in a SELECT INTO statement to retrieve data from multiple tables and assign it to variables.
Q6
True / FalseYou can use the SELECT INTO statement in ORACLE to fetch data into a collection type variable.
SELECT INTO is used to fetch data into scalar variables or record types, not collections. To fetch data into collections, a cursor or bulk collect should be used.
Q7
True / FalseIn ORACLE, the SELECT INTO statement supports the use of aggregate functions like SUM and AVG.
Aggregate functions can be used within a SELECT INTO statement to assign the result to a variable.
Q8
True / FalseUsing SELECT INTO with a subquery that includes a GROUP BY clause in ORACLE will always require the variable to be of a collection type.
A GROUP BY clause can be used in a SELECT INTO statement as long as the subquery returns a single row; otherwise, it will cause an error.
Q9
True / FalseThe SELECT INTO statement in ORACLE can be used with a DISTINCT keyword to eliminate duplicate values before assigning to variables.
The DISTINCT keyword can be used in a SELECT INTO statement to ensure that only unique values are assigned to variables.
Q10
True / FalseIn ORACLE, when using SELECT INTO, the variables must be declared in the same order as the columns in the SELECT statement.
The variables in a SELECT INTO statement must be declared in the same order as the columns in the SELECT statement because the values are assigned positionally.
Q14
Single ChoiceIn Oracle, how can you use SELECT INTO to fetch multiple column values into multiple PL/SQL variables?
To fetch multiple column values into multiple PL/SQL variables, the correct syntax is SELECT column1, column2 INTO variable1, variable2 FROM table_name WHERE condition.