УПР 31-60

УПР 31-60

University

30 Qs

quiz-placeholder

Similar activities

CNTT NÂNG CAO - P3 MÔ ĐUN 07 – XỬ LÝ VĂN BẢN NÂNG CAO

CNTT NÂNG CAO - P3 MÔ ĐUN 07 – XỬ LÝ VĂN BẢN NÂNG CAO

University

27 Qs

Web Development Framework Quiz

Web Development Framework Quiz

University

30 Qs

Quiz sobre SaaS e Padrões de Projeto

Quiz sobre SaaS e Padrões de Projeto

University

32 Qs

SQL Basics Quiz

SQL Basics Quiz

University

25 Qs

SQL Functions and Joins Quiz

SQL Functions and Joins Quiz

University

32 Qs

Database Concepts Quiz

Database Concepts Quiz

University

30 Qs

HIT 134 Final Exam Mock-Test

HIT 134 Final Exam Mock-Test

University

29 Qs

Бақжан

Бақжан

University

25 Qs

УПР 31-60

УПР 31-60

Assessment

Quiz

Information Technology (IT)

University

Easy

Created by

Нұрдәулет Қазбеков

Used 4+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a foreign key in a relational database?

To increase query speed

To enforce referential integrity between tables

To store unique values only

To generate primary keys automatically

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which postgresql command is used to permanently delete a table and all its data?

DROP TABLE table_name;

DELETE FROM table_name;

REMOVE TABLE table_name;

TRUNCATE TABLE table_name;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You need to update multiple rows in a postgresql table at once Which SQL statement should you use?

ALTER TABLE

INSERT INTO

UPDATE table_name SET column_name = value WHERE condition

MODIFY TABLE

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function of the GROUP BY clause in SQL?

It groups rows with the same values in specified columns for aggregate functions

It filters results based on a given condition

It sorts records in descending order

It creates a backup of grouped rows

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you prevent duplicate records in a postgresql table column?

By using a FOREIGN KEY constraint

By enabling indexing on the column

By defining the column as UNIQUE

By using the AUTO_INCREMENT property

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a key difference between the DELETE and TRUNCATE commands in postgresql?

DELETE allows filtering with WHERE, while TRUNCATE removes all rows instantly

TRUNCATE removes specific rows based on conditions

DELETE is faster than TRUNCATE

TRUNCATE locks the database permanently

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL function is used to return the number of rows in a table?

SUM()

AVG()

COUNT()

LENGTH()

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?