Search Header Logo

Let's write some T-SQL!

Authored by Thuan Tran

Specialty

University

Used 5+ times

Let's write some T-SQL!
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Media Image

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.

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 ........ , ........ FROM ........;

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?