SQL set 3

Quiz
•
Other
•
University
•
Hard
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
Similar Resources on Wayground
10 questions
birthday game night

Quiz
•
University
10 questions
SEMANA_1- CLASE_1

Quiz
•
University
15 questions
Quiz 3

Quiz
•
University
10 questions
Quiz sobre Banco de Dados e Django

Quiz
•
6th Grade - University
7 questions
DB Quiz1

Quiz
•
University
10 questions
IT: Technical/Computer Terms Quiz #40

Quiz
•
11th Grade - University
10 questions
Data Analytics Quiz -5

Quiz
•
University
8 questions
Base de Datos - SQL

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University