SQL_T3

SQL_T3

University

41 Qs

quiz-placeholder

Similar activities

CompTIA Security+ SY0-601 Chapters 9 - 12

CompTIA Security+ SY0-601 Chapters 9 - 12

University

40 Qs

Midterm Examination-Infoman 2

Midterm Examination-Infoman 2

University

45 Qs

Principios de Banco de Dados

Principios de Banco de Dados

University

40 Qs

Quiz ( SIL )

Quiz ( SIL )

University

45 Qs

DBMS MCA 11 Quiz 1

DBMS MCA 11 Quiz 1

University

44 Qs

Ujian Tengah Semester Basis Data Semester 2

Ujian Tengah Semester Basis Data Semester 2

University

39 Qs

SQL Mastery Challenge

SQL Mastery Challenge

University

40 Qs

Mongo DB NoSQL

Mongo DB NoSQL

University

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