Question
Employee ID Birthdate Salary 001 1973-04-05 25000 002 1984-12-04 30000 003 1990-04-02 35000 004 1974-02-04 35000 005 1987-04-09 40000 006 1969-07-07 35000 007 1987-03-04 40000
Employee ID | Birthdate | Salary |
001 | 1973-04-05 | 25000 |
002 | 1984-12-04 | 30000 |
003 | 1990-04-02 | 35000 |
004 | 1974-02-04 | 35000 |
005 | 1987-04-09 | 40000 |
006 | 1969-07-07 | 35000 |
007 | 1987-03-04 | 40000 |
Using the table shown above, write a query to find the highest-paid employee for each decade based on their birth dates
2.
Movie ID | Genre | Running Time |
001 | Action | 120 |
002 | Action | 135 |
003 | Comedy | 125 |
004 | Comedy | 135 |
005 | Romance | 120 |
006 | Action | 125 |
007 | Action | 95 |
008 | Romance | 110 |
Using the table given above write a query to find the movie with the highest run time for each category.Using the information from above, divide each movie's run time against the longest run time in its category to create an index.
3.
Employee ID | Year | Salary |
001 | 2018 | 50000 |
001 | 2019 | 55000 |
002 | 2017 | 45000 |
002 | 2018 | 50000 |
002 | 2019 | 55000 |
002 | 2020 | 55000 |
003 | 2017 | 40000 |
003 | 2018 | 45000 |
003 | 2019 | 45000 |
Using the table shown above write a query to find employees who have received 3 or more salary raises over the years.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Understanding Basic Statistics
Authors: Charles Henry Brase, Corrinne Pellillo Brase
6th Edition
978-1133525097, 1133525091, 1111827028, 978-1133110316, 1133110312, 978-1111827021
Students also viewed these Databases questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App