Updated 19 November 2026 · By TaskVeda Editorial Team · 12 min read
Quick answer
Yes — you can learn SQL for data analysis for free in 2026. Start with a structured free course (NPTEL/SWAYAM or Analytics Vidhya), add hands-on practice on a platform with a real SQL engine (HackerRank, SQLZoo or a free SQLite setup), then build two small projects on Indian datasets. A free certificate is a decent discipline signal on your resume, but recruiters care far more about whether you can write a join, a window function and an aggregation without looking them up. Budget 30–45 days at 1–2 hours a day. Expect fresher data analyst offers around ₹3.5–6 LPA in Bengaluru, Hyderabad and Pune. The full course table, the 30-day roadmap and 12 solved interview questions are below.
Why SQL is the first skill every data analyst needs — and why free is enough
Let me start with a truth I have repeated to every student who has sat across my desk: if you want a data analyst role in India, SQL is the first door you must open. Excel gets you noticed; SQL gets you shortlisted. Almost every analyst interview I have seen — from a ₹4 LPA services job to a ₹12 LPA product role — starts with a screen-share and a query. If you freeze on a JOIN, the conversation is usually over.
The good news is that SQL is a small, closed language. There are perhaps twenty concepts that cover 95% of analyst work: SELECT, WHERE, GROUP BY, the four joins, CASE, a handful of aggregate functions, subqueries, CTEs and window functions. You can learn all of that for free. I have never met a recruiter who asked where you learned SQL. They ask what you can do with it.
So why do so many students waste money? Because they confuse structure with access. A paid course gives you a schedule and a certificate. A free course gives you the same knowledge, and the schedule is something you can write on a calendar yourself. What you cannot fake is practice. My advice for a sql for data analysis free course is simple: pick one structured free course, commit to it, and spend more hours writing queries than watching videos.
One more thing before we get into the table. "Free" in this guide means the core teaching content and practice are accessible without payment. Some platforms sell an exam or a verified certificate separately — I will say so plainly in the table, because nothing damages trust faster than a "free course" that surprises you with a paywall at the final quiz. Read the notes, not just the tick marks.
8 free SQL for data analysis courses, honestly compared
Here is the comparison I wish someone had handed me when I started. I have judged each course on what actually matters to an Indian fresher: how long it takes, whether the certificate is free, whether there is a real SQL engine to practise on, whether you build anything you can show, and whether the examples make sense in an Indian job market.
| Course | Hours | Free certificate? | Practice env | Projects | India relevance |
|---|---|---|---|---|---|
| NPTEL / SWAYAM — Database Management Systems (IIT faculty) | ~30–40 | Free study material; proctored exam/certificate is paid (₹1,000–₹2,000 roughly) | Assignments + SQL practice sets | Weekly assignments | Very high — IIT-branded, recognised by Indian universities and recruiters |
| Analytics Vidhya — Free SQL course / learning paths | ~15–25 | Yes, course completion certificate generally free | Browser-based practice + datasets | Practice problems, mini case studies | High — Indian platform, Indian examples, strong community |
| Simplilearn — SQL for Data Science (free preview / audit) | ~20–30 (full ~40h paid) | Free preview content; verified certificate is paid | Limited in free tier | Few in free tier | High — excellent FAQ and India salary data, good brand recall |
| KnowledgeHut — SQL for Data Analytics (free intro) | ~18–25 (full program paid) | Intro certificate free; full program certificate paid | Classroom/labs in full program | Sample exercises free | Medium-high — clean 5-module curriculum worth copying even from the free intro |
| Scaler — SQL basics / free workshops | ~6–10 | Participation certificate on some workshops | Live workshop + exercises | Light | Medium — good urgency, but thin on its own; treat as a warm-up |
| Luke Barousse — SQL for Data Analysis (YouTube + free materials) | ~12–20 | No formal certificate; portfolio project instead | Real SQL (laptop-based, PostgreSQL/DBeaver) | Strong guided portfolio project | Medium — US examples, but the best free practice experience on this list |
| Topfolio — SQL for Data Analytics (free / trial tiers) | ~8–15 | Certificate on select free tracks — check current terms | Project-based, browser + local | Mini live projects | Medium — decent for project-led learners, verify free terms before enrolling |
| IndiaDigital — SQL / data skills free course | ~10–18 | Often free completion certificate — confirm on the page | Video + quizzes | Basic exercises | High — India-focused, simple language, good for absolute beginners |
How to read this table. If you want the strongest signal on a resume, use NPTEL/SWAYAM and pay only for the exam if you can afford it — an IIT-branded certificate carries real weight in India. If you want to actually learn and have something to show, pair Analytics Vidhya (structure + certificate) with Luke Barousse (deep practice + portfolio project). That combination is free end to end and, in my experience, beats any single paid course.
A note on the big names: Simplilearn and KnowledgeHut both publish genuinely useful free material and excellent FAQs — including the India salary numbers I cite later — but their full curricula and verified certificates sit behind a paywall. Scaler's free content is a good 60-minute warm-up, not a complete course. None of that makes them bad; it just means you should know what you are signing up for.
How to judge a free SQL course before you waste a month
I have seen students abandon four courses in six weeks, each time blaming themselves. The problem was not discipline; it was choosing a course that could not take them from zero to job-ready. Before you enrol anywhere, ask these five questions.
- Is there a real SQL engine, not just videos? You need to type queries and see errors. Browser consoles, SQLite, PostgreSQL or MySQL all count. Watching a tutor type is not practice.
- Does it cover window functions?
ROW_NUMBER,RANK,DENSE_RANK,LAGand running totals separate freshers who get interviews from those who do not. If a course stops atGROUP BY, skip it. - Are there Indian examples or datasets? You will be asked about sales, payments, orders and students — contexts you can explain in an interview. Practising only on American movie databases is fine for syntax, weak for storytelling.
- Does it leave you with an artefact? A certificate is nice; a GitHub repo with two queries and a README is better. Choose a course that ends with something you can link.
- Is the "free" clearly defined? If the certificate, the final project or the practice environment is paywalled, the guide should say so up front. If it does not, be cautious.
SELECT * FROM table, close the tab.And a gentle warning from experience: do not collect courses like badges. One course finished beats five courses bookmarked. Pick from the table above, put the end date on a calendar, and move to the roadmap below.
Your 30-day India fresher roadmap (1–1.5 hours a day)
This is the plan I give students who come to me in their final year with zero SQL and a placement season six weeks away. It is deliberately boring. Boring plans are the ones people finish.
Week 1 — The foundations (Days 1–7)
Pick one course from the table and do nothing else. Learn SELECT, WHERE, ORDER BY, LIMIT, the four joins (INNER, LEFT, RIGHT, FULL), GROUP BY and the five aggregates (COUNT, SUM, AVG, MIN, MAX). By Day 7 you should be able to answer: "total sales by state", "customers who never ordered", and "top 3 products by revenue" without opening notes. Spend the last 20 minutes of each day typing the query from memory.
Week 2 — Intermediate (Days 8–14)
Add CASE WHEN, subqueries, CTEs (WITH), DISTINCT, and the difference between WHERE and HAVING. This is the week most students quietly skip — do not be one of them. Finish the week by solving the first six questions in the interview section below, slowly, and writing a one-line explanation for each in a notebook.
Week 3 — Window functions + Indian data (Days 15–21)
Learn ROW_NUMBER, RANK, DENSE_RANK, LAG and running totals with SUM() OVER (ORDER BY ...). Then download one Indian dataset (next section) and write ten business questions about it before you write a single query. Asking the right question is half the job. Example: "Which state had the highest month-over-month growth in UPI value in 2025?"
Week 4 — Projects + interview drill (Days 22–30)
Build two small projects, push them to GitHub, and write a plain-English README for each. Then do a daily drill: pick two questions from the interview list, set a 12-minute timer, and say your reasoning out loud as you type. Interviews are a spoken exam, not a written one. On Day 30, apply to ten roles with your GitHub link on the first page of the resume.
If you only have three weeks, compress Week 1 into four days and drop Project 2. If you have eight weeks, add a third project and learn a visual layer such as Power BI or Looker Studio. The plan bends; it does not break.
Indian datasets to practise on + a GitHub starter repo
Generic datasets teach syntax. Indian datasets teach you how to talk about data in an Indian interview — and that is what gets you hired. Here are three that never fail to impress, and all are free.
1. Retail sales (data.gov.in / state government portals)
India's Open Government Data platform hosts district-wise and commodity-wise retail and wholesale price and sales data. It is messy — exactly like real work. Great questions: monthly revenue by state, top commodity by district, year-over-year change. Practise cleaning columns, handling blank values and casting dates. That is 60% of an analyst's actual job.
2. UPI and digital payments (RBI / NPCI bulletins)
The Reserve Bank of India publishes monthly UPI transaction volume and value. Smaller monthly tables are perfect for time-series drills: running totals, month-over-month growth with LAG, and year-to-date comparisons. When you can say "UPI value grew X% month-over-month and here is the query", you sound like an analyst, not a student.
3. Indian Railways timetables / delay data (NTES / open datasets)
Train running data and schedule datasets are excellent for date arithmetic, delay bucketing with CASE WHEN, and ranking routes by average delay. They also give you a natural DATEDIFF exercise — scheduled arrival versus actual arrival.
Your GitHub starter repo (structure to copy)
Create one public repo named something like sql-data-analysis-india. Keep it tidy; recruiters spend about 40 seconds on it. Here is the structure I recommend, followed by a README skeleton you can copy.
That repo becomes your answer to "tell me about a project". Pair it with the related guides on SQL for data analysis and AI portfolio projects for students, and you have a story with proof behind it.
12 solved SQL interview questions (with runnable queries)
These are the questions I see again and again in Indian fresher interviews. All twelve use one consistent, tiny schema, so you can create the tables once and practise every answer. I have written the queries in widely compatible SQL; where a dialect differs, I have marked it.
Q1. Find the second-highest salary
SELECT MAX(salary) AS second_highest
FROM employees
WHERE salary < (SELECT MAX(salary) FROM employees);
Why it works: the subquery removes the top earner, then MAX picks the next one. Interviewers often ask for the Nth highest — see Q2.
Q2. Find the Nth highest salary (say 3rd)
SELECT DISTINCT salary
FROM employees
ORDER BY salary DESC
LIMIT 1 OFFSET 2;
Why it works: DISTINCT removes ties so two people on the same pay do not eat two ranks. In SQL Server use OFFSET 2 ROWS FETCH NEXT 1 ROW ONLY.
Q3. Top 2 highest salaries in each department
SELECT name, department, salary
FROM (
SELECT name, department, salary,
DENSE_RANK() OVER (PARTITION BY department ORDER BY salary DESC) AS rnk
FROM employees
) t
WHERE rnk <= 2;
Why it works: PARTITION BY department restarts the ranking for each department. DENSE_RANK keeps ties together without gaps — a favourite follow-up question.
Q4. Find duplicate employees (same name and department)
SELECT name, department, COUNT(*) AS duplicates
FROM employees
GROUP BY name, department
HAVING COUNT(*) > 1;
Why it works: group by the columns that define a duplicate, then filter groups with HAVING. Never use WHERE on an aggregate.
Q5. Employees who have never placed an order (anti-join)
SELECT e.id, e.name
FROM employees e
LEFT JOIN orders o ON e.id = o.customer_id
WHERE o.order_id IS NULL;
Why it works: a left join keeps every employee; rows with no matching order have NULL on the right side. This is the "find records in A but not B" pattern — also doable with NOT EXISTS.
Q6. Departments whose average salary exceeds ₹50,000 (WHERE vs HAVING)
SELECT department, AVG(salary) AS avg_salary
FROM employees
WHERE salary > 0
GROUP BY department
HAVING AVG(salary) > 50000;
Why it works: WHERE filters rows before grouping; HAVING filters groups after grouping. Say that sentence out loud in the interview — it is half the marks.
Q7. Rank all employees by salary and explain RANK vs DENSE_RANK vs ROW_NUMBER
SELECT name, salary,
ROW_NUMBER() OVER (ORDER BY salary DESC) AS rn,
RANK() OVER (ORDER BY salary DESC) AS rnk,
DENSE_RANK() OVER (ORDER BY salary DESC) AS drnk
FROM employees;
Why it works: with salaries 100, 90, 90, 80 — ROW_NUMBER gives 1,2,3,4; RANK gives 1,2,2,4; DENSE_RANK gives 1,2,2,3. Memorise that one line.
Q8. Running total of revenue by order date
SELECT order_date, amount,
SUM(amount) OVER (ORDER BY order_date
ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS running_total
FROM orders;
Why it works: the window frame sums everything from the first row up to the current one. Add PARTITION BY customer_id for a per-customer running total.
Q9. Days between order date and today
-- MySQL
SELECT order_id, DATEDIFF(CURDATE(), order_date) AS days_old FROM orders;
-- PostgreSQL
-- SELECT order_id, (CURRENT_DATE - order_date) AS days_old FROM orders;
Why it works: date functions vary by engine, so name the engine you are using before you write the query in an interview.
Q10. Order count and percentage by status
SELECT status,
COUNT(*) AS orders,
ROUND(100.0 * COUNT(*) / (SELECT COUNT(*) FROM orders), 1) AS pct
FROM orders
GROUP BY status;
Why it works: the scalar subquery gives the grand total so each group can compute its share — a very common business question.
Q11. Each employee with their manager's name (self-join)
SELECT e.name AS employee, m.name AS manager
FROM employees e
LEFT JOIN employees m ON e.manager_id = m.id;
Why it works: the same table appears twice with different aliases. LEFT keeps the top boss, whose manager_id is NULL.
Q12. Month-over-month revenue growth with LAG
-- MySQL
SELECT DATE_FORMAT(order_date, '%Y-%m') AS month,
SUM(amount) AS revenue,
LAG(SUM(amount)) OVER (ORDER BY DATE_FORMAT(order_date, '%Y-%m')) AS prev_month,
ROUND(100.0 * (SUM(amount) - LAG(SUM(amount)) OVER
(ORDER BY DATE_FORMAT(order_date, '%Y-%m')))
/ NULLIF(LAG(SUM(amount)) OVER
(ORDER BY DATE_FORMAT(order_date, '%Y-%m')), 0), 1) AS growth_pct
FROM orders
GROUP BY DATE_FORMAT(order_date, '%Y-%m');
Why it works: LAG reaches back one row to the previous month; NULLIF prevents division by zero. In PostgreSQL use TO_CHAR(order_date, 'YYYY-MM') instead of DATE_FORMAT.
Want more guided practice? See our guide to machine learning project ideas for students once SQL feels comfortable — many of those projects start with exactly these queries.
Fresher salaries and companies hiring data analysts in India
Money matters, and vague "competitive salary" lines help nobody. These are realistic 2026 ranges for a fresher or candidate with under a year of experience and one or two projects. They are averages from Indian job portals and the salary sections published by training platforms — treat them as a band, not a promise.
| City | Fresher data analyst pay (approx.) | Typical first role | Notes |
|---|---|---|---|
| Bengaluru | ₹4–7 LPA | Data Analyst / BI Analyst | Most openings, highest competition, product + startup roles |
| Hyderabad | ₹3.5–6 LPA | Data Analyst / MIS Executive | Strong services and GCC presence; great value for cost of living |
| Pune | ₹3.5–6 LPA | Data Analyst / reporting roles | Steady IT + manufacturing demand, calmer pace |
| Remote / other cities | ₹3–5 LPA | Junior analyst / operations analytics | Growing, but fewer fresher-friendly remote roles |
Who is hiring? The fresher gate is widest at large services firms: TCS, Infosys, Wipro, HCLTech, Cognizant, Accenture, Tech Mahindra and Coforge all run analyst/MIS tracks that hire campus and off-campus candidates. Consulting and analytics firms such as MuSigma and LatentView interview heavily on SQL. Product and fintech companies — Razorpay, PhonePe, Swiggy, Zomato, Flipkart, Zoho — pay better but expect a stronger portfolio and sharper queries. My suggestion: apply to ten services roles and five product roles in the same week; the services interviews are excellent practice for the product ones.
One honest caveat. A certificate alone will not move these numbers. The students who landed at the top of the band had three things: a clean GitHub repo, the ability to explain a query in plain English, and a resume that led with skills instead of "hard-working team player". We cover that wording next.
Is the free SQL certificate worth it? (and how to write it on LinkedIn and your resume)
Here is my unvarnished answer: a free certificate is worth one line on your resume, not a whole section. It tells a recruiter you finished something and cared enough to document it. It does not prove you can do the job. The proof is your project and your interview performance. So take the free certificate — it costs nothing — but never let it become the headline.
When it does help
- Your degree branch is not computer science and you need a signal that you learnt SQL deliberately.
- You are applying through campus portals that literally ask for "certifications" as a field.
- The issuer is recognisable in India — NPTEL/SWAYAM, a reputed university, or a well-known platform.
When it does not help
- You list five free certificates and no project. That reads as "collector", not "builder".
- The certificate has no verification ID, issuer name or date — recruiters quietly ignore those.
- You claim proficiency you cannot demonstrate in a 10-minute screen share.
Exact wording to copy
Notice the pattern: never write "certified SQL expert". Write the course, the issuer, the date and the skills, then let a project link do the persuading. If the certificate is from a platform with a verification link, include it — one clickable line beats a paragraph of adjectives.
For a deeper portfolio structure, read how students build AI and data portfolios that get shortlisted. And if you want guided, project-led learning with a verified credential, the free 11-Day AI Tools Bootcamp is a good next step after SQL basics.
A mentor's final word
After three decades around students and hiring managers, I can tell you the gap is rarely ability. It is the belief that they need to pay for permission to start. You do not. Pick a free course from the table, give it thirty honest days, build two small projects on data that looks like the India you live in, and learn to explain your queries out loud. That is the whole recipe.
If you remember one thing from this guide, make it this: the certificate gets your resume opened; the query gets you the job. So spend less time hunting for the perfect free course and more time with an editor open. Your future self — and your first recruiter — will thank you.
Whenever you feel stuck, come back to the twelve questions above. Rebuild the two tables, solve three of them without notes, and you will be further along than most candidates who have paid ₹40,000 for a course they never finished.
SQL got you this far — let AI make you faster
TaskVeda's free 11-Day AI Tools & Prompt Engineering bootcamp teaches one real AI tool + one prompt skill a day — 30 minutes a day, zero coding, beginner-friendly.
- ₹0 — no credit card needed
- 30 minutes a day
- 100% beginner-friendly
- Verified certificate
- Live mentor support
15,000+ students already enrolled · Seats for each cohort are limited
Frequently asked questions
For structure plus a recognisable certificate, NPTEL/SWAYAM's Database Management Systems or Analytics Vidhya's free SQL course are the safest picks. For hands-on practice and a portfolio project, pair them with Luke Barousse's free SQL for Data Analysis materials. Together they cost nothing and cover both learning and proof.
The certificate alone will not get you hired. It can get your resume opened, but you also need two small projects on GitHub and the ability to solve basic join, aggregation and window-function questions in an interview. The 30-day roadmap above is built exactly for that.
Most consistent beginners reach interview-ready level in 30 to 45 days at one to two hours a day. Week one covers joins and aggregation, week two covers subqueries and CTEs, week three covers window functions, and week four is projects and interview drills.
Usually no. A free completion certificate from a known platform is a reasonable discipline signal. The exception is a proctored, recognised exam such as NPTEL's, which carries more weight if you can afford the fee. Never pay for a certificate while your GitHub portfolio is still empty.
Joins (especially LEFT JOIN and anti-joins), GROUP BY with HAVING, second or Nth highest salary, duplicate detection, CASE WHEN, CTEs, and window functions such as ROW_NUMBER, RANK, LAG and running totals. All twelve are solved with runnable queries in this guide.
For absolute beginners, a browser console such as SQLZoo or HackerRank removes setup friction. For portfolio work, install SQLite or PostgreSQL with a free editor — it is more realistic and lets you load your own Indian CSV datasets. Move from browser to local within the first two weeks.
Approximately ₹4–7 LPA in Bengaluru, ₹3.5–6 LPA in Hyderabad and Pune, and ₹3–5 LPA for remote or other cities, depending on company and portfolio strength. Services firms hire the most freshers; product and fintech firms pay more but expect stronger projects.
Absolutely. SQL is a practical language, not a theory-heavy subject. Commerce, science and engineering students from every branch break into data analysis with it. What matters is consistent practice and two projects you can explain, not your degree title.
Yes, as a single line under Licenses and certifications, with the issuer, date and credential ID. Then write a short post about the project you built, not the certificate you earned. The post about real work will do far more for your profile than the certificate line.
SQL is the essential first skill and the one most tested. Excel is a close second for fresher roles, and Python is valuable but usually tested after SQL. Learn SQL first, add basic Excel (pivot tables, lookups), then pick up Python pandas once you can write joins and window functions confidently.
Turn your SQL practice into proof that gets hired
Explore TaskVeda's free programs and accelerators — live learning, real Indian projects and a portfolio that speaks for you in interviews.
