Beginning T-SQL Flashcards
What is T-SQL
It is Microsoft implementation of ANSI SQL.
How is T-SQL used?
It is used to extract or modify the data stored in a SQL Server database.
What are the 5 main components of T-SQL
Data Definition Language (DDL) Data Manipulation Language (DML) Data Control Language (DCL) Transaction Control Language (TCL) Control-of-flow statements
What is SQL Server?
It is Microsoft’s Relational Database Management System (RDBMS)
What is the purpose of and RDBMS?
It stores data in tables according to the relational model
What is a SQL Server Database?
It is a container that holds several types of objects in organized fashion
What does ERP means?
Enterprise Resource Planning System
Application vs ERP
Usually, and application uses one database; while an ERP uses one database for all enterprise applications in a coorporation.
What are the most common 10 objects in a database?
Table, Views, Stored Procedures, User-defined functions, Indexes, Constantes, Triggers, Types, Plan Builds, Sequences, Synonyms, Assemblies.
What is the purpose of a table?
It holds the data that we store and extract.
What is a View?
It is a stored query definition.
What is the purpose of a View?
To simplify writing T-SQL statements or to secure data access.
What is a Stored Procedure?
It is a Script that can include queries, DDL, statements to create/modify objects, and programming logic.
What type of data can a Store Procedure return?
Tabular data
What is a user-defined function?
It is similar to a store procedure, but they cannot affect anything outside of the function.