
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) ;
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Google Workspace
Quiz
•
University
14 questions
Microsoft Excel Advanced Features
Quiz
•
1st Grade - University
11 questions
Technology Morning Tea Quiz
Quiz
•
KG - Professional Dev...
10 questions
Day1 Quiz
Quiz
•
University
10 questions
Java Script. Parte 1.
Quiz
•
University
14 questions
Maya 3D 2019 Interface
Quiz
•
9th Grade - University
10 questions
104-P-01: Delegates and lambdas
Quiz
•
University
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
