wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

SQL-Basics-SET-1

Total questions: 25

Worksheet time: 25mins

Name
Class
Date
1.

Which of the following cannot be done using SQL?

a)

Insert records into a Database

b)

Retrieve data from a Database

c)

Delete records from a Database

d)

Update multiple tables of a Database

2.

Which of the following terms represents a COLUMN of a Database table?

a)

Attribute, Field

b)

Field, Record

c)

Tuple, Record

d)

Tuple, Attribute

3.

Which of the following terms represents a ROW of a Database table?

a)

Field, Record

b)

Attribute, Field

c)

Tuple, Attribute

d)

Tuple, Record

4.

RDBMS stands for _______

a)

Relative Database Management System

b)

Related Database Management System

c)

Relational Database Management System

d)

Relative Database Management System

5.

The data in RDBMS is stored in ______

a)

Database Object

b)

SQL Object

c)

SQL Server

d)

Database server

6.

Which of the following is not true about tables?

a)

It is a Database Object

b)

It is a collection of irrelevant data entries

c)

It consists of Fields known as Columns

d)

It consists of Records known as Rows

7.

Where the specific information about every record of a table is stored?

(a)  

8.

What is a Record?

a)

A record is a Vertical entity

b)

A record is each individual entry that exists in a table

c)

A record is an entity that contains all information associated with the fields of a table

d)

A record is a column

9.

SQL keywords are case sensitive

a)

True

b)

False

10.

Which character is used to separate SQL statements in database systems?

a)

: (colon)

b)

; (Semi-colon)

c)

_ (underscore)

d)

% (percentage)

11.

Which of the following SQL command(s) retrieves information from a Database?

a)

Update

b)

Extract

c)

Select

d)

Retrieve

12.

Using which command one can delete existing data from database without deleting the table?

a)

Drop

b)

Delete

c)

Remove

d)

Collapse

13.

Which SQL command is used to modify data in a Database?

a)

Modify

b)

Change

c)

Save

d)

Update

14.

To insert new data into a database, which of the following SQL command is used?

a)

Insert

b)

Insert Into

c)

Update

d)

Add New

15.

Which command is used to eliminate a table from a database?

a)

Drop

b)

Delete

c)

Remove

d)

Eliminate

16.

Which of the following is used to modify an existing table?

a)

Alter

b)

Alter Table

c)

Modify

d)

Update

17.

Which of the following is a valid SQL command for an Index?

a)

Create Index

b)

Change Index

c)

Add Index

d)

Remove Index

18.

Which character in the select clause denotes “ALL ATTRIBUTES”?

a)
  • +

b)

%

c)

*

d)

_

19.

Which type of index is automatically created by the database management system to enforce the PRIMARY KEY constraint?

a)

Clustered index

b)

Non-clustered index

c)

Unique index

d)


Composite index

20.

What is a transaction in SQL?

a)


A set of operations that are executed as a single unit of work

b)

A temporary storage area used for intermediate data processing

c)

A constraint that ensures data integrity

d)

A function that calculates aggregate values

21.

What is the purpose of a rollback in SQL?

a)

To commit the changes made by a transaction

b)

To save the changes made by a transaction

c)

To undo the changes made by a transaction

d)

To finalize the changes made by a transaction

22.

What is the purpose of a savepoint in SQL transactions?

a)


To rollback the entire transaction

b)

To mark a point within a transaction to which you can later roll back

c)

To commit the changes made by a transaction

d)

To finalize the changes made by a transaction

23.

Which SQL statement is used to begin a transaction?

a)

BEGIN TRANSACTION

b)

START TRANSACTION

c)


INITIATE TRANSACTION

d)

TRANSACTION BEGIN

24.

What does the SQL acronym CRUD stand for?

a)

Create, Read, Update, Destroy

b)


Create, Read, Update, Delete

c)

Copy, Read, Update, Delete

d)

Construct, Retrieve, Update, Delete

25.

Which SQL statement is used to update existing data in a table?

a)

MODIFY

b)

ALTER

c)

UPDATE

d)

CHANGE