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 |
how to load data with out header and footer records in a database using sql*loader? pls tell me the answer urgently
Can a table have no primary key?
How to sort the rows in sql.
What is sql data?
Is full outer join same as cross join?
Why are aggregate functions called so?
Why we use stored procedure instead of query?
Why we use join in sql?
hello..... i am an comp science engineering graduate planning to do ORACLE certification in PLSQL 9i. just wanted to know whats the possibility getting job is their openings???? is it worth doin that course n certification
What is partition by in sql?
What are different clauses used in sql?
What are few of the schema objects that are created using PL/SQL?