Beginning T-SQL Flashcards

1
Q

What is T-SQL

A

It is Microsoft implementation of ANSI SQL.

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

How is T-SQL used?

A

It is used to extract or modify the data stored in a SQL Server database.

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

What are the 5 main components of T-SQL

A
Data Definition Language (DDL)
Data Manipulation Language (DML)
Data Control Language (DCL)
Transaction Control Language (TCL)
Control-of-flow statements
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is SQL Server?

A

It is Microsoft’s Relational Database Management System (RDBMS)

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

What is the purpose of and RDBMS?

A

It stores data in tables according to the relational model

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

What is a SQL Server Database?

A

It is a container that holds several types of objects in organized fashion

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

What does ERP means?

A

Enterprise Resource Planning System

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

Application vs ERP

A

Usually, and application uses one database; while an ERP uses one database for all enterprise applications in a coorporation.

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

What are the most common 10 objects in a database?

A

Table, Views, Stored Procedures, User-defined functions, Indexes, Constantes, Triggers, Types, Plan Builds, Sequences, Synonyms, Assemblies.

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

What is the purpose of a table?

A

It holds the data that we store and extract.

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

What is a View?

A

It is a stored query definition.

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

What is the purpose of a View?

A

To simplify writing T-SQL statements or to secure data access.

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

What is a Stored Procedure?

A

It is a Script that can include queries, DDL, statements to create/modify objects, and programming logic.

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

What type of data can a Store Procedure return?

A

Tabular data

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

What is a user-defined function?

A

It is similar to a store procedure, but they cannot affect anything outside of the function.

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

What type of data can a User-Defined Function return?

A

Tabular Data or a Single Value

17
Q

What is an Index?

A

It is a structure that assists the database engine when locating rows.

18
Q

What are Constraints?

A

Rules controlling the behavior of tables and columns, and the data that can be stored in a column.

19
Q

What are Triggers?

A

It is a special type of stored procedure that fires when something happens in the database.

20
Q

What are two examples that can activate a trigger?

A

When a record is inserted

When an object is created

21
Q

What is a Type?

A

Each columns in a db has rules of what type of data it can contain

22
Q

What are Plan Guides?

A

It is an advanced feature that overrites the SQL Server behavior for a particular query.

23
Q

What are Sequences?

A

They are containers holding incrementing numbers

24
Q

What are Synonyms?

A

They are Nicknames or Aliases for database objects

25
Q

What are Assemblies?

A

They are referenced to database objects created in a .Net language using CLR Integrations.

26
Q

What is CLR Integration?

A

Common Language Runtime (CLR) Integration

27
Q

Normalization

A

It is a set of Rules and Principles that can be applied to a relational table to have Efficient use of Disk Space and Efficient Manipulation of Data.