INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Display only certain year data [SYSDATE]

Display only certain year data [SYSDATE]

(OP)
Hi

I need to create new statement report , which report criteria is this report don't want show Fees for 2014 cry

Here is the table called STATEMENT

NAME ---- ITEM_FEES -------- PAYMENT_DUE_DATE
John ---- E-Learning Fees ----- 14-02-2011
John ---- Course Fee 1 -------- 14-03-2011
John ---- Course Fee 2 -------- 14-09-2011
John ---- Course Fee 3 -------- 14-03-2012
John ---- Course Fee 4 -------- 14-09-2012
John ---- Course Fee 5 -------- 14-03-2013
John ---- Course Fee 6 -------- 14-09-2013
John ---- Course Fee 7 -------- 14-03-2014
John ---- Course Fee 8 -------- 14-09-2014
John ---- Course Fee 9 -------- 14-03-2015
John ---- Course Fee 10 ------- 14-09-2015


but I want display like this (Expected result)

NAME ---- ITEM_FEES -------- PAYMENT_DUE_DATE
John ---- E-Learning Fees ----- 14-02-2011
John ---- Course Fee 1 -------- 14-03-2011
John ---- Course Fee 2 -------- 14-09-2011
John ---- Course Fee 3 -------- 14-03-2012
John ---- Course Fee 4 -------- 14-09-2012
John ---- Course Fee 5 -------- 14-03-2013
John ---- Course Fee 6 -------- 14-09-2013

I can write like this but this is "hardcode" .... cry
SELECT *FROM STATEMENT WHERE TRUNC(PAYMENT_DUE_DATE,'YYYY') NOT in ('2014,2015')

I looking another solution but using function SYSDATE minus year but i hv not idea write it... hammer
Any ideas ?

thanks

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close