Constraints in SQL

Constraints in SQL

University

20 Qs

quiz-placeholder

Similar activities

Veritabanı

Veritabanı

University

20 Qs

POST-TEST MODUL 1 APSI

POST-TEST MODUL 1 APSI

University

15 Qs

DBMS

DBMS

University

20 Qs

SQL Quiz

SQL Quiz

University

19 Qs

DBMS LAB_06_12_2022_ BATCH 2 4

DBMS LAB_06_12_2022_ BATCH 2 4

University

20 Qs

SQL - Constraints

SQL - Constraints

University

15 Qs

DDL and Constraints

DDL and Constraints

University

15 Qs

3Q-L3&4: CREATING AND MODIFYING TABLES

3Q-L3&4: CREATING AND MODIFYING TABLES

4th Grade - University

15 Qs

Constraints in SQL

Constraints in SQL

Assessment

Quiz

Computers

University

Medium

Created by

ALDO STALIN J L

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the ALTER TABLE clause do?

The SQL ALTER TABLE clause modifies a table definition by altering, adding, or deleting table columns and/or constraints

The SQL ALTER TABLE clause is used to insert data into database table

THE SQL ALTER TABLE deletes data from database table

The SQL ALTER TABLE clause is used to delete a database table

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Correct syntax query syntax to drop a column from a table is

DELETE COLUMN column_name;

DROP COLUMN column_name;

ALTER TABLE table_name DROP COLUMN column_name;

None is correct.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

SQL has how many main commands for DDL:

1

2

3

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used for removing a table and all its data from the database:

Create command

Drop table command

Alter table command

All of the mentioned

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following language is used to specify database Schema ?

DDL

DML

DCL

None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

With SQL, how can you insert a new record into the "Persons" table?
INSERT INTO Persons VALUES ('Jimmy', 'Jackson')  
INSERT ('Jimmy', 'Jackson') INTO Persons
INSERT VALUES ('Jimmy', 'Jackson') INTO Persons
INSERT VALUES ('Jimmy, Jackson') INTO Persons
INSERT ('Jimmy', 'Jackson') VALUES into Persons

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a type of SQL constraint?

Primary Key

Foreign Key

Alternate Key

Unique

NOT NULL

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?