Write a query that lists ids and scores of all scores for which the next score a
ID: 3857826 • Letter: W
Question
Write a query that lists ids and scores of all scores for which the next score above them (if any) is at least 10 points higher. The highest score in the entire table also qualifies per this rule. E.g, if a score is 70, and the next higher score is 80, or 81, then the 70 score qualifies, and you should list it.
Perform the indicated query using subqueries Use at most 300 characters. Use left at most 0 times. Use right at most 0 times. Use full at most 0 times.
create table Score (
id int primary key auto_increment,
score int
);
Explanation / Answer
CREATE TABLE scores
(
id int primary key auto_increment,
score int increment,
primary key (id),
key score (score)
);
so, here is the Query that lists ids and scores of all next scores
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.