Welcome,  Guest  |  Sign In |  New User? 

List of ORACLE Interview Questions & Answers

Page 1 of 15: 1 2 3 4 5 6 7 8 9 10 Next>>

How to copy the data from one table to another table in oracle         [ 55 ]



Choose your rating:    Post Ans.    View More Ans.

Describe TO_DATE function         [ 66 ]

The TO_DATE function returns a timestamp from a character string 
that has been interpreted using a character template.
TO_DATE is a synonym for TIMESTAMP_FORMAT.


Choose your rating:    Post Ans.    View More Ans.

In what sequence SQL statement are processed?         [ 34 ]

The clauses of the subselect are processed in the following sequence (DB2):
1. FROM clause
2. WHERE clause
3. GROUP BY clause
4. HAVING clause
5. SELECT clause
6. ORDER BY clause
7. FETCH FIRST clause 


Choose your rating:    Post Ans.    View More Ans.

Describe SQL comments.         [ 31 ]

SQL comments are introduced by two consecutive hyphens
     (--) and ended by the end of the line.


Choose your rating:    Post Ans.    View More Ans.

. What does DCL stand for?         [ 37 ]

DCL is Data Control Language statements. (COMMIT)

Choose your rating:    Post Ans.    View More Ans.

What does DDL stand for?         [ 37 ]

DDL is Data Definition Language statements. (CREATE)

Choose your rating:    Post Ans.    View More Ans.

What does DML stand for?         [ 35 ]

DML is Data Manipulation Language statements. (SELECT)


Choose your rating:    Post Ans.    View More Ans.

Describe some Group Functions that you know         [ 28 ]

 
A. 1) The COUNT function tells you how many rows were in the result set.
      SELECT COUNT(*) FROM TESTING.QA 
 
 
    2) The AVG function tells you the average value of a numeric column.
       SELECT MAX(SALARY) FROM TESTING.QA
 
 
    3) The MAX and MIN functions tell you the maximum and minimum value of a numeric column.
       SELECT MIN(SALARY) FROM TESTING.QA  
 
 
     4) The SUM function tells you the sum value of a numeric column.
        SELECT SUM(SALARY) FROM TESTING.QA
 


Choose your rating:    Post Ans.    View More Ans.

Describe some Conversion Functions that you know         [ 28 ]

TO_CHAR converts a number / date to a string.
         TO_DATE converts a string (representing a date) to a date.
 
         TO_NUMBER converts a character string containing digits to a numeric data type, it accepts one parameter which is a column value or a string literal
 


Choose your rating:    Post Ans.    View More Ans.

Explain SQL SELECT example:         [ 31 ]

select j.FILE_NUM 
  from DB_name.job j, DB_name.address a
where j.JOB_TYPE ='C' 
  AND j.COMPANY_NAME = 'TEST6' 
  AND j.OFFICE_ID = '101'
  AND j.ACTIVE_IND = 'Y' 
  AND a.ADDRESS_STATUS_ID = 'H'
  AND a.OFFICE_ID = '101'
  AND a.FILE_NUM = j.FILE_NUM order by j.FILE_NUM;
 
    Answer: j and a aliases for table names. this is outer joint select statament from two tables.
 


Choose your rating:    Post Ans.    View More Ans.

Page 1 of 15: 1 2 3 4 5 6 7 8 9 10 Next>>