ITEC36 FINALS Flashcards

1
Q

It is a computer language for storing, manipulating and retrieving data stored in a relational database.

A

SQL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

It the standard language for Relational Database System.

A

SQL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

It consists of the SQL commands that can be used to define the database schema.

A

DDL or Data Manipulation Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Creates a new table, a view of a table, or other object in the database.

A

Create

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Modifies an existing database object, such as a table.

A

Alter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Deletes an entire table, a view of a table or other objects in the database.

A

Drop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

It deals with the manipulation of data present in the database.

A

DML or Data Manipulation Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Retrieves certain records from one or more tables.

A

Select

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Creates a record.

A

Insert

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Modifies records.

A

Update

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Delete records.

A

Delete

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

It deals with the rights, permissions and other controls of the database system.

A

DCL or Data Control Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Gives a privilege to user.

A

Grant

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Takes back privileges granted from user.

A

Revoke

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

It deals with the transaction within the database.

A

TCL or Transaction Control Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

commits a Transaction.

A

Commit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

rollbacks a transaction in case of any error occurs.

A

Rollback

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

sets a savepoint within a transaction.

A

Savepoint

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

specify characteristics for the transaction.

A

Set Transaction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

It is an attribute that specifies the type of data of any object.

A

Data type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Specifies character type data of length n where n could be any value from 0 to 255.

A

CHAR (n)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Specifies character type data of length ‘n’ where n could be any value from 0 to 65535

A

VARCHAR (n)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

specifies an integer value.

24
Q

Holds numbers with decimal points. Each _____ value occupies 4 bytes.

25
is used for dates in 'YYYY-MM-DD' format. YYYY is the 4 digit year, MM is the 2 digit month and DD is the 2 digit date. The supported range is '1000-01-01' to '9999-12-31'.
DATE
26
These are the rules enforced on data columns on a table. These are used to limit the type of data that can go into a table.
Constraints
27
Ensures that a column cannot have a NULL value.
NOT NULL
28
Provides a default value for a column when none is specified.
DEFAULT
29
Ensures that all the values in a column are different.
UNIQUE
30
Uniquely identifies each row/record in a database table.
PRIMARY key
31
Uniquely identifies a row/record in any another database table.
FOREIGN key
32
It is used to create a new SQL database.
SQL CREATE DATABASE
33
It is used to drop an existing database in SQL schema.
SQL DROP DATABASE
34
is the keyword telling the database system what you want to do.
CREATE TABLE
35
is used to remove a table definition and all the data, indexes, triggers, constraints and permission specifications for that table.
DROP TABLE
36
These are sets of instruction written in a language that can be understood by the database system.
Queries
37
What the purpose of the query is.
Action
38
Which table or tables the action will be performed on.
Location
39
What columns rows and data will be affected.
WHERE
40
It is used to fetch the data from a database table which returns this data in the form of a result table.
SQL SELECT
41
specifies the columns to be displayed.
SELECT Clause
42
specifies the table containing the columns that are listed in the SELECT Clause
FROM Clause
43
It can be used to select all the available columns and records from a table.
Asterisk (*)
44
It is used to specify a condition while fetching the data from a single table or by joining with multiple tables.
SQL WHERE Clause
45
It is used to modify the existing records in a table.
SQL UPDATE Query
46
It is used to delete the existing records from a table.
SQL DELETE Query
47
It can perform arithmetical operations on numeric operands involved.
Arithmetic Operators
48
It is used to override the default precedence or to clarify the statement.
Parenthesis ()
49
Renames a column heading
Alias
50
These are used in conditions that compare one expression to another or expression.
Comparison Conditions
51
Search for a pattern.
LIKE
52
If you know to exact value you want to return for at least one of the columns.
IN
53
Contain NULL value.
IS NULL
54
Return columns with value.
IS NOT NULL
55
It combines the result of two component conditions to produce a single result based on those conditions, or it inverts the result of a single condition.
Logical Conditions
56
A keyword used to sort the result-set in ascending or descending order.
ORDER BY
57
It is a database design technique that reduces data redundancy and eliminates undesirable characteristics like Insertion, Update and Deletion Anomalies.
Normalization