
ADVANCED DATABASE SYSTEMS EXAM

Quiz
•
Information Technology (IT)
•
University
•
Medium
ARLENE QUICAY
Used 8+ times
FREE Resource
33 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which SQL command is used to update a student's email address in the Students table?
UPDATE Students SET Email = 'new@uni.edu' WHERE StudentID = 1;
SELECT Email FROM Students WHERE StudentID = 1;
ALTER Students SET Email = 'new@uni.edu' WHERE StudentID = 1;
INSERT INTO Students (Email) VALUES ('new@uni.edu');
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
You want to create a table for courses offered in the current semester. Which is correct?
CREATE TABLE Courses (CourseID INT, CourseName VARCHAR(100), Credits INT);
CREATE TABLE Courses (CourseID INT, CourseName VARCHAR(100), Credits INT(5,2));
CREATE TABLE Courses (CourseID, CourseName, Credits);
CREATE TABLE Courses (CourseID INT, CourseName TEXT(100), Credits INT);
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To ensure each enrolled student is a valid student, which constraint is appropriate?
CHECK
PRIMARY KEY
FOREIGN KEY
NOT NULL
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
You want to count students per course and display those with more than 10. What query should you use?
SELECT CourseID, COUNT(StudentID) FROM Enrollments GROUP BY CourseID HAVING COUNT(StudentID) > 10;
SELECT COUNT(StudentID), CourseID FROM Enrollments GROUP HAVING COUNT > 10;
SELECT CourseID, COUNT(StudentID) FROM Enrollments WHERE COUNT(StudentID) > 10;
SELECT CourseID FROM Enrollments GROUP BY CourseID WHERE COUNT(StudentID) > 10;
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which function would format the EnrollmentDate as "April 05, 2023"?
FORMAT(EnrollmentDate, 'MMMM dd, yyyy')
FORMAT(EnrollmentDate, 'mmmm dd, yyyy')
FORMAT(EnrollmentDate, 'yyyy/MM/dd')
FORMAT(EnrollmentDate, ' MMMM dddd, yyyy')
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
How do you find students enrolled in the last 30 days?
SELECT * FROM Students WHERE EnrollmentDate <= DATEADD(DAY, -30, GETDATE());
SELECT * FROM Students WHERE EnrollmentDate >= DATEADD(DAY, -30, GETDATE());
SELECT * FROM Students WHERE EnrollmentDate = GETDATE();
SELECT * FROM Students WHERE EnrollmentDate < GETDATE();
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
A database administrator needs to update the status of one specific student record. However, the UPDATE statement is written without a WHERE clause. What is the most likely outcome of executing this command?
No rows in the table will be affected
An error will occur because a condition is required
All records in the Students table will have their values updated
Only records with NULL values in the updated column will be changed
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
УПР 31-60

Quiz
•
University
30 questions
handbook

Quiz
•
University
31 questions
Level 3 Final Exam Review 1

Quiz
•
University
38 questions
Quiz sur Apollo GraphQL

Quiz
•
University
30 questions
Comp 4 Quiz 1

Quiz
•
University
30 questions
Quiz 1 Mobile Application Development 1

Quiz
•
University
35 questions
Lenguaje estructurado de consultas

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Information Technology (IT)
15 questions
Disney Trivia

Quiz
•
University
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University
20 questions
Disney Trivia

Quiz
•
University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
5 questions
Examining Theme

Interactive video
•
4th Grade - University
23 questions
Lab 4: Quizziz Questions

Quiz
•
University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University