Interview Question for Data Engineers

Country: United States
Interview Type: In-Person

Comment hidden because of low score. Click to expand.
of 0 vote

with house as (
select 1100 as house_no, 'John, mary, kim, ash' as members from dual
union all
select 1101 as house_no, 'Dan, Roger, kee' as members from dual

select house_no,members,row_level,trim(regexp_substr(members,'[^,]+', 1,row_level)) from house,
(select level row_level from dual connect by level <= (select max(REGEXP_COUNT(members,'[^,]+',1,'i')) from house)) r
where row_level <= REGEXP_COUNT(members,'[^,]+',1,'i') order by 1,3

- presto October 31, 2020 | Flag Reply
Comment hidden because of low score. Click to expand.
of 0 votes

select 1100 as id, 'John, mary, kim, ash' as members into #temp1
insert into #temp1 (id, members) values (1101, 'Dan,Roger,Kee')
select * from #temp1

value members
cross apply string_split(members, ',')

- spg November 02, 2020 | Flag

Add a Comment

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.


is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More


CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More