South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
This is a common question:
Assume a table with salaries. Find the second highest salary in the table.
Also, know the difference between all JOINS. Everyone knows how to INNER JOIN but you'll be surprised how many know what a FULL OUTER JOIN will return.
They're more likely to test your overall logic and algorithmic thinking, problem solving approach, database knowledge and some SQL scripting skills as opposed to just pure SQL scripting skills.
At least that's how I would test my candidates. I want to see a number of things:
1) You can think for yourself.
2) How you think.
3) Domain knowledge.
4) Technical skills.
Technical skills can be taught, problem solving is acquired with experience and thought.
I would rather propose that that person write me functionality to return a combined result set. I mean anyone can learn to do a cursor loop without using cursors, but not that many can combine data logically and practically. Of course being able to tell the principles apart of joins is good, but still.
This.
True, I agree.
A question is normally a starting point for a discussion to understand the thought process of the interviewee. It's fine if the answer isn't a 100% correct but the logic is sound.
LOL ...Haha true. You need to warmup the person first![]()
Difference between a primary key and a foreign key, what's a clustered index and a non-clustered index; have been questions asked of me on assessments.
Usually these cover basics you should know, but if you're self-taught, might not. So cover the basics. I'm sure you can think for yourself, otherwise you won't be doing a SQL dev assessment...
Aaahhh, good one, thanks. Date formats and all that...Learn conversions/casts again, but other than that you either know it or you dont.
I'm going for a SQL dev assessment test next week. What questions should I expect and what areas should I focus on more and which less?
You really shouldn't need to cram for a test for a Job...
not cramming, just revising stuff that I haven't used in a while...
Write me a query that uses a ranking function, explain why you would use such a function.
That's only a little vague...
No its not. You can do whatever you want with the query, but show the use of the rank function. Interviews where I have asked this candidates answered it sufficiently.
The beginning part is exceptionally vague "Write me a query" - for what data?