Join waitlist
Interview PrepCommunity question

Wipro Elite NTH - selected (full process)

Asked by Nandini Rathore 1 month ago 4 answers 16 votes

Process took around 3 weeks.

Online test: aptitude, verbal, logical + 2 coding questions. Mine were pattern printing and reverse a string without using inbuilt functions. Easy if you practise with time limit.

Technical: started with my project (about 15 min), then OOP with examples, difference between C and C++, and a SQL query on paper - second highest salary. He asked "any other way?" two times so know at least 2-3 ways.

HR: relocation, why Wipro, ok with bond or not.

Got selected mail last week 🎉

4 answers

Nikhil Choudhary1 month agoMost voted5

for people reading, 3 ways for 2nd highest:
1. ORDER BY salary DESC LIMIT 1 OFFSET 1
2. SELECT MAX(salary) FROM emp WHERE salary < (SELECT MAX(salary) FROM emp)
3. DENSE_RANK() and filter rank 2

1 breaks when top 2 salaries are same, 2 and 3 handle that

Deepak Nair1 month ago4

Congrats Nandini! They did the "any other way" thing to me also

Nandini Rathore1 month ago1

@Nikhil yes he asked exactly about duplicates for the LIMIT one

Divya Krishnan1 month ago1

congrats didi 🙌

Related questions

Go deeper

Want the full explanation, not just an answer?

Structured lessons on DSA, core CS, Java and interview skills, each ending in a quiz so you know it stuck.