SQL Flashcards
An organized collection of data or information
Database
A set of computer programs for organizing the information in a database
Database Management System
A DBMS provides tools for data input, storage, retrieval and manipulation
x
Where are Database applications
everywhere from Banking, online ticket booking, online retailer, etc
What does DBMS do?
DBMS controls all functions of capturing, processing, storing, retrieving data and generates various forms of data output
Data is organized in
tables
Table contains
rows and columns
Tables can be related to one another through common values called
Keys
Uniquely identifies each row of the table
Primary Key
Column in one table that serves as a primary key in another
Foreign Key
What are different types of relationship exist
One to One, One to Many, Many to Many
A set of rules to help designers to reduce redundancy and avoid data update anomalies
Normalization
Entity and Attributes
X
Language for accessing and manipulating the data
DML
Language for Create, Alter, Drop, Truncate, Comment and Rename
DDL
DDL stands for
Data Definition Language
Which language is used for the control of data
Data Control Language DCL
What operations can you perform using DCL
Grant and Revoke
What are transaction control statements
Commit, Rollback, Savepoint
Restore database to original from the last COMMIT
Rollback
Save work done
Commit
Data Types in SQL
Character, Varchar, Boolean, Integer, Float, Date, Time, Timestamp
Fixed width character string
Char