Exam QSDA2024 Topic 1 Question 5 Discussion
Actual exam question for Qlik's QSDA2024 exam
Question #: 5
Topic #: 1
Question #: 5
Topic #: 1
Refer to the exhibit.

A company stores the employee data within a key composed of Country, UserlD, and Department. These fields are separated by a blank space. The UserlD field is composed of two characters that indicate the country followed by a unique code of two or three digits. A data architect wants to retrieve only that unique code.
Which function should the data architect use?

A company stores the employee data within a key composed of Country, UserlD, and Department. These fields are separated by a blank space. The UserlD field is composed of two characters that indicate the country followed by a unique code of two or three digits. A data architect wants to retrieve only that unique code.
Which function should the data architect use?
Suggested Answer: A Vote an answer
In this scenario, the key is composed of three components: Country, UserID, and Department, separated by spaces. The UserID itself consists of a two-character country code followed by a unique code of two or three digits. The objective is to extract only this unique numeric code from the UserID field.
Explanation of the Correct Function:
* Option A: RIGHT(SUBFIELD(Key, ' ', 2), 3)
* SUBFIELD(Key, ' ', 2):This function extracts the second part of the key (i.e., the UserID) by splitting the string using spaces as delimiters.
* RIGHT(..., 3):After extracting the UserID, the RIGHT() function takes the last three characters of the string. This works because the unique code is either two or three digits, and the RIGHT() function will retrieve these digits from the UserID.
This combination ensures that the data architect extracts the unique code from the UserID field correctly.
Explanation of the Correct Function:
* Option A: RIGHT(SUBFIELD(Key, ' ', 2), 3)
* SUBFIELD(Key, ' ', 2):This function extracts the second part of the key (i.e., the UserID) by splitting the string using spaces as delimiters.
* RIGHT(..., 3):After extracting the UserID, the RIGHT() function takes the last three characters of the string. This works because the unique code is either two or three digits, and the RIGHT() function will retrieve these digits from the UserID.
This combination ensures that the data architect extracts the unique code from the UserID field correctly.
by Gwendolyn at Jun 22, 2026, 05:39 AM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).