Table 1: col1 Timestamp
----------------
01-mar-2012 11:12:46

Table 2: col2 Timestamp
--------------------
01-mar-2012 11:12:10
01-mar-2012 11:11:23

Write a query to display a row with table2 col2 value less
than tabl1 col1 value. Maximum timestamp value previous to
table1 col1 value.

Display a result as:

Col1 col2
----- -----
01-mar-2012 11:12:46 01-mar-2012 11:12:10


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More SQL PLSQL Interview Questions

Is sql injection illegal?

0 Answers  


what's the difference between a primary key and a unique key? : Sql dba

0 Answers  


What is sp_helptext?

0 Answers  


explain advantages of myisam over innodb? : Sql dba

0 Answers  


What is difference between pl and sql?

0 Answers  






what is the difference between cursor FETCH and FOR LOOP ?

3 Answers   CG-VAK, Tech Mahindra,


How to display the records between two range in Oracle SQL Plus?

0 Answers   MCN Solutions,


What is pl sql and why it is used for?

0 Answers  


What normalization means?

0 Answers  


What is a dynamic query?

0 Answers  


how to create a database in oracle?please gve anser with example

1 Answers  


How to write a procedure for displying the data in a TREE or (PARENT and CHILD ) relationship , for ex: A is the main project id, for this project B,C,D are sub tasks(sub project id's) for B the sub tasks are e,f,g and for c is h ,i ,j and for d is k,l,m now i need to display the o/p in a TREE fashion pls help me , thanks in advance surendra

2 Answers   Zensar,


Categories