
Database and SQL Quiz
Authored by Varsha Thakur
Computers
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
39 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 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 of the following query would display all the students whose first name starts with the character ‘A’?
select first_name from students where first_name like ‘A%’;
select first_name from students where first_name like ‘%A’;
select first_name from students where first_name like ‘%A%’;
select first_name from students where first_name like ‘A’;
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
You have a relation called "Employees" that contains information about employees, including their salaries. You want to find the average salary of all employees. Which relational algebra operation would you use?
SELECT
PROJECT
AGGREGATE
JOIN
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
With SQL, how can you return the number of not null records in the "Persons" table?
SELECT COUNT() FROM Persons
SELECT COLUMNS() FROM Persons
SELECT COLUMNS(*) FROM Persons
SELECT COUNT(*) FROM Persons
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
You have a "Products" relation that contains information about products, including their prices. You want to find the products with a price greater than $100. What relational algebra operation would you use?
SELECT
PROJECT
JOIN
DIFFERENCE
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
SQL query to find the temperature in increasing order of all cities.
SELECT city FROM weather ORDER BY temperature
SELECT city, temperature FROM weather
SELECT city, temperature FROM weather ORDER BY temperature
SELECT city, temperature FROM weather ORDER BY city
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In a database, you have a "Sales" relation that contains information about sales transactions, including the salesperson's name. You want to find the distinct names of salespeople who made sales. What relational algebra operation would you use?
SELECT
PROJECT
UNION
DISTINCT
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
You have a "Students" relation that contains information about students, including their ages. You want to find the average age of all students. Which relational algebra operation would you use?
SELECT
PROJECT
AGGREGATE
JOIN
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
40 questions
Grade 6-Sistem Komputer
Quiz
•
6th Grade - University
43 questions
Data Structure and Algorithm
Quiz
•
University
36 questions
Тест 1. 4 неделя (10 минут)
Quiz
•
University
36 questions
MOC 20345 Test
Quiz
•
University
40 questions
UTS TLM APK KOMPUTER
Quiz
•
University
40 questions
SIMULASI DIGITAL - X
Quiz
•
KG - Professional Dev...
40 questions
PTS ASJ XII TKJ 2022/2023
Quiz
•
University
44 questions
Round 1 Code2duo
Quiz
•
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade