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 |
wirte a query to filter improper date format follwing table? date 20-apr 22-may-2010 26-jun-2010 feb-2009 i want the output date 22-may-2010 26-jun-2010
Give an example of Full Outer Join?
write a query that returns first characters of each word in Oracel/Sql pl sql
What is an exception in pl/sql?
What is a pragma statement?
What are transaction and its controls?
What is the use of function "module procedure" in pl/sql?
What are stored procedures used for?
What has stored procedures in sql and how we can use it?
What is pl/sql language case sensitive?
What does (+) mean in sql joins?
Is postgresql a server?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)