Postgree SQL Day-1

Postgree SQL Day-1

Professional Development

25 Qs

quiz-placeholder

Similar activities

Quiz - Data Analytic Projects

Quiz - Data Analytic Projects

Professional Development

20 Qs

Whistle-Blowing Policy

Whistle-Blowing Policy

Professional Development

20 Qs

awep-2

awep-2

Professional Development

20 Qs

YLA Bronze Retake Exam

YLA Bronze Retake Exam

Professional Development

23 Qs

Review of Week 1

Review of Week 1

Professional Development

25 Qs

Bengkel QIT 2022

Bengkel QIT 2022

Professional Development

20 Qs

Round 1

Round 1

Professional Development

25 Qs

Security + (SY0-501) Domain 4

Security + (SY0-501) Domain 4

Professional Development

27 Qs

Postgree SQL Day-1

Postgree SQL Day-1

Assessment

Quiz

Other

Professional Development

Medium

Created by

swaas 3

Used 2+ times

FREE Resource

25 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Which SQL statement is used to select all records from a table named 'CUSTOMERS'?(ANSWER MUST BE WRITTEN IN CAPITAL LETTERS ONLY, NOT IN SMALL LETTERS)

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Filter records using WHERE

Retrieves EMPLOYEES who work in the IT DEPARMENT?(ANSWER MUST BE WRITTEN IN CAPITAL LETTERS ONLY, NOT IN SMALL LETTERS)

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Use LIKE for pattern matching

Finds CUSTOMERS whose CUSTOMERNAME start with "A".(ANSWER MUST BE WRITTEN IN CAPITAL LETTERS ONLY, NOT IN SMALL LETTERS)

4.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

Lists PRODUCTS ordered by PRICE in descending order.(ANSWER MUST BE WRITTEN IN CAPITAL LETTERS ONLY, NOT IN SMALL LETTERS and SPACE)

5.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

Aggregate function with GROUP BY

Write a SQL query to COUNT THE NUMBER OF EMPLOYEES IN EACH DEPARTMENT and name the count column as TOTALEMPLOYEES (THE ANSWER MUST BE WRITTEN IN CAPITAL LETTERS ONLY, NO SMALL LETTERS).

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Delete a record

Deletes the PRODUCTNAME "PEPSI" from the PRODUCTS table.(ANSWER MUST BE WRITTEN IN CAPITAL LETTERS ONLY, NOT IN SMALL LETTERS)

7.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

Write a query to retrieve employee names and their department names.(ANSWER MUST BE WRITTEN IN CAPITAL LETTERS ONLY, NOT IN SMALL LETTERS)

Tables:

  • EMPLOYEES E(EMPLOYEEID, NAME, DEPARTMENTID)

    • DEPARTMENTS D(DEPARTMENTID, DEPARTMENTNAME)

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?