Computer Knowledge
Computer Knowledge
Computer Knowledge
For storing information about stock, sales, and purchases of financial instruments like
Finance
stocks and bonds.
It is used for the management of supply chain and for tracking production of items.
Manufacturing
Inventories status in warehouses.
Design to fulfill the need for small and It is only limited to smaller DBMS
large businesses system.
Remove redundancy and Integrity Redundancy and Integrity issues
Expensive. But in the long term Total
It's cheaper
Cost of Ownership is cheap
Easy to implement complicated No support for complicated
transactions transactions
DDL & DML - LANGUAGES Of DBMS
SQL language- Divided in DDL AND DML
DDL – DATA DEFINITION LANGUAGE
DDL is Data Definition Language and is used to define the structures like schema,
database, tables, constraints etc. Examples of DDL are create and alter statements.
Types of Keys:
Primary Key - is a column or group of columns in a table that uniquely identify every row in
that table. ATTRIBUTES- UNIQUELY IDENTIFY
Candidate Key - is a set of attributes that uniquely identify tuples in a table. Candidate Key
is a super key with no repeated attributes. MULTIPLE ATTRIBUTES
KEYS IN DBMS
Types of Keys:
Alternate Key - is a column or group of columns in a table that uniquely identify every row in that
table.
Foreign Key - is a column that creates a relationship between two tables. The purpose of Foreign
keys is to maintain data integrity and allow navigation between two different instances of an entity.
Compound Key - has two or more attributes that allow you to uniquely recognize a specific record.
It is possible that each column may not be unique by itself within the database.
Composite Key - An artificial key which aims to uniquely identify each record is called a surrogate
key. These kind of key are unique because they are created when you don't have any natural
primary key.
Surrogate Key - An artificial key which aims to uniquely identify each record is called a surrogate
key. These kind of key are unique because they are created when you don't have any natural
primary key.