Extract Part Numbers with Special Characters

How can we get an extract of Part Numbers with any special characters in them? Can someone please help us out.

Thanks,
MG

Agile User Asked on April 4, 2018 in Agile PLM (v9),   Product Collaboration.
Add Comment
1 Answer(s)
Best answer

Hi MG,

You can query Item table and check if your item_number column contains any non-alpha numeric character or not. So this should give you any part with special character. However most of the organizations have “-” (Hyphen) in their item number so you can filter out that based on your need.

//Query-1 – It gives all part number containing non-alpha-numeric characters. 
//————
SELECT * FROM item i  where REGEXP_INSTR(item_number,'[^[:alnum:]]’)>0 

//Query-2 – It gives the part number that contains any non-alphanumeric character apart from hyphen.
//————
SELECT * FROM item i where REGEXP_INSTR(item_number,'[^[:alnum:]]’)>0  and not regexp_like(item_number, ‘[-]’)

Regards,
Arif

Agile Angel Answered on April 4, 2018.

Thanks a ton Arif!!

on April 4, 2018.

Glad it was helpful. Welcome.

on April 4, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.