Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Question about writing code

Former Member
0 Likes
432

Hi Everyone,

I need some help in writing some code.

delete DATA_PACKAGE where version ne '010' and

( version LT '040' or version GT '050' ).

delete DATA_PACKAGE where fiscyear < '2007'.

Is there a way where I can restrcit version 040-050 to only 2008 and get version 010 from 2007.

Thanks

3 REPLIES 3
Read only

Former Member
0 Likes
415

Something like this should work


delete DATA_PACKAGE 
  where ( fiscyear = 2007 AND version ne '010' )
     or ( fiscyear = 2008 and ( version LT '040' 
                            and version GT '050' ).

whoops.. corrected

Edited by: Paul Chapman on Jun 9, 2008 1:23 PM

Read only

Former Member
0 Likes
415

Hello,


  DELETE data_package WHERE ( version = '010' AND fiscyear = '2007' ) OR
    ( version BETWEEN '040' AND '050' AND fiscyear = '2008' ).

Regards.

Read only

Former Member
0 Likes
415

answered