-
Average Monthly Salary
Write a query to display the average, monthly salary bill for each job type within a department.
-
Department Wise Average Salary
How to query the average salary for all the departments employing more than 3 people?
-
-
-
Co-Related Sub Query
What are the disadvantages of co-related sub query?
-
Display time with sysdate
How to display time with sysdate?
-
Ref Cursors
How many ref cursors can be dynamically opened in stored procedures for a session?
-
SQL Soundx
What is soundx in SQL?
-
-
-
SELECT Statement in CASE
How to use select statement in Case?
-
How you will avoid your query from using indexes?
SELECT * FROM empWhere emp_no+' '=12345;i.e you have to concatenate the column name with space within codes in the where condition.SELECT /*+ FULL(a) */ ename, emp_no from empwhere emp_no=1234;i.e using HINTS
-
-
-
-
-
Retrieve Names from Table
How to retrieve names from table starting with a particular character as a first letter, using with substring, instring without using LIKE function.
-
Date Conversions
How to convert any kind of date that comes in any format from the user to 'yyyymmdd' in Oracle?
-
Print number of columns and column names
How to print the number of columns in a particular table also the column names without using JDBC Result set meta data using pure SQL code.
-
Differentiate between TRUNCATE and DELETE
TRUNCATE deletes much faster than DELETETRUNCATEDELETEIt is a DDL statementIt is a DML statementIt is a one way trip,cannot ROLLBACKOne can RollbackDoesn't have selective features (where clause)HasDoesn't fire database triggersDoesIt requires disabling of referential constraints.Does not require
Oracle SQL Interview Questions
Ans