Home / Interview questions / SQL developer

Interview questions

SQL developer interview questions: 72 to prepare for

Each question says why it is likely to come up, from what today’s 171 open SQL developer postings ask for, and what a good answer shows. Prepare a real example for each, then practise it with the interview answer builder.

questions to prepare
72
open SQL developer jobs today
171
postings read in full
46
median advertised pay
$135K

Checked Nov 25 against employer career pages

Practise out loudThe page reads each question aloud and checks your answer. This site keeps nothing.

Questions

Questions about the skills SQL developer postings name

  1. Walk me through a recent project where you used SQL. What did you do yourself?

    100% of today’s 171 open SQL developer postings name SQL.

    A good answer shows: Your own hands-on part, the choices you made and a number for the result.

    Sample answer: “On my last project I used SQL every day for about 3 months. My own part was one piece from start to finish: I planned it, did the work and checked the result against the old way of working. It saved the team about 4 hours a week.” Then say what you would do differently.

  2. What is a mistake people often make with SQL Server, and how do you avoid it?

    53% of today’s 171 open SQL developer postings name SQL Server.

    A good answer shows: That you have used it long enough to know where it goes wrong.

    Sample answer: “The mistake I see most with SQL Server is copying what worked somewhere else without checking that it fits the case in front of you. I try it on a small example first and write down what I expect before I look at the result. On my last team that habit cut the rework from about 10 cases a month to 2.” Name a mistake you have really seen.

  3. How would you explain Database administration to someone who has never used it?

    33% of today’s 171 open SQL developer postings name Database administration.

    A good answer shows: That you understand it well enough to make it simple.

    Sample answer: “I would leave the terms out and say in one sentence what Database administration is for. Then I would show one small example from my own work and let the person try it. I taught 3 new colleagues this way, and each did a first task alone within 2 weeks.” Use an example the listener already knows.

  4. Tell me about a problem with SQL queries that took you a long time to solve.

    31% of today’s 171 open SQL developer postings name SQL queries.

    A good answer shows: How you narrowed the problem down, and what you would do faster next time.

    Sample answer: “One problem with SQL queries kept coming back for about 3 weeks, because it showed up only now and then. I wrote down every case, changed one thing at a time and found the cause in the one step all the cases shared. Next time I would start that list on day one and ask a colleague after 2 days, not 2 weeks.” End with what you changed so that it does not come back.

