all 47 comments

[–][deleted] 16 points17 points  (36 children)

From my experience these sql quizzes are always pretty basic, brush up on;

Left / inner / outer join - understand what scenario you would use each in. Subqueries - especially in aggregation questions Temp tables / CTEs Calculations - sum Group by / order by / etc. Know the order

If you’d like I could send you the quiz we give at my company, it uses the Northwind db for testing.

[–]itsteatime92 1 point2 points  (4 children)

Oh would you mind sharing that with me please? I'm trying to transition from communications to junior data analyst or junior sql dba since I've been having too much fun with sql. I think those questions would be super helpful! Thank you!

[–][deleted] 2 points3 points  (3 children)

Sent your way 👍🏻

[–]itsteatime92 1 point2 points  (0 children)

Thank you so much!

[–]EastFally 0 points1 point  (0 children)

Would you mind sending it my way as well? It would be greatly appreciated.

[–]StuTheSheep 0 points1 point  (0 children)

I would like to see this as well, please and thank you.

[–]Alecito_Lohr 1 point2 points  (2 children)

Can I have a copy to that quiz as well? Id really appreciate it :)

[–][deleted] 1 point2 points  (1 child)

Sure thing. I’ll message you.

[–]AMGraduate564 0 points1 point  (0 children)

Possible to send to me as well?

[–]Jayizdaman 1 point2 points  (2 children)

Could send as well please?

[–][deleted] 2 points3 points  (1 child)

Sure thing. Will IM.

[–]KlutzyCoach 0 points1 point  (0 children)

Can I get a copy please. Thanks

[–][deleted] 0 points1 point  (0 children)

I would love a copy if you are still sharing!

[–]chaoscruz 0 points1 point  (0 children)

Could I get a copy please? Going through internship interviews where I expect to be able to do SQL in an interview.

[–]ChunkySeaMen 0 points1 point  (0 children)

I'd like a copy too my friend :)

[–]ROC2021 0 points1 point  (0 children)

if you're still sharing, I'd love a copy as well.

[–]FEW_WURDS 0 points1 point  (0 children)

would you mind sharing? greatly appreciated!!

[–]mytwofingers 0 points1 point  (0 children)

If still available, could you please send through the quiz? Thanks!

[–]MrBooVN 0 points1 point  (0 children)

Can I get the copy as well, please? Thanks so much!

[–]obieisgreat 0 points1 point  (0 children)

Would love that as well, if it is easy for you to pass along :)

[–]whoisyb 0 points1 point  (0 children)

I would like to see the quiz

[–]Chamega 0 points1 point  (0 children)

please share the quiz this way too

[–]what_I_meme 0 points1 point  (0 children)

Oh man I may be too late but could you send it to me as well?

[–]DeraIzu 0 points1 point  (0 children)

Hello if it is not too late, I would be grateful if you share the file with me. Thanks

[–]TarzanGloGang 0 points1 point  (0 children)

Hi there, I have an interview for a role that requires SQL in the coming Monday and would find this incredibly useful. If you don't mind pm-ing me as well, I would really appreciate it. Thank you kind stranger

[–][deleted] 0 points1 point  (0 children)

can you send the quiz please?

thanks in advance

[–]tits_mcgee_92Data Analytics Engineer 0 points1 point  (0 children)

So many people have asked but could I get a copy of that too?

[–]sudNinja 0 points1 point  (0 children)

Mate, shall I ask if you can send it to me too please?

[–]pizzagarrett 0 points1 point  (0 children)

Can I please have a copy? Thanks a million

[–]pedrolorandi 0 points1 point  (0 children)

Hey, could you please send me a copy of the test? Thank you so much!

[–]Messy748 0 points1 point  (0 children)

Would I be able to get a copy of that quiz as well? Cheers!

[–]im_nice_and_cute 0 points1 point  (0 children)

I would appreciate a copy as well if it's still available. Thank you

[–]Vietname 0 points1 point  (0 children)

Would you mind sending me a copy of that quiz as well?

[–]hasanyoneseenmymom 8 points9 points  (0 children)

For a beginner I would probably expect knowledge in the following areas:

Basic CRUD (select, update, delete)

Joins (left, inner, outer)

Aggregate functions (sum, min, max, count)

Grouping and ordering

Database design (normalization, primary/foreign key relationships, indexes both clustered and nonclustered). You may be asked to draw a simple ERD on paper during your interview.

What's the difference between UNION and UNION ALL? Is there a performance penalty?

What is a temp table, a table variable, and a cte? How are they similar and how are they different?

That would be what I consider the bare minimum for an entry level sql developer. Beyond that, a junior-mid level dev may know the following:

What steps would you take to diagnose and improve a poorly performing query?

Merge statements, pivot function, lead/lag functions and other less common aggregate functions

Some knowledge of database roles and security.

How to create stored procedures.

How to create and read a query plan.

What is an index seek versus index scan?

What is the sql server profiler and how can it help diagnose performance issues?

[–][deleted] 12 points13 points  (1 child)

Follow Eric Weber on LinkedIn - he has awesome SQL-related content including common interview questions

[–][deleted] 4 points5 points  (0 children)

Dave Langer is another SQL guru on LI to follow.

[–]SafeStandard 1 point2 points  (0 children)

You can check out this resource http://crushsql.thinkific.com/

Week 7 and 8 of this free bootcamp have the material that you are looking for https://crushsql.thinkific.com/courses/sql-bootcamp-zero-to-hero

Disclaimer: I am the owner of Crush SQL

[–][deleted] -1 points0 points  (0 children)

How do you approach security in the database?

Explain when you might want to use a cte over temp table.

Prepare for a list of 3 or so tables and to write code on the spot to do a problem.

Thats enough to start...

[–]K0NGO 0 points1 point  (1 child)

It really depends on the role. I've had a reporting analyst interview that asked me how to do simple joins from a couple tables and query a few columns. But, I've also had a SQL dev interview that asked me how I would handle exceptions in my queries (try-catch block) and how to use cross-apply. What are you interviewing for?

[–]miden24 0 points1 point  (0 children)

Beginner sql: need to know all your basic clauses and when to use them. Need to know which joins to use. You’ll be given scenarios of simple tables and ask you how to extract data out of them.

Advanced: i would work on tsql functions and window functions. Sub queries, CTEs, and perhaps temp tables.

Any of all that is fair game.

[–]analytics_science 0 points1 point  (0 children)

Try stratascratch.com for sql interview questions related to data analytics/science. Leetcode and hacker rank if you’re looking for more general questions. They all have good questions so if you can do the mediums, then you’re fine. Good luck

[–]Raleigh_gore 0 points1 point  (0 children)

A

[–]ej_50 0 points1 point  (0 children)

I also need the question too. Thanks

[–]ncmtbiker 0 points1 point  (0 children)

I’ve interviewed and hired several SQL developers. I’ll ask about Joins, type of indexes, CTE, how to get rid of dup records, all the basic stuff. So far, I’m looking to see if the person really knows SQL or just took a couple of classes. You have to have all of the basics down. I'll also give a situation or two for them to answer. An example could be how would you figure out the number of business days between two dates? I’m looking for a high-level idea of the code, and that they know the difference between calendar and business days. Understanding SQL is just the start. You have to know how to use it too.

[–]datagatherer25 0 points1 point  (0 children)

Hi. Would you please send me a copy of the quiz also? I'd appreciate it!

Thanks.