Let's practice! - String

Let's practice! - String

University

5 Qs

quiz-placeholder

Similar activities

Nature of Human Beings

Nature of Human Beings

University

10 Qs

Composites Quiz 4

Composites Quiz 4

University

10 Qs

Reading Facilitation

Reading Facilitation

University

10 Qs

2018 Safety Day

2018 Safety Day

12th Grade - University

10 Qs

Advanced Concepts Quiz Four Review

Advanced Concepts Quiz Four Review

University

10 Qs

Chapter 6: Writing Performance Objectives

Chapter 6: Writing Performance Objectives

University - Professional Development

5 Qs

Non-English Sounds Part II

Non-English Sounds Part II

University

6 Qs

DSL 201 WEEK 1 DAY 2 WARM UP

DSL 201 WEEK 1 DAY 2 WARM UP

University

10 Qs

Let's practice! - String

Let's practice! - String

Assessment

Quiz

Specialty

University

Hard

Created by

Thuan Tran

FREE Resource

5 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Retrieve the length of the description column, returning the results as description_length.

SELECT ........... (...........) AS ........... FROM grid;

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

  • Retrieve the first 25 characters from the description column in the grid table. Name the results first_25_left.

SELECT ...........(...........,...........) AS ........... FROM grid;

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

  • Amend the query to retrieve the last 25 characters from the description. Name the results last_25_right.

SELECT LEFT(description, 20) AS ........... FROM grid;

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

  • Edit the query to return the CHARINDEX of the string 'Weather' whenever it appears within the description column.

SELECT description, ..........('..........', description) FROM grid

WHERE description LIKE '%Weather%';

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

  • Fill in the blank

  • Complete the substring function to begin extracting from the correct character in the description column.

SELECT description, CHARINDEX('Weather', description) AS start_of_string,

LEN ('Weather') AS length_of_string,

SUBSTRING(______,______,______) AS additional_description

FROM grid

WHERE description LIKE '%Weather%';