Technical SQL developer interview questions and answers

  1. Which clause keeps only the rows that meet a condition before any grouping happens?

    An SQL question (100% of today’s postings name SQL). More in the SQL skill test.

    Answer: WHERE. WHERE filters rows first. HAVING filters groups after GROUP BY.

  2. You need the number of orders for each customer. Which query does it?

    An SQL question.

    Answer: SELECT customer_id, COUNT(*) FROM orders GROUP BY customer_id. GROUP BY makes one row per customer, and COUNT(*) counts the rows inside each group.

  3. Which keyword removes duplicate rows from the result?

    An SQL question.

    Answer: DISTINCT. SELECT DISTINCT returns each different row once.

  4. What is the difference between UNION and UNION ALL?

    An SQL question.

    Answer: UNION removes duplicate rows, UNION ALL keeps them. UNION has to compare rows to remove duplicates, so UNION ALL is faster when duplicates do not matter.

  5. What is an index for?

    An SQL question.

    Answer: It lets the database find rows without reading the whole table, at the cost of slower writes. An index is like the index of a book: lookups get faster, while every insert and update has more to maintain.

  6. A query uses customers LEFT JOIN orders. Which customers appear in the result?

    An SQL question.

    Answer: Every customer, with NULL order columns for those who have no orders. A LEFT JOIN keeps every row of the left table and fills the right side with NULL where nothing matches. RIGHT JOIN does the same for the right table, so most people write LEFT JOIN with the table they want to keep first.

  7. Which condition keeps prices from 10 to 20, including 10 and 20 themselves?

    An SQL question.

    Answer: price BETWEEN 10 AND 20. BETWEEN includes both ends, so it is the same as price >= 10 AND price <= 20. IN (10, 20) matches only those two exact values.

  8. Which query lists the customers who have never placed an order?

    An SQL question.

    Answer: SELECT c.id FROM customers c LEFT JOIN orders o ON o.customer_id = c.id WHERE o.id IS NULL. The LEFT JOIN keeps customers with no match and fills their order columns with NULL, and IS NULL then keeps only those. = NULL never matches; NOT EXISTS is another common way to write it.

  9. The employees table has a manager_id column that holds another employee’s id. How do you list each employee next to their manager’s name?

    An SQL question.

    Answer: Join the table to itself under two aliases: e.manager_id = m.id. This is a self-join: the same table appears twice under different short names, one for the employee and one for the manager. Use a LEFT JOIN to keep the people who have no manager.

  10. What does WITH do at the start of a query, as in WITH recent AS (SELECT ...) SELECT * FROM recent ?

    An SQL question.

    Answer: Names a temporary result (a CTE) that the main query can read like a table. A common table expression lasts only for that one query. It splits a long query into named steps that are easier to read than nested subqueries.

  11. Which query finds the products priced above the average of their own category?

    An SQL question.

    Answer: SELECT name FROM products p WHERE price > (SELECT AVG(price) FROM products WHERE category = p.category). The inner query uses p.category from the outer row, so each product is compared with the average of its own category. This is a correlated subquery; without that link every product would be compared with the average of all products.

  12. Which expression gives a running total of sales by date?

    An SQL question.

    Answer: SUM(amount) OVER (ORDER BY sale_date). A window function adds up rows without merging them into one, and ORDER BY inside OVER makes each row’s sum cover every row up to its date. An empty OVER () puts the grand total on every row.

  13. What does len([4, 8, 15]) return?

    A Python question (29% of today’s postings name Python). More in the Python skill test.

    Answer: 3. len counts the items in a list: there are three.

  14. What does this print? for i in range(3): print(i)

    A Python question.

    Answer: 0 1 2. range(3) counts from 0 up to, but not including, 3.

  15. What does the with keyword do in with open("data.txt") as f: ?

    A Python question.

    Answer: Opens the file and closes it by itself when the block ends. with takes care of cleaning up, even when an error happens inside the block.

  16. For word = "python", what does word[1:4] return?

    A Python question.

    Answer: "yth". A slice starts at the first index and stops just before the second, and counting starts at 0. word[-1] is the last letter and word[::-1] reverses the string.

  17. In a class, what is __init__ for?

    A Python question.

    Answer: It sets up each new object, such as its starting attributes. Car("red") calls __init__ with self set to the new car. self is the object itself, so self.color = color stores the color on that car.

  18. What is the difference between == and is?

    A Python question.

    Answer: == checks equal values; is checks for the very same object. Two separate lists can be equal (==) without being the same object (is). In everyday code, is is used mainly to check for None: if x is None.

  19. Why do developers create a virtual environment (python -m venv .venv) for each project?

    A Python question.

    Answer: To keep each project’s packages and versions apart from the others. Each environment has its own installed packages. Activate it before you pip install, and record the versions in requirements.txt so others can rebuild it.

  20. What does a decorator such as @functools.lru_cache, written above a function, do?

    A Python question.

    Answer: Wraps the function to add behavior; lru_cache remembers past results. A decorator is a function that takes a function and returns a new one. Common uses are caching, logging, timing and checking access.

