- Data = unprocessed or meaningless fact.
- Information = processend & meaningfull fact.
- Data is a collection of facts, while information puts those facts into context.
- Collection of similar/related data
- Database Management Systems (DBMS) are software systems used to store, retrieve, and run queries on data.In short the tool or software where we can make stucture, table of database.
- will add later.
- Will add later.
- Field - column
- Record - row
- Value (data)
-
Key Field : Key field is the unique field in the table (eg: Roll, Name, Gender)

- Primary Key : The field that helps to identify each record separately is called primary key field(eg: 101, 102 are identifical so Roll is primary key. )
- Composite key: When primary key is not enough to identify a record. Then we need to multiple key field to identify a record. These are composite key.
- Foreing key: When a primary key of a table becomes normal key of another table it is called foreing key of that table. A table can consist multiple foreign keys. Foreign key created relation between two tables.
- CREATE DATABASE
- UPDATE DATBASE
- BACKUP AND RECOVERY DATABASE
- SAVE DATA
- RETRIEVE DATA
- DELETE DATA
- SECURE DATA etc.
- Relation among tables.There must be atleast one common field with same data type and field size and also atleast one table needs to have primary key to create relation among tables. In short, RDMS connects two or more tables and helps to transfer data among them.
Obserbation: Consider a single database as a table and RDBMS as the collection of tables those have relation or connection among them.
- When a row in a table is related to only one role in another table and vice versa,we say that is a one to one relationship .This relationship can be created using Primary key constraints.
Note: To create this realtion, a common primary key is needed in both tables.
More Details:
- This is where a row from one table can have multiple matching rows in another table this relationship is defined as a one to many relationship. This type of relationship can be created using Primary key-Foreign key relationship. In sort, Relation among one record of a table with multiple record of another table.
- A row from one table can have multiple matching rows in another table, and a row in the other table can also have multiple matching rows in the first table this relationship is defined as a many to many relationship.
- This type of relationship can be created using a third table called “Junction table” or “Bridging table”. This Junction or Bridging table can be assumed as a place where attributes of the relationships between two lists of entities are stored.
- Both primary key of two tables become the foreing key of junction table.
This kind of Relationship, allows a junction or bridging table as a connection for the two tables.

Another Example:
- Organizing records of a database according to a specific field.
- Sorting creates separate data file.
- After adding new records,it doesn't sort automatically. Hence, sorting is required after each changes and it comparatively takes time for continuous sorting.
- Indexing doesn't change main table. The changes will be filled in index file.
- Index file doesn't contain any record.It contains only logical order for ascending or descending.
- As it doesn't contain records like sorting. Therefore, it takes less memory.
- Adding new data, will be indexed automatically.Serial number of main data file or table will not change.
More details:
- Database encryption is a critical security measure that protects sensitive data from unauthorised access or tampering.
- Data encription is a part of data security
- Encryption is a process to change the form of any message in order to protect it from reading by anyone.
- Types of data encryption-
- Symmetric-key encryption : the message is encrypted by using a key and the same key is used to decrypt the message which makes it easy to use but less secure.
- Asymmetric Key Encryption: Asymmetric Key Encryption is based on public and private key encryption techniques. It uses two different key to encrypt and decrypt the message. It is more secure than the symmetric key encryption technique but is much slower.
- Difference between Symmetric-key encryption and asymmetric key encription
| Symmetric Key Encryption | Asymmetric Key Encryption |
|---|---|
| It only requires a single key for both encryption and decryption. | It requires two keys, a public key and a private key, one to encrypt and the other one to decrypt. |
| Security is less as only one key is used for both encryption and decryption purpose. | It is more secure as two keys are used here- one for encryption and the other for decryption. |
| The size of cipher text is the same or smaller than the original plain text. | The size of cipher text is the same or larger than the original plain text |
| The encryption process is very fast. | The encryption process is slow. |
| It is used when a large amount of data is required to transfer. | It is used to transfer small amounts of data. |
| It is efficient as it is used for handling large amount of data. | It is comparatively less efficient as it can handle a small amount of data. |
| It only provides confidentiality. | It provides confidentiality, authenticity, and non-repudiation. |
| The length of key used is 128 or 256 bits | The length of key used is 2048 or higher |
Resource: Link
- will add later.
-
the language we use for query is called query language
-
Type of Query language-
- QUEL (Query language)
- QBE (query by example)
- SQL (structured query language)
-
About SQL
- It is not case sencitive.
- Every line is considered as statement which ens with semicolon.
- Type of SQL statement:
- DML statement : Select, insert , update, delete (record)
- DDL statement : create, Alter (change) , Drop (delete table/database)
- DCL
- DTL
-
DBMS = Data Base Management System DBMS = DB +MS
-
A database management system (DBMS) is a software that enables users to create and maintain a database.
some examples of popular DBMS are MySql, Oracle, Sybase, Microsoft Access and IBM DB2 etc.
- SQL is a query programming language that manages RDBMS. MySQL is a relational database management system that uses SQL














