Day-3 Teradata
Day-3 Teradata
Teradata Assignments
Assignment 1
Time Series Data Analysis:
I. Create the below Tables as per the structure:
II. Perform the below analysis (Assuming the last digit of the
server_id isthe department_id):
c. Write a SQL query to compare the avg temp of current day with avg
temp of previous day
a. Let’s see health department salary. We will make 3 buckets to see the
salary earning status for Health department.
salary >= 50000 AND salary < 100000 THEN 'middle earner'
a. Distinct department
b. Extract job category from the assistant position which starts with
word Assistant.
Dhriti Saluja
c. As there are several duplicated ones, we want to know only unique
ones from the above question.
Dhriti Saluja
e. Display job title with Assistant with Level 3 and 4
Dhriti Saluja
g. Job title starts with either E, P or S character, followed by any
characters
Dhriti Saluja
Dhriti Saluja