SQL developer questions and answers

  1. A monthly sales report that ran in 4 seconds now takes 3 minutes after the orders table grew to 40 million rows. How do you find the cause?

    What it checks: your method for diagnosing a query that slowed down as data grew.

    A good answer shows: Measure first, read the actual execution plan, check indexes, statistics and predicates, and test one change at a time against realistic data.

    Sample answer: First I capture the actual execution plan and the reads, not just the time. In one case the plan showed a full scan of orders because the filter wrapped order_date in a function, so the index could not be used. I rewrote it as a plain date range, added an index on order_date that included the columns the report needed, and the report dropped to 6 seconds.

  2. In an execution plan, one operator shows 12 estimated rows and 2 million actual rows. What does that tell you and what do you check?

    What it checks: whether you can read a plan and spot a bad row estimate.

    A good answer shows: The optimizer planned for a tiny input. Likely causes are stale statistics, a hidden column in a function or conversion, or a table variable. Fix the estimate before reaching for hints.

    Sample answer: It means the optimizer planned for a tiny input, so it likely chose nested loops and a small memory grant. I check when statistics were last updated, whether the predicate hides the column in a function or implicit conversion, or uses a table variable, since older SQL Server versions guess one row for those. A full-scan statistics update once turned a nested loop over 2 million rows into a hash join.

  3. A stored procedure is fast for most customers but takes minutes for your largest one, and recompiling it helps for a while. What is going on?

    What it checks: whether you understand plan caching and parameter sensitivity.

    A good answer shows: A plan compiled for one parameter value is reused for very different data sizes. Names fixes like recompiling, optimizing for a value or splitting the procedure, with their costs.

    Sample answer: This is parameter sniffing. The plan is compiled for the first value passed, say a customer with 50 orders, and reused for a customer with 3 million. In SQL Server I confirm it by comparing the compiled parameter values in the cached plan with the slow call. The fix depends on call volume: OPTION (RECOMPILE) for a report run a few times a day, OPTIMIZE FOR, or a separate path for the largest customers.

  4. Two nightly jobs keep failing with deadlock errors on the same tables. How do you investigate and fix it?

    What it checks: how you diagnose deadlocks instead of only adding retries.

    A good answer shows: Captures the deadlock graph, finds the resources and lock order, then fixes access order, indexing or transaction length. Retries are a safety net, not the fix.

    Sample answer: In SQL Server I pull the deadlock graph from the system_health extended events session. In one case job A updated invoices then payments, while job B did payments then invoices. I changed B to touch the tables in the same order and added an index so its update stopped scanning and locking extra rows. Deadlocks went from about 3 a week to none, and I kept a retry for the rare one.

  5. A revenue report shows totals three times higher than finance expects after you joined orders to shipments. What happened and how do you fix it?

    What it checks: whether you catch row multiplication from one-to-many joins.

    A good answer shows: Recognizes that the join multiplies rows, checks the grain of each table, and aggregates before joining or uses EXISTS instead of summing duplicated rows.

    Sample answer: An order with three shipments appears three times after the join, so its amount is summed three times. I check the grain by counting rows per order_id on each side. The fix is to aggregate shipments per order in a CTE first, then join, or use EXISTS if I only need to know the order shipped. I also add a check that the report total matches the orders table alone.

  6. You need to add a NOT NULL column to a 200-million-row production table that is used around the clock. How do you do it safely?

    What it checks: whether you can change a large live table without long locks or downtime.

    A good answer shows: Knows the engine and version matter, adds the column nullable or with a fast default, backfills in batches, enforces NOT NULL last, and rehearses with a rollback plan.

    Sample answer: It depends on the engine. In PostgreSQL 11 and later, and SQL Server 2012 Enterprise and later, adding a column with a constant default is a quick metadata change. Otherwise I add it as nullable, backfill in batches of 10,000 rows with short pauses, then enforce NOT NULL. I rehearse on a restored copy of production, run it in a quiet hour and keep a rollback script ready.

  7. When do you reach for a window function instead of GROUP BY? Give a report where it made the query simpler.

    What it checks: whether you know how to keep detail rows while computing aggregates.

    A good answer shows: Window functions keep each row while adding running totals, ranks or comparisons, which removes self-joins. A strong answer mentions partitions and the default frame.

    Sample answer: When I need the detail rows and an aggregate side by side. For one sales report I needed each order plus the customer's running total and rank in the month. With GROUP BY that took a self-join; with SUM() OVER (PARTITION BY customer_id ORDER BY order_date) it was one pass. I set the frame to ROWS UNBOUNDED PRECEDING, because the default RANGE frame lumps orders with the same date together.

  8. How do you decide the key columns and included columns for a new index on a busy table?

    What it checks: whether you design indexes around real queries and their write cost.

    A good answer shows: Starts from the queries: equality columns first, then range columns, included columns to cover the output, and a check for overlapping indexes and write cost.

    Sample answer: I start from the queries, not the table. For WHERE status = 'open' AND created_at > a date, I put status first, then created_at, and include the few columns the query returns so it never goes back to the base table. Before adding it I look for an existing index with the same leading columns, because every index slows writes. On one table with 9 indexes I dropped 3 that had no reads in a month.

  9. Why can NOT IN with a subquery return no rows at all, and what do you use instead?

    What it checks: whether you understand how NULL behaves in filters.

    A good answer shows: Explains that one NULL in the subquery makes NOT IN unknown for every row, and uses NOT EXISTS or filters out NULLs.

    Sample answer: If the subquery returns even one NULL, x NOT IN (...) is unknown for every row, because comparing anything to NULL is unknown, so nothing comes back. I hit this when a list of excluded customers had one row with a NULL customer_id and the report went empty. I switched to NOT EXISTS with a correlated subquery, which handles NULLs the way people expect and usually gets an anti-join plan.

  10. A report reading live order data shows a summary and a detail section that do not add up. How can isolation levels cause that, and what would you change?

    What it checks: whether you know how isolation levels affect consistency in reports.

    A good answer shows: Separate statements under read committed can see different moments. Fixes include snapshot isolation, one statement, or a replica or snapshot copy. Warns against NOLOCK.

    Sample answer: Under read committed each statement sees data as of its own start, so the summary and the detail can run seconds apart and disagree. In SQL Server I would run the report under snapshot isolation so every statement sees one point in time; in PostgreSQL, repeatable read does the same. I would not add NOLOCK, because it can skip or double count rows while pages move.

  11. Tell me about a time a script you ran changed production data you did not mean to change. What do you do differently now?

    What it checks: your honesty about mistakes and the safeguards you built after one.

    A good answer shows: A real, owned mistake, fast communication and recovery, and lasting habits like transactions, row-count checks and a second reviewer for data fixes.

    Sample answer: Early on I ran an UPDATE on the customer table with a WHERE clause on the wrong column, and 4,200 rows got the wrong region. I told my lead within minutes, and we restored the old values from the previous night's backup into a side table and fixed them. Since then every data fix runs inside a transaction, I check the row count before committing, and a second person reads the script.

  12. How do you review another developer's stored procedure or report query before it goes to production?

    What it checks: what you look for in SQL code review beyond style.

    A good answer shows: Correctness on edge cases, the plan on realistic data volume, set-based logic, transaction and error handling, safe dynamic SQL, and a respectful tone.

    Sample answer: I read it for correctness first: NULL handling, join grain and date boundaries like the end of the month. Then I run it on a copy with production-sized data and look at the plan and reads. I flag cursors that could be set-based, dynamic SQL built by string concatenation, and transactions with no error handling. Where I am unsure, I write the comment as a question.

  13. How do you test SQL code like stored procedures and report queries?

    What it checks: whether you test database code with the same care as application code.

    A good answer shows: Repeatable tests on known data with tricky cases, a framework like tSQLt or pgTAP run in CI, and reconciliation of report totals against the source.

    Sample answer: I keep small fixture datasets with the tricky cases: NULLs, duplicates, month boundaries and a customer with zero orders. For SQL Server procedures I use tSQLt, and pgTAP on PostgreSQL, run in CI against a database in a container. For reports I also reconcile totals with the source system; one check caught a 0.4% gap from orders placed around midnight UTC.

  14. A junior developer on your team writes cursors for almost everything. How do you help them move to set-based SQL?

    What it checks: how you mentor someone toward set-based thinking.

    A good answer shows: Pairs on a real case, shows before and after numbers, explains the way of thinking, gives practice, and follows up in later reviews.

    Sample answer: I pick one of their real procedures and we rewrite it together. In one case a cursor that updated prices row by row took 25 minutes for 300,000 rows, and the set-based UPDATE with a join took 9 seconds. Seeing the numbers did more than any rule. Then I ask them to describe the result they want before writing a loop, and I review their next few procedures closely.

Charts and dashboards questions and answers

  1. When do you choose a bar chart and when a line chart?

    What it checks: the basics of showing data.

    A good answer shows: Bars for comparing categories, a line for change over time, and why.

    Sample answer: Bars compare separate things, such as sales by region; a line shows one thing moving through time, such as weekly sales. I put time on a line because the eye reads the slope.

  2. What makes a dashboard good?

    What it checks: whether you build for a reader or for yourself.

    A good answer shows: One question the dashboard answers, few numbers, the most important first, and proof that it is used.

    Sample answer: It answers one question for one audience. The three numbers they act on are at the top, each with its target and its change, and detail sits below. I check who opens it; a dashboard nobody opens is removed.

  3. What is wrong with pie charts?

    What it checks: a known weakness, and what to use instead.

    A good answer shows: Angles are hard to compare; a sorted bar chart does the job.

    Sample answer: People compare lengths far better than angles, so with more than three slices nobody can rank them. I use a sorted bar chart, and a pie only for two parts of a whole.

  4. How do you present findings to people who do not work with data?

    What it checks: communication, which most postings name.

    A good answer shows: The conclusion first, one chart per point, the method last.

    Sample answer: I start with the decision the finding supports, show one chart for each of at most three points, and keep the method for questions. Every chart has a title that states its message, not its variables.

  5. A manager says the number on your dashboard is wrong. What do you do?

    What it checks: how you handle a challenge to your work.

    A good answer shows: No defense first: find the definition each side uses, then the data.

    Sample answer: I ask which number they expected and where it comes from. Most often the two numbers are defined differently, such as orders placed against orders shipped. I trace mine to the source, fix it if it is wrong, and write the definition on the dashboard either way.

  6. How do you keep a dashboard fast and correct as the data grows?

    What it checks: whether you think about the pipeline behind the chart.

    A good answer shows: Tables prepared in advance, a refresh that is checked, a date of last update on the page.

    Sample answer: Heavy calculations go into a prepared table that is refreshed on a schedule, with checks on row counts and on empty values. The dashboard shows when it was last updated, so a stale number is never read as today’s.

SQL and database questions and answers

  1. What is the difference between an inner join and a left join?

    What it checks: the most common SQL question, and whether you know what happens to rows with no match.

    A good answer shows: Both defined with a small example, and what the left join puts where there is no match.

    Sample answer: An inner join keeps only the rows that have a match in both tables. A left join keeps every row of the first table and fills the columns of the second with empty values where nothing matches, so customers with no orders still appear.

  2. What is the difference between WHERE and HAVING?

    What it checks: whether you know the order in which a query is worked out.

    A good answer shows: WHERE filters rows before grouping, HAVING filters groups after it.

    Sample answer: WHERE removes rows before they are grouped, so it cannot use a total. HAVING runs after GROUP BY and can: for example, keep only the customers whose orders add up to more than 1,000.

  3. How do you find duplicate rows in a table?

    What it checks: a daily task, and how you think about what “the same” means.

    A good answer shows: Group by the columns that define a duplicate and keep the groups with more than one row.

    Sample answer: I group by the columns that should be unique, such as email, count the rows in each group and keep the groups where the count is above one. Then I look at a few of them before deleting anything, because two rows can differ in a field that matters.

  4. What does a window function do, and when would you use one?

    What it checks: whether you can go beyond GROUP BY.

    A good answer shows: A calculation across related rows that keeps every row, with an example such as a running total or a rank.

    Sample answer: It calculates across a set of rows related to the current one without collapsing them into one row, as GROUP BY does. I use it for a running total, the latest order of each customer or the rank of each salesperson inside a region.

  5. What is an index, and what does it cost?

    What it checks: whether you know why a query is slow and what you give up to speed it up.

    A good answer shows: Faster reads on the indexed columns, slower writes and more storage.

    Sample answer: An index is a sorted copy of one or more columns that lets the database find rows without reading the whole table. Reads on those columns get faster; every insert and update has to maintain the index as well, so I add one only for a query that is run often and is slow.

  6. A query that ran in seconds last month now takes ten minutes. What do you check?

    What it checks: a calm, ordered way of finding a cause.

    A good answer shows: The query plan first, then the data volume, missing indexes and what changed.

    Sample answer: I look at the query plan to see where the time goes, usually a full read of a table that grew. Then I check whether an index is missing or no longer used, whether the data volume jumped, and what was deployed since it last ran well.

  7. What is the difference between UNION and UNION ALL?

    What it checks: a small detail that changes results and speed.

    A good answer shows: UNION removes duplicate rows, UNION ALL keeps them and is faster.

    Sample answer: Both stack the results of two queries. UNION also removes duplicate rows, which costs time for the sorting it needs; UNION ALL keeps everything. I use UNION ALL when I know the sets do not overlap or when duplicates are wanted.

  8. How do you handle empty (NULL) values in SQL?

    What it checks: whether you have been caught by NULL, which everyone has once.

    A good answer shows: NULL is not equal to anything, including another NULL; use IS NULL and a default where it fits.

    Sample answer: NULL means unknown, so a comparison such as column = NULL is never true; I write IS NULL instead. Totals skip NULLs, so I decide whether an empty value should count as zero and say so in the query, for example with COALESCE.

Engineering practice questions and answers

  1. How do you debug a problem that happens only in production?

    What it checks: a method, not luck.

    A good answer shows: Narrow it down with logs and metrics, reproduce it, change one thing at a time.

    Sample answer: I start from what changed: the last deploy, a config, traffic. Logs and metrics narrow it to one service, then I try to reproduce it with the same input in staging. If users are affected I roll back first and look for the cause afterwards.

  2. What do you look for in a code review?

    What it checks: how you work with other people’s code.

    A good answer shows: Correctness and readability first, tests, then style; comments that teach.

    Sample answer: Does it do what the task asks, can the next person read it, and is the risky part tested? I ask questions before I state opinions and leave style to the formatter.

  3. How do you decide between fixing technical debt and building a feature?

    What it checks: trade-offs with the business.

    A good answer shows: The cost of the debt in time lost, compared with the value of the feature.

    Sample answer: I put a number on the debt: this module costs us about a day on every change. If the next three features touch it, fixing it first is cheaper; if nothing touches it, it waits.

  4. How do you make sure your code works?

    What it checks: your testing habits.

    A good answer shows: Tests at the level where the risk is, run automatically.

    Sample answer: Unit tests for the logic, a few integration tests for the paths users take most, all run on every change. For a bug I first write the test that fails, then the fix.

  5. Tell me about an outage you were part of. What happened afterwards?

    What it checks: calm under pressure and learning without blame.

    A good answer shows: The timeline, your part, and what was changed so it does not repeat.

    Sample answer: A config change took the API down for twenty minutes. We rolled back, wrote the timeline the same day, and added a check that stops a deploy when error rates rise. Nobody was blamed; the process had allowed it.

  6. How do you design a system that has to handle ten times more traffic?

    What it checks: thinking about scale in steps.

    A good answer shows: Measure first, find the bottleneck, then the simplest change that removes it.

    Sample answer: I measure where the time goes before changing anything. Usually the database is the limit: add an index or a cache, then read replicas, and only then split the service. Each step is tested under load.

Questions

Questions about the work itself

  1. How do you approach query tuning? Walk me through an example from your last job.

    One of the core duties of SQL developer work.

    A good answer shows: A real example: what you did yourself, the steps in order and the result with a number.

  2. What is the hardest part of stored procedures for you, and how do you handle it?

    Another core duty.

    A good answer shows: An honest difficulty and the habit or method that makes it work.

Questions

