SQL Language (MOSC)

MOSC Banner

sql help please

edited Dec 26, 2013 8:25AM in SQL Language (MOSC) 6 commentsAnswered ✓
Hi,

I've to delete data from one table depending on date column of the table,

I'm not able to construct the sql for that, I need to delete data inserted before 1st july 2013 and keep rest data.

below sql showing data of same group, not data inserted data after  1st july 2013.

please  help me to construct the required sql.........

SQL>  select to_char(SESSION_END, 'dd-mm-yyyy hh24:mi:ss') from  session
             where to_char(SESSION_END, 'dd-mm-yyyy hh24:mi:ss')    >  '01-07-2013 00:30:30'
             and rownum <6 order by 1 desc;
  

TO_CHAR(SESSION_END
-------------------
22-09-2005 01:35:22
22-09-2005 01:29:56
21-09-2005 22:06:03

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center