Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
8 views3 pages

Test - 3

The document outlines a test for SQL and Tableau with a maximum duration of 1 hour and 20 minutes, totaling 100 marks without negative marking. It includes specific SQL questions related to employee data and product sales, as well as Tableau tasks involving data visualization and analysis. Submission instructions require answers in a Word document with screenshots of Tableau graphs, and emphasize the importance of proper formatting and interactivity in visualizations.

Uploaded by

tgv070322
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views3 pages

Test - 3

The document outlines a test for SQL and Tableau with a maximum duration of 1 hour and 20 minutes, totaling 100 marks without negative marking. It includes specific SQL questions related to employee data and product sales, as well as Tableau tasks involving data visualization and analysis. Submission instructions require answers in a Word document with screenshots of Tableau graphs, and emphasize the importance of proper formatting and interactivity in visualizations.

Uploaded by

tgv070322
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

NIKHIL ANALYTICS

Test topics: SQL and Tableau


Max Time = 1Hr 20 Min and Max Marks = 100
There are no negative marks.
Submission Instruction
- Write your answer in a Word document with the proper question number.
- DO NOT COPY PASTE Questions. We need only the question number.
- Prepare your graph in Tableau and take a screenshot of it, and paste it into the Word
document. Submit your Word file with your name.

SQL Questions
1. Answer the following questions
a. Explain the concept of primary key and foreign key in relational databases. How
do they help maintain data integrity?
b. Explain the difference between WHERE and HAVING clauses in SQL. When would
you use one over the other?
c. What is the difference between DELETE, TRUNCATE, and DROP commands in
SQL? When should each be used?
d. Explain the logical order of execution of SQL clauses in a SELECT query.
- 10 Marks
2. Sample Table: Employees

EmployeeID Name Department Salary JoiningDate ManagerID


101 Alice HR 60000 2021-01-15 201
102 Bob IT 80000 2020-07-23 202
103 Charlie IT 75000 2019-05-12 202
104 David Finance 72000 2022-03-18 203
105 Eva HR 65000 2021-06-10 201
106 Frank Finance 70000 2023-01-05 203
201 Grace HR 95000 2017-09-20 NULL
202 Henry IT 98000 2016-02-14 NULL
203 Irene Finance 97000 2018-11-30 NULL

a. List the names of employees who joined before January 1, 2021.


b. Find the average salary of employees in each department.
c. Display the names of employees who report to manager with ManagerID = 202.
d. Find the department with the highest total salary paid.
e. List all departments that have more than 2 employees.
- 20 Marks

CALL|WHATSAPP: +91-9945339324/+91-9741267715 Visit: www.nikhilanalytics.com


Page 1|3
NIKHIL ANALYTICS
3. Table 1: Products

ProductID ProductName Category Price


1 Laptop Electronics 800
2 Phone Electronics 500
3 Chair Furniture 150
4 Desk Furniture 300
5 Headphones Electronics 100
Table 2: Sales

SaleID ProductID Quantity SaleDate Region


101 1 2 2024-01-05 East
102 2 5 2024-01-07 West
103 3 3 2024-01-09 North
104 1 1 2024-02-10 East
105 4 4 2024-02-15 South
106 2 2 2024-02-18 North
107 5 10 2024-03-01 East
108 3 1 2024-03-03 West
109 1 1 2024-03-05 North

a. List each sale with the product name, category, quantity, and sale amount (quantity ×
price).
b. For each region, find the total quantity sold for each product category.
c. Rank products within each category based on total sales amount.
d. Find the top-selling product (by quantity) in each region.

- 20 Marks

Tableau Questions

1. Answer the question below


a. What are parameters, and how are they different from filters?
b. Describe the different types of joins available in Tableau.
c. What are the dimensions and measures in Tableau?
d. What is a calculated field? Give an example.
e. Explain the difference between a worksheet, dashboard, and story in Tableau.
- 10 Marks
2.
Instruction No Instruction
1 Use the 'Sample Superstore' dataset provided by Tableau.
2 Ensure all visualizations are appropriately titled and formatted.
3 Add interactivity where applicable (e.g., filters, parameters).

CALL|WHATSAPP: +91-9945339324/+91-9741267715 Visit: www.nikhilanalytics.com


Page 2|3
NIKHIL ANALYTICS
4 Use tooltips effectively to enhance user understanding.
5 Publish your dashboard to Tableau Public if required.

Question Question
No
1 Create a bar chart showing Sales by Region using the Sample Superstore
dataset.
2 Build a line chart to show monthly Profit trend over time.
3 Build a boxplot to show sales distribution across region, which region has
highest spread of distribution.
4 Create a calculated field to show Profit Ratio and visualize it using a scatter
plot.
5 Implement a dynamic top N filter using a parameter to display the top N sub-
category by Sales.

- 20 Marks
3.

Instruction No Instruction
1 Use the 'listings.csv' dataset provided by Tableau.
2 Ensure all visualizations are appropriately titled and formatted.
3 Add interactivity where applicable (e.g., filters, parameters).
4 Use tooltips effectively to enhance user understanding.
5 Publish your dashboard to Tableau Public if required.

Question No Question
1 Build a histogram or boxplot to visualize the distribution of prices. Identify and
handle outliers.
2 Build a scatter plot showing the relationship between availability_365 and
price. What can you infer from the pattern?
3 Identify the top 10 hosts with the most listings. Create a bar chart or table
showing their names, number of listings, and average price.
4 Estimate an occupancy rate using the formula:
Occupancy Rate = (365 - availability_365) / 365.
Visualize the average occupancy rate by room type.
5 Design a dashboard for a host to view:
• Their listing count
• Average price
• Estimated occupancy rate
• Location of their listings on a map
Add filters for date range and room type if data allows.

- 20 Marks

All The Best

CALL|WHATSAPP: +91-9945339324/+91-9741267715 Visit: www.nikhilanalytics.com


Page 3|3

You might also like