SQL_T3

SQL_T3

University

41 Qs

quiz-placeholder

Similar activities

Midterm Examination-Infoman 2

Midterm Examination-Infoman 2

University

45 Qs

Syber mid1

Syber mid1

University

46 Qs

SQL Mastery Challenge

SQL Mastery Challenge

University

40 Qs

MSSDF Module 8

MSSDF Module 8

10th Grade - University

40 Qs

Mongo DB NoSQL

Mongo DB NoSQL

University

44 Qs

Remidi Quiz 2_BDT_3&4

Remidi Quiz 2_BDT_3&4

University

40 Qs

Quiz Informatika Kelas XI

Quiz Informatika Kelas XI

11th Grade - University

40 Qs

PL/SQL Advanced knowledge

PL/SQL Advanced knowledge

University

37 Qs

SQL_T3

SQL_T3

Assessment

Quiz

Computers

University

Medium

Created by

Riddhish Thakore

Used 5+ times

FREE Resource

41 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following statements contains an error?
Select * from emp where empid = 10003;
Select empid from emp where empid = 10006;
Select empid from emp;
Select empid where empid = 1009 and lastname = ‘GELLER’;

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which logical operator in PostgreSQL negates a condition and returns true if the condition is false?
AND
OR
NOT
JOIN

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the pattern 'j%' in the expression FirstName LIKE 'j%' represent?
Records whose FirstName starts with 'j'
Records whose FirstName contains 'j' or 'J' at any position
Records whose FirstName ends with 'j' or 'J'
Records whose FirstName is not 'j' or 'J'

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

If you don’t specify ASC or DESC after a SQL ORDER BY clause, the following is used by default
ASC
DESC
There is no default value
None of the mentioned

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The ORDER BY clause in PostgreSQL is used to:
Filter rows based on specific conditions.
Group rows based on one or more columns.
Sort the result set based on one or more columns.
Specify the order of columns in the result set.

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

With SQL, how can you return all the records from a table named “Persons” sorted descending by “FirstName”?
SELECT * FROM Persons SORT BY ‘FirstName’ DESC;
SELECT * FROM Persons ORDER FirstName DESC;
SELECT * FROM Persons SORT ‘FirstName’ DESC;
SELECT * FROM Persons ORDER BY FirstName DESC;

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the significance of “ORDER BY” in the following PostgreSQL statement? SELECT emp_id, fname, lname FROM person ORDER BY emp_id;
Data of emp_id will be sorted in ascending order
Data of emp_id will be sorted in descending order
Data will not be sorted
None of these

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?