the sql query list the employee details of all the employees working for the departments other than IT related, and earning salary equal to the maximum salary earned by employees in department 60.
The sql query list the employee details of all the employees working with department = IT.
Query list the employee details of all the employees working with the department 60.
None of the above.
Sql query returns the list of employees who earn 10000 or more and whoose job id has exactly 5 characters with middle three being "MAN".
The Sql query returns the list of employees who earn 10000 or more and whoose job id contains MAN.
Sql query returns the list of employees who earn 10000 or more and whoose job id begins with MAN.
Sql query returns the list of employees who earn 10000 or more and whoose job id contains one of the letters M,A,N.
20,10,200
30,10,300
30,20,600
30,30,900
Query flashback
Rollback segments
Cursor management
Indexing
Into v_sal,v_emp_id
Into v_sal
Using v_emp_id
Using v_sal
Using v_sal,v_emp_id
500
250
1000
750
Use truncate option instead of delete
Use on delete cascade option
You have to remove the constraint before a row can be deleted
You have to delete the child record first.
Select empname from emp where empname like '_%ill'
Select empname from emp where empname like 'ill_'
Select empname from emp where empname like '%ill%'
Select empname from emp where empname like '_ill'
1
6
2
7
Null
True
False
547.5
547
546
546.5
'When other handler' is displayed
Program issues error
No message is displayed
'Zero divide handler' is displayed
'When other handler' is displayed after which 'Zero divide handler' is displayed.
Only statement 2 is false
Only statement 1 is true
Statement 1 and statement 2 are true
Statement 1 and statement 2 are false
Select city,translate(city,not known) from Memberdetails
select city,coalesce(city,not known) from Memberdetails
Select city,nullif(city,not known) from Memberdetails
Select city,decode(city,not known) from Memberdetails
Adds i elements at nth position
Adds a single null element at ith position
Appends n elements and sets each to the same value as the ith element.
Adds n null elements at the ith position.
Appends n elements and sets each to a null value
Select ename,To_char(hiredate,YYYY) from emp;
Select ename,Decode(substr(hiredate,8),Year) from emp;
Select ename,Decode(substr(hiredate,8)YYYY) from emp;
Select ename,To_date(hiredate,YYYY) from emp;
Select ename,To_char(substr(hiredate,8,2)YYYY) from emp;
Specification is required but body is optional.
To reference a package procedure, you have to use the . notation.
the specification and body are stored separately in the database.
Both specification and body are required components of a package.
The specification and body are stored together in the database.
To execute dynamic sql,the syntax is dynamic sql ,where sql_string is the string containing the sql code.
It contains sql statements that are constructed and executed at run time.
It can contain DDL statements.
It can be used to build generic and reusable code.
It can contain only DML statements.
True
False
Varchar2
Out
Return
Number
In
True
False
True
False
True
False
True
False
20
Unlimited Characters
30
10
CREATE EXCEPTION myexp;
MyEXP new Exception;
Exception myExp;
MyExp Exception;
TYPE Exception myExp;
True
False
True
False
True
False
Default Tablespace
Segment Tablespace
Temporary Tablespace
User Tablespace
Quiz Review Timeline +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.