DBMS LAb Quiz II

DBMS LAb Quiz II

University

10 Qs

quiz-placeholder

Similar activities

ERP 1

ERP 1

University - Professional Development

15 Qs

IT 321 2nd Live Quiz

IT 321 2nd Live Quiz

University

15 Qs

WJEC ICT - Chapter 3 - Data loss, theft and manipulation

WJEC ICT - Chapter 3 - Data loss, theft and manipulation

10th Grade - University

11 Qs

9.1 Databases Cambridge IGCSE 0478

9.1 Databases Cambridge IGCSE 0478

10th Grade - University

10 Qs

Chapter 9 - Enterprise System

Chapter 9 - Enterprise System

University

9 Qs

Quiz-O-Tech Round 2

Quiz-O-Tech Round 2

University

10 Qs

I14quiz

I14quiz

University

14 Qs

SQL

SQL

University

10 Qs

DBMS LAb Quiz II

DBMS LAb Quiz II

Assessment

Quiz

Computers

University

Hard

Created by

Dr Surendra Kumar

Used 6+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

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’?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

2 mins • 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

3.

MULTIPLE CHOICE QUESTION

2 mins • 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

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

You have two relations, "Employees" and "Departments." The "Employees" relation contains employee information, and the "Departments" relation contains department information. You want to find all employees in the "HR" department. What relational algebra operation would you use

SELECT

PROJECT

JOIN

INTERSECT

5.

MULTIPLE CHOICE QUESTION

2 mins • 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 city FROM weather

SELECT humidity = 89 FROM weather

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following statement is true?

DELETE does not free the space containing the table and TRUNCATE free the space containing the table

Both DELETE and TRUNCATE free the space containing the table

Both DELETE and TRUNCATE does not free the space containing the table

DELETE free the space containing the table and TRUNCATE does not free the space containing the table

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

1.       A database contains a table named employees with columns employee_id, employee_name, and salary. A user initiates a transaction to increase the salary of all employees by 10%. Which SQL statement should be used to update the salary within the transaction?

UPDATE employees SET salary = salary * 1.10;

MODIFY employees SET salary = salary * 1.10;

ALTER employees SET salary = salary * 1.10;

CHANGE employees SET salary = salary * 1.10;

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?