Questions about how you work

  1. Tell me about a time you had to win over people outside your team who disagreed with you.

    52% of today’s 46 open SQL developer postings with a full description mention stakeholders.

    A good answer shows: Who they were, what each side wanted, what you did to reach agreement and how it ended.

  2. Tell me about a time a rule or regulation slowed your work down. What did you do?

    37% of today’s 46 open SQL developer postings with a full description mention compliance or regulation.

    A good answer shows: That you followed it and still delivered, not that you went around it.

  3. Tell me about something you owned from the first idea to the result.

    33% of today’s 46 open SQL developer postings with a full description ask for ownership or end-to-end work.

    A good answer shows: That you saw it through when it got hard, with a number for the result.

  4. Have you helped someone else get better at their work? What did you do?

    24% of today’s 46 open SQL developer postings with a full description mention mentoring.

    A good answer shows: A specific person and skill, how you taught it and how they did afterwards.

  5. Tell me about a difficult conversation with a customer and how it ended.

    24% of today’s 46 open SQL developer postings with a full description ask for work with customers.

    A good answer shows: That you listened, kept your promise and what the customer did next.

  6. How do you keep people informed in writing?

    22% of today’s 46 open SQL developer postings with a full description ask for good writing.

    A good answer shows: An example: a status update, a document or a message that saved a meeting.

Questions

Questions almost every interview has

  1. Tell me about yourself.

    Almost every interview opens with it.

    A good answer shows: Under a minute: your current work as an SQL developer, one result with a number and why this job is the next step. Not your whole resume.

  2. Why do you want to work here?

    It tests whether you read about the company.

    A good answer shows: Something specific: a product, a goal from the posting or a problem you can help with.

  3. Why are you leaving your current job?

    It checks for problems you might bring along.

    A good answer shows: What you are moving towards, said briefly, with no criticism of your employer.

  4. What are your salary expectations?

    Only 23% of today’s SQL developer postings state pay, so be ready to name a figure.

    A good answer shows: A range you can defend. Today’s 36 SQL developer postings that state a yearly US-dollar range advertise a median of $135K; the middle half $100K to $174K. Ask for their range first if you can.

  5. What is one of your weaknesses?

    A classic, still asked.

    A good answer shows: A real weakness that does not block this job, and what you do about it.

  6. Do you have any questions for us?

    The last question of almost every interview.

    A good answer shows: Two or three questions you prepared; the list below has some.

Questions

Questions to ask them

What would make someone in this role successful in the first six months?
It shows you think about results, and the answer tells you what the job really is.
Why is this role open?
A new role, growth or someone leaving: each tells you something different.
What is the pay range for this role?
Only 23% of today’s SQL developer postings state one; asking is normal.
How will my work be measured, and how often will we review it?
You learn what matters to your manager before you start.
What are the next steps, and when will you decide?
You know when to follow up, and you can plan around other offers.

Questions

Questions about an SQL developer interview

What questions are asked in an SQL developer interview?
Questions about the skills the postings name (SQL, SQL Server, Database administration), about how you work (stakeholders, compliance and regulation, end-to-end ownership) and the questions almost every interview has, such as “Tell me about yourself” and your salary expectations.
How should I answer SQL developer interview questions?
With a real example: the situation, what you had to do, what you did yourself and the result, with a number. This is the STAR method; aim for 60 to 90 seconds an answer.
How do I prepare for an SQL developer interview?
Prepare three real stories with a number each (a result, a problem you solved, work with other people), practise them out loud for 60 to 90 seconds, and revise the skills the postings name most: SQL, SQL Server, Database administration. Read the posting again the day before: the duties it lists are what they will ask about.
Is an SQL developer interview hard?
It depends on the level: today’s SQL developer postings ask for 5 years of experience at the median. Most interviews mix questions about the skills in the posting with questions about how you work; the technical part is easier with a real example ready for each skill.
What salary should I ask for as an SQL developer?
Today’s 36 SQL developer postings that state a yearly US-dollar range advertise a median of $135K. Adjust for your experience and the country, and ask for their range first.

Career

Prepare with

Directory

Everything about SQL developer work

Counted from the open postings on Nov 25, 2026, read from employers’ own careers pages and recounted on every update. The questions are ours; no employer’s interview is copied here.