Yes, SQL and Excel are enough to start for most entry-level data analytics internships, provided you can do four things without help: join tables correctly, aggregate with grouping and filters, build a pivot table, and use lookups. This guide gives Thiagarajar College of Engineering students a graded drill set with answers, a self-scoring table and a 14-day schedule to build those skills.
What internship screens usually test
Analytics internship tasks tend to be small and practical. A recruiter or mentor hands over two or three tables or a spreadsheet and asks a business question: which city generates the most repeat orders, which product category is shrinking, which customers never bought again. Answering that needs a short list of skills, and the drills below follow it.
- SQL: SELECT with WHERE, INNER and LEFT joins, GROUP BY with HAVING, COUNT DISTINCT, CASE expressions, date handling, and a subquery or CTE.
- Excel: clean data, VLOOKUP or XLOOKUP, INDEX-MATCH, SUMIFS and COUNTIFS, pivot tables, and a clear summary chart.
- Communication: a one-line finding stated in plain language, with the number that supports it.
Depth is not the main differentiator. Correctness and explanation are. A candidate who gets a join right and says “this excludes customers with zero orders, so the count is lower than the customer list” stands out from one who pastes a query that happens to run.
The practice dataset (illustrative)
All exercises use one small made-up retail schema. It is illustrative, so build it yourself in any database you like (MySQL, PostgreSQL, SQLite) or type a few dozen rows into Excel sheets. The answers below are written by hand for study purposes; check them against your own data and do not treat them as tested output.
| Table | Columns | Notes |
|---|---|---|
| customers | customer_id, name, city, signup_date | One row per customer |
| orders | order_id, customer_id, order_date, status | Status: Delivered, Cancelled, Returned |
| order_items | order_id, product_id, quantity, unit_price | One row per product in an order |
| products | product_id, product_name, category | One row per product |
Add at least 30 customers across five or six cities, 80 or more orders, and a few deliberately awkward cases: a customer with no orders, a product never sold, a blank city, and a duplicated customer name with different IDs. Awkward rows are where join mistakes show up.
Free 2-Week CareerSwami Internship
Online, 14 days, with a free offer letter and a free completion certificate once you finish the work. Check with your college that it fits your requirement before you enrol.
Self-scoring scorecard
Use this table before and after the 14-day plan. Score each row from 0 to 3: 0 means you cannot do it, 1 means you can with notes open, 2 means you can without notes but slowly, 3 means you can do it quickly and explain it.
| Skill | Tool | Pass check | Before | After |
|---|---|---|---|---|
| Filtering and sorting | SQL | Write a WHERE with AND/OR and ORDER BY in under 2 minutes | ||
| INNER JOIN | SQL | Join three tables and explain the row count | ||
| LEFT JOIN and NULL handling | SQL | Find customers with no orders | ||
| GROUP BY and HAVING | SQL | Revenue per city, only cities above a threshold | ||
| CASE and date functions | SQL | Monthly revenue with a size bucket | ||
| Subquery or CTE | SQL | Customers above average spend | ||
| Lookups | Excel | XLOOKUP and INDEX-MATCH give the same answer | ||
| SUMIFS / COUNTIFS | Excel | Conditional totals with two criteria | ||
| Pivot tables | Excel | Rows, columns, values, filter and a calculated share | ||
| Data cleaning | Excel | Fix text, dates and duplicates before analysis | ||
| Explaining a result | Both | A two-sentence finding with a number |
A total of 27 or more out of 33 suggests you are ready to attempt internship tasks. Below 18, spend more time on the level 1 and 2 drills before anything else.
SQL drills, graded with answers
Attempt each exercise before reading the answer. Answers use standard SQL; small syntax changes may be needed for your database, especially for date functions.
Level 1: filtering and basic aggregation
- Drill 1.1. List all customers from one city, ordered by signup date, newest first.
- Drill 1.2. Count orders by status.
- Drill 1.3. Find the total number of units ever sold.
Answers
-- 1.1
SELECT customer_id, name, signup_date
FROM customers
WHERE city = 'Madurai'
ORDER BY signup_date DESC;
-- 1.2
SELECT status, COUNT(*) AS order_count
FROM orders
GROUP BY status;
-- 1.3
SELECT SUM(quantity) AS total_units
FROM order_items;
Watch for: text comparisons can be case-sensitive in some databases, and a blank city is not the same as NULL.
Level 2: joins and grouped analysis
- Drill 2.1. Show each delivered order with the customer name and order value (quantity times unit price, summed).
- Drill 2.2. Revenue by product category from delivered orders only.
- Drill 2.3. List customers who have never placed an order.
- Drill 2.4. Cities with delivered revenue above a threshold you choose, highest first.
Answers
-- 2.1
SELECT o.order_id, c.name,
SUM(oi.quantity * oi.unit_price) AS order_value
FROM orders o
JOIN customers c ON c.customer_id = o.customer_id
JOIN order_items oi ON oi.order_id = o.order_id
WHERE o.status = 'Delivered'
GROUP BY o.order_id, c.name;
-- 2.2
SELECT p.category,
SUM(oi.quantity * oi.unit_price) AS revenue
FROM order_items oi
JOIN orders o ON o.order_id = oi.order_id
JOIN products p ON p.product_id = oi.product_id
WHERE o.status = 'Delivered'
GROUP BY p.category
ORDER BY revenue DESC;
-- 2.3
SELECT c.customer_id, c.name
FROM customers c
LEFT JOIN orders o ON o.customer_id = c.customer_id
WHERE o.order_id IS NULL;
-- 2.4
SELECT c.city,
SUM(oi.quantity * oi.unit_price) AS revenue
FROM customers c
JOIN orders o ON o.customer_id = c.customer_id
JOIN order_items oi ON oi.order_id = o.order_id
WHERE o.status = 'Delivered'
GROUP BY c.city
HAVING SUM(oi.quantity * oi.unit_price) > 50000
ORDER BY revenue DESC;
Key points: WHERE filters rows before grouping, while HAVING filters groups after. In 2.3, the filter on NULL must be in WHERE, and putting a status condition in WHERE on a LEFT JOIN would silently turn it into an inner join.
Level 3: conditional logic, dates, and subqueries
- Drill 3.1. Monthly delivered revenue, with each order labelled Small, Medium or Large by value.
- Drill 3.2. Customers whose total delivered spend is above the average customer spend.
- Drill 3.3. Repeat customers: those with at least two delivered orders.
- Drill 3.4. The top-selling product in each category by units.
Answers
-- 3.1 (date function shown in MySQL style; use DATE_TRUNC in PostgreSQL)
WITH order_totals AS (
SELECT o.order_id, o.order_date,
SUM(oi.quantity * oi.unit_price) AS order_value
FROM orders o
JOIN order_items oi ON oi.order_id = o.order_id
WHERE o.status = 'Delivered'
GROUP BY o.order_id, o.order_date
)
SELECT DATE_FORMAT(order_date, '%Y-%m') AS month,
CASE WHEN order_value < 1000 THEN 'Small'
WHEN order_value < 5000 THEN 'Medium'
ELSE 'Large' END AS size_bucket,
COUNT(*) AS orders,
SUM(order_value) AS revenue
FROM order_totals
GROUP BY month, size_bucket
ORDER BY month, size_bucket;
-- 3.2
WITH spend AS (
SELECT o.customer_id,
SUM(oi.quantity * oi.unit_price) AS total_spend
FROM orders o
JOIN order_items oi ON oi.order_id = o.order_id
WHERE o.status = 'Delivered'
GROUP BY o.customer_id
)
SELECT customer_id, total_spend
FROM spend
WHERE total_spend > (SELECT AVG(total_spend) FROM spend);
-- 3.3
SELECT customer_id, COUNT(*) AS delivered_orders
FROM orders
WHERE status = 'Delivered'
GROUP BY customer_id
HAVING COUNT(*) >= 2;
-- 3.4
WITH units AS (
SELECT p.category, p.product_name,
SUM(oi.quantity) AS units_sold
FROM order_items oi
JOIN products p ON p.product_id = oi.product_id
GROUP BY p.category, p.product_name
),
ranked AS (
SELECT *, RANK() OVER (PARTITION BY category
ORDER BY units_sold DESC) AS rnk
FROM units
)
SELECT category, product_name, units_sold
FROM ranked
WHERE rnk = 1;
In 3.1, summing item rows before grouping by order avoids a classic error: joining orders to items and then counting rows counts line items, not orders. In 3.4, RANK keeps ties; ROW_NUMBER would pick one arbitrarily.
Excel drills, graded with answers
Create three sheets that mirror the tables: Orders (order_id, customer_id, order_date, status, category, quantity, unit_price), Customers (customer_id, name, city), and Products. Convert each to an Excel Table with Ctrl+T so formulas use readable column names.
Level 1: cleaning and conditional totals
- Drill E1.1. Add a Revenue column to Orders.
- Drill E1.2. Total revenue for delivered orders in a single category.
- Drill E1.3. Count orders from a given city that were cancelled.
| Drill | Formula (illustrative) | Why it works |
|---|---|---|
| E1.1 | =[@quantity]*[@unit_price] |
Structured reference fills down automatically |
| E1.2 | =SUMIFS(Orders[Revenue],Orders[status],"Delivered",Orders[category],"Electronics") |
SUMIFS takes the sum range first, then criteria pairs |
| E1.3 | =COUNTIFS(Orders[city],"Madurai",Orders[status],"Cancelled") |
Requires a city column in Orders, which E2.1 creates |
Before any analysis, run Data, Remove Duplicates on customers, apply TRIM to text fields, and confirm dates are real dates (right-aligned) and not text.
Level 2: lookups
- Drill E2.1. Bring city from Customers into Orders.
- Drill E2.2. Repeat E2.1 with INDEX-MATCH so it works in older Excel.
- Drill E2.3. Make the lookup show “Unknown” when an ID is missing.
| Drill | Formula (illustrative) | Note |
|---|---|---|
| E2.1 | =XLOOKUP([@customer_id],Customers[customer_id],Customers[city]) |
Defaults to exact match |
| E2.1 (VLOOKUP) | =VLOOKUP([@customer_id],Customers[[customer_id]:[city]],3,FALSE) |
Column number must match the table layout; FALSE forces exact match |
| E2.2 | =INDEX(Customers[city],MATCH([@customer_id],Customers[customer_id],0)) |
Survives column insertions better than VLOOKUP |
| E2.3 | =XLOOKUP([@customer_id],Customers[customer_id],Customers[city],"Unknown") |
Fourth argument is the not-found value |
The most common failure is an ID stored as text in one sheet and a number in the other. If a lookup returns #N/A for an ID you can see, check that first.
Level 3: pivot tables
- Drill E3.1. Revenue by category (rows) and month (columns), delivered orders only.
- Drill E3.2. Show each city’s share of total revenue.
- Drill E3.3. Show the number of distinct customers per city.
- Drill E3.4. Add a slicer for status and a chart for the result.
Steps
- E3.1: Insert, PivotTable from the Orders table. Put category in Rows, order_date in Columns (group by Months), Revenue in Values as Sum. Put status in Filters and choose Delivered.
- E3.2: Put city in Rows and Revenue in Values. Open Value Field Settings, Show Values As, % of Grand Total.
- E3.3: When creating the pivot, tick “Add this data to the Data Model”, then use Distinct Count in Value Field Settings on customer_id.
- E3.4: Insert Slicer on status, then Insert PivotChart as a clustered bar. Remove gridlines, label axes, and write a title that states the finding, not the field names.
Worked example: from question to finding (illustrative)
Suppose a mentor asks: “Which city should we focus on for repeat purchases?” The numbers below are invented to show the method and do not come from any real data.
- Define the metric. Repeat customer means two or more delivered orders. Write that definition down first.
- Build it in SQL. Join customers to orders, filter on Delivered, group by customer, and keep those with at least two orders.
- Roll up by city. Divide repeat customers by all customers with at least one delivered order.
WITH per_customer AS (
SELECT c.customer_id, c.city,
COUNT(*) AS delivered_orders
FROM customers c
JOIN orders o ON o.customer_id = c.customer_id
WHERE o.status = 'Delivered'
GROUP BY c.customer_id, c.city
)
SELECT city,
COUNT(*) AS buyers,
SUM(CASE WHEN delivered_orders >= 2 THEN 1 ELSE 0 END) AS repeat_buyers,
ROUND(100.0 * SUM(CASE WHEN delivered_orders >= 2 THEN 1 ELSE 0 END)
/ COUNT(*), 1) AS repeat_rate_pct
FROM per_customer
GROUP BY city
ORDER BY repeat_rate_pct DESC;
Imagine the result shows City A with 40 buyers and 18 repeat buyers (45.0%), and City B with 12 buyers and 7 repeat buyers (58.3%). The rate is higher in City B, but the sample is small.
A sound written finding would read: “City B has the higher repeat rate (58.3% against 45.0%), but only 12 buyers, so the gap may not hold. City A has more repeat buyers in absolute terms (18 against 7). Recommend tracking both for another quarter before shifting effort.” That sentence names the definition, gives both numbers, and flags the limitation. Then copy the output into Excel, make a pivot or bar chart, and the deliverable is done.
A 14-day practice plan
| Days | Focus | Output |
|---|---|---|
| 1 | Build the dataset; score yourself on the scorecard | Four tables with awkward rows |
| 2-3 | SQL level 1 and cleaning in Excel | All level 1 drills solved twice |
| 4-6 | SQL joins (level 2) | Each join written, then row counts explained |
| 7-8 | Excel lookups and SUMIFS | A sheet where every lookup is cross-checked |
| 9-10 | SQL level 3: CASE, dates, CTEs | Monthly revenue report |
| 11-12 | Pivot tables, slicers, chart | One-page dashboard |
| 13 | Timed mock: three SQL and two Excel tasks in 90 minutes | Marked against the answers above |
| 14 | Re-score; write three findings in plain English | Updated scorecard and a short portfolio note |
If you would like guided practice with a deadline, CareerSwami’s free two-week online internship offers 26 tracks, a free offer letter and a free completion certificate after successful completion. It runs for 14 days, which fits this plan well.
Common mistakes that cost marks
- Counting rows instead of entities. After a join, one order can appear many times. Use COUNT(DISTINCT order_id) when you mean orders.
- Filtering the wrong side of a LEFT JOIN. Conditions on the right table belong in the ON clause if you want to keep unmatched rows.
- Dividing integers. Some databases truncate integer division; multiply by 100.0 first.
- Hardcoding lookup ranges. Use Tables or absolute references so formulas do not shift.
- Pasting values without a check. Compare a pivot total with a SUM on the raw data. If the two disagree, find out why.
- Unlabelled charts. A chart without a title, units and a stated takeaway is not a deliverable.
TCE’s internship credits and your SQL and Excel practice
Thiagarajar College of Engineering describes itself in its 2026-27 admission letter as a Government-aided autonomous institution affiliated to Anna University. The B.E./B.Tech. Regulations (CBCS 2022-23) were approved by TCE’s own Academic Council in June 2022. For a data analytics internship, this means the college’s own regulations, not a general university rule, are the document to read.
Under those 2022 regulations, every student must do an internship in industry or at the institution, and two weeks equal 1 credit. The degree requires 3 credits (6 weeks), and these credits are not counted in GPA/CGPA. A practical consequence: a short SQL and Excel project or a few weeks of analytics work only helps with the requirement if it fits the weeks and format the department accepts. The 14-day plan in this guide is preparation for screens, not a substitute for the internship period.
The same regulations say a faculty team nominated by the Head of Department evaluates the internship report and awards a grade and credit, which appears in the mark sheet. Keep dated notes, query files and a short write-up of each analysis as you go, so a report is easy to prepare. A student who completes a further 3 credits (6 weeks in one organisation) may drop one Programme Elective, according to the regulations. This is relevant only if you plan a longer placement.
The regulations also allow NPTEL and institution-run online courses for credit, but the extracted text showed no clause on online internships. Do not assume a remote analytics internship counts. Note too that these are 2022 rules, so check the version for your batch. Programme syllabi are published separately, for example the B.E. CSE 2024-25 curriculum, which includes an internship component, and the B.Tech. IT 2022-onwards syllabi. Use them to match database and statistics topics to the drills above.
For placement queries, the Career Development Centre contact page lists placement@tce.edu and a phone number. The page is an excerpt, so confirm the details before relying on them.
Checks before you count an analytics internship at TCE
- Ask your Head of Department’s office whether the 2022 regulations apply to your batch, and get the current PDF.
- Ask whether an online or remote analytics internship is acceptable, since the regulations text shows no clause on it.
- Confirm how many weeks must be spent in one organisation to reach the 3-credit minimum.
- Ask who is on the faculty evaluation team and what report format and documents they expect.
- Check your programme syllabus PDF for the semester in which the internship is placed.
- Email the Career Development Centre to ask whether it holds SQL or Excel preparation sessions.
Frequently Asked Questions
Which should I learn first, SQL or Excel?
Start with Excel basics for two or three days, because pivot tables and lookups teach how data is structured. Then give SQL most of your time, since joins and grouping are where candidates most often struggle.
Do I need Python as well for a data analytics internship?
Many entry-level roles list Python or Power BI, but SQL and Excel are enough to begin and to complete small analysis tasks. Add Python once the scorecard shows mostly 2s and 3s.
Which database should a TCE student practise SQL on for analytics internship screens?
SQLite, MySQL and PostgreSQL are all free. Choose the one that is easiest to install on your laptop. The core syntax in the drills is portable, but date functions differ, so look up the equivalent for your system.
Should I use VLOOKUP or XLOOKUP?
Know both. XLOOKUP is simpler and safer, but it is not available in older Excel versions, and many existing workbooks still use VLOOKUP. INDEX-MATCH is a reliable fallback.
How many SQL and Excel practice questions are enough before a data analytics internship screen?
Solving each drill here twice, once with notes and once without, is a better target than a large number of questions done once. Variety matters: change the question, filter or grouping each time.
How can I show these skills if I have no real project?
Publish the retail dataset, your queries, a pivot dashboard and your written findings in a short portfolio document or repository. Label it clearly as practice data, and make the finding statements the main feature.
Will a free online internship count for credit at my college?
That depends on your college’s own rules, and no outside programme can promise it. Ask your internship coordinator in writing before you rely on it for any requirement.
What if my query runs but gives a different number from the answer key?
Check join type, duplicate rows, the status filter and NULL values in that order. Then compare the SQL total with a pivot of the same data in Excel; the discrepancy usually points to the cause.
Related Data Analytics guides
- Kumaraguru College of Technology Students: Data Analytics Internship Project Ideas
- Vishwakarma Institute of Technology, Pune Students: Data Analytics Internship Interview Preparation
- Pune Institute of Computer Technology Students: Presenting a Data Analytics Internship Dashboard Demo
- All Data Analytics internship guides
Ready to put this into practice?
Join the free two-week CareerSwami online internship in Data Analytics. The internship, the offer letter and the completion certificate are free.














