Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to delete some records

Hi!

I have a question regarding delete records during the load, based on the type of some attributes.

Please find attached data and the precise question.

Thanks!

Elena

1 Solution

Accepted Solutions
maxgro
MVP
MVP

Directory;

source:

LOAD ID%,      BARCODE,      TYPE,      NUMBER

FROM

sampledata.xlsx

(ooxml, embedded labels, header is 1 lines, table is Foglio1)

where len(trim(ID%)) > 0;

final:

NoConcatenate load *

Resident source

where

TYPE <> 'DOM'

or ((TYPE = 'DOM') and (Peek(ID%) <> ID% or Peek(TYPE)<>TYPE))

order by ID%, TYPE, NUMBER desc;

DROP Table source;

View solution in original post

3 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Here is solution.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
maxgro
MVP
MVP

Directory;

source:

LOAD ID%,      BARCODE,      TYPE,      NUMBER

FROM

sampledata.xlsx

(ooxml, embedded labels, header is 1 lines, table is Foglio1)

where len(trim(ID%)) > 0;

final:

NoConcatenate load *

Resident source

where

TYPE <> 'DOM'

or ((TYPE = 'DOM') and (Peek(ID%) <> ID% or Peek(TYPE)<>TYPE))

order by ID%, TYPE, NUMBER desc;

DROP Table source;

Anonymous
Not applicable
Author

Thank you very much, it's very good, but Massimo's solution it's simpler for my purpose.

Thank you to both!

Elena