Interview Questions
Interview Questions
2. Features/Characters of DDL.
8. Features/Characters of DML.
15. What is the order of SQL query and briefly explain all the clauses/ commands.
19. Select ename, job from emp order by 3. What would be the output?
30. Select count (1) from Table_name. What would be the output?
31. Write a query while retrieving data, add one more column containing null.
32. Write a query designation wise, number of employees,total salary and avg salary
from emp table and retrieve only total salary more than 4000 and arrange the data of
number of employees in descending order.
35. What would be the output for a) Select nullif (20,20) from dual;
b) Select nullif (20,10) from dual;
36. SOURCE TARGET
1. india ***india
2. India ***india***
3. abcd ABCD
4. abcd AbcD
5. ABCD abcd
6. ABCD ABCD
1. ABCDABCD BCDBCD
2. ABCD ABCD
3. ***india india
4. india i
5. pakistan p
6. i india
7. p pakistan
40. In replace syntax, if we don't pass the replacement value,what would be the output?
41. Write a SQL query to find the count of repeated characters in your name.
42. What are the string functions? Define and write syntax for Substring and Instring.
43. In substring syntax, if we don't pass the length value, what would be the output?
60. Write a SQL query to display the employee details having more than 40 years of
experience in the emp table.
61. Write a SQL query to display the employee details of those who are getting salary
more than average salary.
62. Display the employee name, salary, commission and total salary in emp table.
75. If we don't mention the ‘else’ part in Decode, what would be the output?