
Week 2-3
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
DBS Semester
Used 1+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The following queries trying to find out average marks in 2 different ways yield the same answer in every case:
(a) sum(marks)/count(*)
(b) average(marks)
True
False
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is a correct manner to convert an “NULLIF(a,b)” to an equivalent “IF(x,y,z)” expression?
IF(a == null, b, a)
Cannot convert an nullif() statement to an if() statement
IF(a=b, NULL, a)
IF(a is null, a, b)
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Find the number of rows in the following relations for T1(ID, name) and T2(grades, name) as shown. SELECT * FROM T1 NATURAL JOIN T2;
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Choose what would be seen on running this query on MySQL Workbench:
select coalesce(1.0/0.0, NULL," ","DBS");
NULL
1.0/0.0
DBS
6.
FILL IN THE BLANK QUESTION
3 mins • 2 pts
Find the average length of movies belonging to each rental_rate category. Output the rental_rate and the corresponding average length. Write an SQL query for the same. (table name: film)
PS: No need to alias tables/columns. Retain the underscores. All lowercase
7.
DRAG AND DROP QUESTION
1 min • 1 pt
How will you output the top 3 students according to marks?
select * from students
order by marks
(a) (b) ;
8.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is returned when the following query is executed?
select COALESCE(1/0,NULL,1/0,NULL);
Error, as there is no non-NULL value
1/0
NULL
9.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Choose the correct alternative:
If we want to return all names having 'a' in their first position and 'e' in their fifth:
select * from table
where name <?>;
= 'a__%e%'
= 'a___e%'
like 'a%e_'
like 'a___e%'
Similar Resources on Wayground
10 questions
DBMS Lab Quiz 1 2B3
Quiz
•
University
11 questions
DDL-SQL
Quiz
•
University
12 questions
unit-3 test-2
Quiz
•
University
13 questions
Grade 6 - Checkpoint1- Revision
Quiz
•
6th Grade - University
9 questions
Costruttori
Quiz
•
University
10 questions
Microsoft Word
Quiz
•
University
10 questions
PERINTAH SQL 01
Quiz
•
10th Grade - University
11 questions
wordpress pretest
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
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
