on 2024 May 02 2:43 PM
Hello experts,
I would like to make my extraction of the JCDS table a little smaller because I only use the numbers of the field OBJNR with the beginning OR* in the transformation. I would also like to use a filters in the extraction. But I have problems with the current filter, because no rows are returned.
my attempt was: OBJNR = 'OR*'
Does anyone have an idea how I can solve this?
Greetings Niels
Request clarification before answering.
Hi Neil,
Continuing our thread here. I am including screenshots of the suggested code snippet [SUBSTRING(OBJNR,1,2) = 'OR'] working in both extractions and transformations.
Please let me know if you have any questions.
Thanks,
Evan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Niels,
Please try: SUBSTRING(OBJNR,1,2) = 'OR'
Documentation on this function can be found here: String Functions and Operators — Presto 0.284 Documentation (prestodb.io)
Hope this helps,
Evan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @EvanR, I can confirm that there are values that start with OR (see screenshot). Here it is also clear again that the suggested code works, because I have just loaded the complete JCDS table.
Regards Niels
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @RobertT , I have just tried your suggested solution. Unfortunately, I still get an error message. See the attached screenshot.
Greetings Niels
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Niels
Your syntax of OBJNR = 'OR*' would be checking if there was an OBJNR literally equal to OR*. This is likely why 0 results are returned.
Instead, try looking to filter for OBJNR beginning with OR. The correct syntax would be OBJNR LIKE ‘OR%’.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 18 | |
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.