
Let's write some T-SQL!
Quiz
•
Specialty
•
University
•
Practice Problem
•
Hard
Thuan Tran
Used 5+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
1 min • 1 pt
It's time to begin writing your own queries! In this first coding exercise, you will use SELECT statements to retrieve columns from a database table. You'll be working with the eurovision table, which contains data relating to individual country performance at the Eurovision Song Contest from 1998 to 2012.
Yes
Ok, let go!
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Select the country column from the eurovision table.
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Amend your query to return the points column instead of the country column.
SELECT country FROM eurovision;
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Amend your query to return the points column instead of the country column.
SELECT country FROM eurovision;
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Use TOP to change the existing query so that only the first 50 rows are returned.
SELECT ........ (........) points FROM eurovision;
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Return a list of unique countries using DISTINCT. Give the results an alias of unique_country.
Return a list of unique countries using DISTINCT. Give the results an alias of unique_country.
SELECT ........ country ........ unique_country FROM eurovision;
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
SELECT the country and event_year columns from the eurovision table.
SELECT the country and event_year columns from the eurovision table.
SELECT ........ , ........ FROM ........;
8.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Use a shortcut to amend the current query, returning ALL columns in the table.
Use a shortcut to amend the current query, returning ALL columns in the table.
SELECT country, event_year FROM eurovision;
9.
FILL IN THE BLANK QUESTION
1 min • 1 pt
This time, return only half the rows using 'TOP', using the same shortcut as before to return all columns.
This time, return only half the rows using 'TOP', using the same shortcut as before to return all columns.
SELECT ........ (50) PERCENT * FROM eurovision;
Similar Resources on Wayground
10 questions
Remembrance Day 2020
Quiz
•
10th Grade - Professi...
10 questions
Lego Spike Prime Troubleshooting Quiz
Quiz
•
6th Grade - University
10 questions
Dyslexia Facts/Fiction
Quiz
•
3rd Grade - University
13 questions
Dairy Breeds
Quiz
•
4th Grade - University
7 questions
Softball Quiz *Hard*
Quiz
•
1st Grade - Professio...
14 questions
LCQ 16705 Section 3 & 4
Quiz
•
KG - University
10 questions
Nursing School Ethical Issues
Quiz
•
University
12 questions
hydraulics
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
