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
DBMS LAb Quiz II
Quiz
•
Computers
•
University
•
Hard
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;
7 questions
Software Engineering Pt. 1
Quiz
•
University
11 questions
WJEC ICT - Chapter 3 - Data loss, theft and manipulation
Quiz
•
10th Grade - University
12 questions
IntroToDatabases W2
Quiz
•
University
11 questions
SCM and Logistics
Quiz
•
University
11 questions
@tbinh1768/TIN ĐS HK1
Quiz
•
11th Grade - University
10 questions
SYS 1591
Quiz
•
University
10 questions
DBMS Lab Quiz 1 2B3
Quiz
•
University
15 questions
ERP 1
Quiz
•
University - Professi...
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade