in table there r so many rows write a query which two rows r
updated last two day befor?

Answers were Sorted based on User's Feedback



in table there r so many rows write a query which two rows r updated last two day befor?..

Answer / srinivas

select * from <table name>
where rownum<=2
order by last_updated_date

Is This Answer Correct ?    29 Yes 6 No

in table there r so many rows write a query which two rows r updated last two day befor?..

Answer / ashok kumar lenka

We can solve this by the help of Trigger.
The trigger is for update.which store the update time of the
record of the table. So my query is like this
>select * from emp where to_char(update_column,'dd')=2;

Is This Answer Correct ?    10 Yes 5 No

in table there r so many rows write a query which two rows r updated last two day befor?..

Answer / narenkumar reddy

select column_name from table_name
where column_name=sysdate-2

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More SQL PLSQL Interview Questions

how many values can the set function of mysql take? : Sql dba

0 Answers  


What is the starting oracle error number? What is meant by forward declaration in functions?

0 Answers  


What are the usage of SAVEPOINTS?

5 Answers  


SELECT category, type, AVG(price) FROM products GROUP BY category, type ORDER BY 1, 2 If there are three distinct categories in the "products" table, and each one has five different types, how many rows are returned by the query above? 1. 1 row 2. 3 rows 3. 5 rows 4. 8 rows 5. 15 rows

3 Answers  


Can triggers stop a dml statement from executing on a table?

0 Answers  






What is an emotional trigger?

0 Answers  


What is sql used for?

0 Answers  


what is cursor procedure

1 Answers   iGate,


what is global variable in pl/sql

1 Answers  


What is the difference between the Primary and Foreign key?

7 Answers   Cap Gemini,


What are all the common sql functions?

0 Answers  


Does inner join remove duplicates?

0 Answers  


Categories