write a query find which rows of a table is updated on 2
days before?
Answers were Sorted based on User's Feedback
Answer / ajit nayak
SELECT * FROM USER_TAB_MODIFICATIONS
WHERE TO_DATE(TIMESTAMP,'DD-MON-YYYY') = TO_DATE(SYSDATE - 2,'DD-MON-YYYY');
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / bikash khuntia
We can check that whether the table updated on 2 days
before or not as below:-
SELECT * FROM USER_TAB_MODIFICATIONS TB
WHERE TB.table_name='TABLE_NAME'
AND TO_CHAR(TIMESTAMP,'DD')<=2
Is This Answer Correct ? | 2 Yes | 3 No |
Answer / os reddy
select * from <table name>
where rownum<=2
order by last_updated_date;
OR
select * from emp where to_char(update_column,'dd')=2;
Is This Answer Correct ? | 3 Yes | 10 No |
If the application is running very slow? At what points you need to go about the database in order to improve the performance?
Is it important to partition hard disk?
What is the difference between microsoft access and sql server?
how i do the database testing of online money transactions between two parties (client and organization). suppose our company makes a website for our client and give a extra feature of online money transaction with there clients then how i test this feature in database testing
How will you make performance better for application including front end and back
What are the three forms of normalization?
how many columns can be used for creating index? : Sql dba
What are Lexical Parameters.How They are used in Reports 6i
how can we know the count/number of elements of an array? : Sql dba
What are the packages in pl sql?
How do I trace sql profiler?
what is difference between delete and truncate commands? : Sql dba