Refer Below Table and Answer The Question
Refer Below Table and Answer The Question
Table_name:Sales_detail
* List the sales person name those who have ordered the product ‘XXX’(using joins)
* List the sales person name those who have not ordered the product ‘XXX’(using joins)
* List the Sales Person Name those who have more then one order
* List the sales person name those who have not placed any order
5) Display half of the employee's name in uppercase and remaining in lowercase and follow the
format in alphabetic order using employees table.
6) find out top 5 salary without using rownum
7) Display employee name,salary and department no for each employee who earn a salary greater
then the average of theri deparment order by deptno
8) Identify number of e in below string
‘select’
9)What is different between truncate and delete and drop???
10) How to change datatype of column???
11) Find the output of below query
* select case when 1=1 then 2 else 3 end from dual;
* select decode(4,2,5,4,9,3) from dual;
* select round('12-nov-2001','yy') from dual;
12) How to fetch even record of the table??
13) What is the syntax for LISTAGG function??
14) Given following table t1
T1
======
2
-2
3
-3
4
-4
Write a single query to calculate the sum of all positive values and sum of all negative values
Weight
10.25
40.64
72.563
99
Write the query to produce below output
Weight kg grams
10.25 10 25
40.64 40 64
72.563 72 563
99 99 0
16) Find the error in below query
19) In a SELECT statement that includes a WHERE clause, where is the GROUP BY clause
placed in the SELECT statement?
20) Which two tasks can you perform using only the TO_CHAR function?
A. convert 10 to ‘TEN’
B. convert ’10’ to 10
C. convert ’10’ to ’10’
D. convert ‘TEN’ to 10
E. convert a date to a character expression
F. convert a character expression to a date