DBMS Lab quizII

DBMS Lab quizII

University

10 Qs

quiz-placeholder

Similar activities

ROBOT DESIGN

ROBOT DESIGN

University

10 Qs

Week6-ERD-2

Week6-ERD-2

University

13 Qs

Chapter 5: Hardware Security Controls

Chapter 5: Hardware Security Controls

University

10 Qs

DBMS LAb Quiz II

DBMS LAb Quiz II

University

10 Qs

@tbinh1768/TIN ĐS HK1

@tbinh1768/TIN ĐS HK1

11th Grade - University

11 Qs

Câu hỏi về SQL

Câu hỏi về SQL

11th Grade - University

12 Qs

SQL - Constraints

SQL - Constraints

University

15 Qs

X-Quiz #5

X-Quiz #5

University

10 Qs

DBMS Lab quizII

DBMS Lab quizII

Assessment

Quiz

Computers

University

Hard

Created by

Abhinav Malviya

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 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

30 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

30 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

30 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

30 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

30 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

30 sec • 1 pt

SQL query to find all the cities whose humidity is 95.

SELECT city WHERE humidity = 95

SELECT city FROM weather WHERE humidity = 95

SELECT humidity = 89 FROM weather

SELECT city FROM weather

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?