1. Which of the following is not a built in aggregate function in SQL?
Assignment for MSE+CIE-2

Quiz
•
Computers
•
University
•
Hard
Ritika Sharma
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
avg
max
total
count
2.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Observe the given SQL query and choose the correct option.
SELECT branch_name, COUNT (DISTINCT customer_name) FROM depositor, account WHERE depositor.account_number = account.account_number GROUP BY branch_id
a) The query is syntactically correct but gives the wrong answer
b) The query is syntactically wrong
c) The query is syntactically correct and gives the correct answer
d) The query contains one or more wrongly named clauses.
3.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
State true or false: We can rename the resulting attribute after the aggregation function has been applied
true
false
none
4.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What values does the count(*) function ignore?
a) Repetitive values
b) Null values
c) Characters
d) Integers
5.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Which of the following is a good database management practice?
a) Adding redundant attributes
b) Not specifying primary keys
c) Removing redundant attributes
d) None of the mentioned
6.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Which of the following command is used to obtain the structure of an Oracle table?
a) DESC TABLE [TableName].
b) STRUCTURE [TableName].
d) DESCRIBE STRUCTURE [TableName].
c) DESC [TableName].
7.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What would be printed when the following code is executed?
DECLARE x NUMBER;
BEGIN
x := 5;
x := 10;
dbms_output.put_line(-x);
dbms_output.put_line(+x);
x := -10;
dbms_output.put_line(-x);
dbms_output.put_line(+x);
END;
-10
10
10
-10
-10
10
-10
10
10
10
-10
-10
-5
10
10
-10
10
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
DBMS

Quiz
•
University
15 questions
PHP MySQL

Quiz
•
University
20 questions
PTS ADMINISTRASI SISTEM JARINGAN XII TKJ

Quiz
•
University
15 questions
Stored Procedure, Function & Packages

Quiz
•
University
15 questions
Engineering ACW Semester 2 - #2 Data

Quiz
•
University
17 questions
Bases de données et SQL

Quiz
•
University
20 questions
MongoDB คืออะไร

Quiz
•
10th Grade - Professi...
15 questions
DBMS

Quiz
•
University
Popular Resources on Quizizz
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