SQL set 3

SQL set 3

University

10 Qs

quiz-placeholder

Similar activities

DATABASE LEVEL 1

DATABASE LEVEL 1

University

15 Qs

Mastering SQL Joins and Subqueries

Mastering SQL Joins and Subqueries

University

10 Qs

Quiz 2 - GIS Basic Bootcamp

Quiz 2 - GIS Basic Bootcamp

University - Professional Development

10 Qs

Atividade final

Atividade final

University

14 Qs

Aaruth Quiz

Aaruth Quiz

University

10 Qs

DBMS Hoodlums Round 2

DBMS Hoodlums Round 2

University

15 Qs

Descriptive Statistics  and t-test

Descriptive Statistics and t-test

University

15 Qs

TRACK_ELECTIVE F_SW1

TRACK_ELECTIVE F_SW1

University

10 Qs

SQL set 3

SQL set 3

Assessment

Quiz

Other

University

Hard

Created by

ESPARK 2023

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following must be enclosed in double-quotes?

Dates

Column Alias

String

All of the mentioned

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

A subquery in an SQL SELECT statement is enclosed in:

parenthesis -- (...)

brackets -- [...].

CAPITAL LETTERS

braces -- {...}

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is returned by SUBSTR(‘TUTORIALS POINT’, -1, 1)?

T

NULL

0

N

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Consider the following schema −

STUDENTS(student_code, first_name, last_name, email,phone_no, date_of_birth, honours_subject, percentage_of_marks);

Which query will display the names and honours subjects of all students and if a student has not yet been given a honours subject yet, then it should display ‘No Honours Yet’?

select first_name, last name, nvl(honours_subject, ‘No Honours Yet’) from students;

select first_name, last name, nvl2(honours_subject, ‘No Honours Yet’) from students;

select first_name, last name, honours_subject, from students;

select first_name, last name, nullif(honours_subject, ‘No Honours Yet’) from students;

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not true about single-row subqueries?

Single row subqueries return one row from the inner SELECT statement.

Single row subqueries return one row from the outer SELECT statement.

Single row subqueries use single-row comparison operators.

All of the above.

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not a developer’s privilege?

CREATE USER

CREATE TABLE

CREATE VIEW

CREATE SEQUENCE

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not true about use of a database view?

It restricts data access.

It makes queries easy.

It provides data independence.

It prevents different views of same data.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?