-
-
Changing column name
How we can change the name of the column for a existing table?
-
-
How to execute a sql*plus script from pl/sql block.
My script contains sql plus set commands. how to execute that script in a pl/sql block i.e. either anonymous ,procedure or function or trigger
-
SQL Time Functions
How to calculate the time variation between two different time sessions?
-
-
C Null and SQL Null
what is the difference between the null in C and one in SQL?
-
-
Provide brief explanation of following SQL code
This is one of the questions I have on my interview exam. It is a take home exam and I have not learned SQL but the employers want to know my know my skills to find answers using any means possible. Question: Review the following SQL code and give a brief explanation SELECT 'AD', B.AccountID,'Change' FROM (SELECT DISTINCT A.sAMAccountName As AccountID from (select AG.sAMAccountName...
-
-
-
-
What is the main difference between the IN and EXISTS clause in subqueries??
The main difference between the IN and EXISTS predicate in subquery is the way in which the query gets executed.IN -- The inner query is executed first and the list of values obtained as its result is used by the outer query.The inner query is executed for only once.EXISTS -- The first row from the outer query is selected ,then the inner query is executed and , the outer query output uses this result...
-
What is the output of the following query?
SELECT TRUNC(1234.5678,-2) FROM DUAL;1200
-
-
-
-
-
-
SQL Interview Questions
Ans