vegad Posted November 30, 2006 Share Posted November 30, 2006 HAVE TRY THIS CODE AFTER U GIVE ME SUGESTION....select OP_DATE,to_char(Op_date, 'DAY')OPER_ONfrom operationwhere op_date between '1-jan-2004' and '31-dec-2005'/AND I GOT THIS TYPE OF RESULT......SHOWN BELOWSQL> EDWrote file afiedt.buf1 select OP_DATE,to_char(Op_date, 'DAY')OPER_ON2 from operation3* where op_date between '1-jan-2004' and '31-dec-2005'SQL> /Hit <RETURN> to continue ...OP_DATE OPER_ON--------- ---------11-JAN-04 SUNDAY02-JUN-04 WEDNESDAY14-AUG-04 SATURDAY26-NOV-04 FRIDAY19-MAR-05 SATURDAY27-APR-05 WEDNESDAY31-JUL-05 SUNDAY7 rows selected.SQL> BUT I ONLY WANT SATURDAY AND SUBDAY FROM DATA,...CAN U GIVE ME ANY SUGESTION.....I WANT ONLY 4 ROWS....WITH SATURDAY AND SUNDAY.......I M WAITING FOR U RREPLY..THNKS FOR GIVE ME ANS..OF MY QUS.....WAITHING 4 UR REPLY...... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now