-
Find manager for employee
ID employee department manager----------------------------------------------1 Suresh c++ NULL 2 Suresh c++ NUll3 Suresh c++ 25 Sarathy testing 26 Rajaraman c# 17 joe Flash 1I have the employee detail table ,In that i want to find the manager for each employee .The employee...
-
Avoid Data Duplication
If in a table we dont use primary key or any other unique key then how to avoid duplication of data?
-
What is difference between a formal and an actual parameter?
The variables declared in the procedure and which are passed, as arguments are called actual, the parameters in the procedure declaration. Actual parameters contain the values that are passed to a procedure and receive results. Formal parameters are the placeholders for the values of actual parameters
-
View - Base Tables
Does View occupy memory? If we delete the base table of existing view, What happens?
-
-
-
How will you delete duplicating rows from a base table?
Delete from table_name where rowid not in (select max(rowid) from table group by duplicate_values_field_name); ordelete duplicate_values_field_name dv from table_name ta where rowid <(select min(rowid) from table_name tb where ta.dv=tb.dv);
-
Highest Average Salary
Construct a query which finds the job with the highest average salary
-
-
Difference between nested query,sub query and nested query?
What is difference between nested query,sub query and nested query? explain clearly with an example?
-
How to convert rows in column using SQL in Oracle
How to convert rows in column using SQL in Oracle;
for example
sl_no
1
2
3
4
output is 1234;
How to convert one column value into rows using SQL
for example
employee_name
Kumar
output
K
u
m
a
r -
Studetnt Result should get Pass (or) Fail
Hi guys try this query
If any student fails in one subject also his result should be Faile r else Pass
condtion is(marks>=40 "PASS" marks -
Is it possible to create Synonym for Triggers ?
If your answer is yes, explain the steps.
-
Pair Wise & Non-Pair Wise Columns
What are Pair Wise & Non-Pair Wise Columns?
Oracle SQL Interview Questions
Ans