SQL1 Flashcards
Database Query?
Is an inquiry into the database that returns information back from the database.
Database?
Is an organized collection of data, typically stored in electronic format. It allows you to input, organized, and retrieve data quickly.
An index?
Is a data structure that improves the speed of data retrieval operation on a database table.
Pro-retrieval speed
Con-created and updated,disk space
Three type of SQL files?
Primary-.mdf
Tables,views,system tables
2nd-.ndf
Transaction log-.ldf
Database Management System (DBMS)?
A collection of programs that enable you to enter, organize, and select data in a database.
Three type of database?
Flat-type database
Hierarchical database
Relational database
Flat-type database?
Plain-text formats
Hierarchical database?
A tree structure (family tree)
Each child can have ONLY one parent
XML : extensible markup language
Relational database?
Data is stored in tables and any new information is automatically added into the table without the need to reorganize the table itself.
Multiple parents
Two categories of database objects?
Storage
Programmability
Constraints?
Limitations or rules place on a field or column to ensure that data that is considered invalid is not entered.
A variety of SQL constrains?
A unique constraint: no duplicate
A check constraint: limit data type
A default constraint: insert default value
A not null constraint: no blank allowed
Primary key constraint: uniquely identifies, cannot contain NULL
A foreign key constraint: point to primary key
SQL Server Management Studio (SSMS), the Query Analyzer supports?
XQuery: a query and functional programming language
SQLCMD: a command-line application
Transact-SQL: the primary means of programming and managing SQL Server.
Type of SQL commands?
Data Definition Language (DDL) Data Manipulation Language (DML) Data Query Language (DQL) Data Control Language(DCL) Data Administration Commands Transactional Control commands
Data Definition Language (DDL)?
Use Create Alter Drop Truncate ( free the space) Delete