Professional Documents
Culture Documents
Question 2: (5 min)
Table 3 Table 4
EmpID Address_2 EmpID Address_2
1 A 1 A
1 B 2 G
2 C 2 H
3 G 5 J
Q 2.a: What is the ouput of UNION operation between table 3 and table 4 (from the previous question)?
Q 2.b: What is the difference between 'union' and 'union all'?
Question 3: (7 min)
Q 3.a: Write a query to find the highest service charge in the entire table
Q 3.b: Write a query to find the average service cost of all vehicles at Brand ID level
Q 3.c: What is the difference between 'where' and 'having' key words?
Question 4: (5 min)
Consider the table column below:
Value Row_number
Rank Dense rank
12
12
23
23
23
29
31
Question 5: (6 min)
Q 5.a: What function is used to find out difference between two dates?
Q 5.b: How to extract year, month and day details from a date column?
Q 5.c: How to extract first name from the 'Full name' column below?
Full name
Jolie Nichols
Madiha Armstrong
Christina Weber
Daisie Nieves
Basic Programming
1. Separate the list a = [1,2,3,4,5,6,7,8] into [[1,2],
Checking [3,4],[5,6],[7,8]]
Logic and 5 minutes
Loops( for 2. Create a list with random numbers and write
while) function to find any one of them- a. Largest number
b. Smallest numbers 5 minutes
by and 3. find out the the following at country and State leve
aggregate
function 5 minutes
2. Visualiz 4. Plot a bar chart to show how each consumer segments 5 minutes
3. Adding 5. Add new column - Profict status if Profit > 0 then Pos 5 Minutes