Skip to content

rohit8450/Onlinesales.ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Onlinesales.AI

Introduction

Fetch top 3 departments along with their name and average monthly salary. Below is the format of the report. |DEPT_NAME|AVG_MONTHLY_SALARY (USD)|

🔗 Important Links

Checkout the Website Input Data


Task-1 SQL

In the attachment above, use each worksheet as a table in a relational database and write an SQL query that generates the output report

Task-2 Scripting

With the same attachment, use each worksheet as a CSV file and write a script (Bash or Python) that generates the same report. Data is to be read from the CSV files not from a database.


Task-3 Debugging

Given below is a Bash / Python script that performs following computation on an integer input (n): If n is less than 10: Calculate its Square Example: 4 => 16 If n is between 10 and 20: Calculate the factorial of (n-10) Example: 15 => 120 If n is greater than 20: Calculate the sum of all integers between 1 and (n-20) Example: 25 => 15

Tools Used

SQL img logo Python img logo Vscode img logo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages