You can correct me if I'm wrong or just tell what to add.
I'd be very grateful.
01. Data and Database
02. Database and Table Statements
03. Data and Database
- Data is a collection of facts, figures and values from different source.
- DB is a collection of logically related data in a specific subject area that is structured in a specific way.
- If data in a database is not logically related, it can lead to several issues.
-
Relational Database (RDB)
- stores and provides access to data points that are related to one another.
-
Object-Oriented Database (OPDB)
- based on the principles of object-oriented programming (OOP).
- Main components:
- Objects - represent real-world entities
- Classes - act as a template for creating object
- Inheritance - an inherit attributes and methods
- Methods - represent the behaviors or actions
- Attributes - hold properties of an object
- Encapsulation - binds data atributes and methods
- Polymorphism - helps in write generic reusable code
- Persistence - objects continuing to exit
- Identity - objects is as assinged unique identifier
- Transactions - provide reability with features
- based on the principles of object-oriented programming (OOP).
- Graph Database (GDB)
- uses graph structures for semantic queries with nodes, edges and properties to represent and store data.
-
Centralized Database (CDB)
- is located, stored and maintained in a single location.
-
Cloud Database
- is deployed, delivered and accessed in the cloud.
-
NoSQL Database (Not Only SQL)
- is purpose-built for non-relational data models.
-
Others
- there are many different types and systems.
-
DBMS is a software system that is used to manage databases.
-
It provides a way to create, store, retrieve, update, and manage data efficiently and securely.
-
Examples:
- MySQL
- PostgreSQL
- Oracle Database
- Microsoft SQL Server
- MongoDB - a NoSQL DBMS
- SQLite
- Redis - for in-memory data storage
- Cassandra - for distributed, NoSQL databases
- Table is a collection of data in a tabular form.
- Tuple is a row in a table.
- Attribute is a column in a table.
- SQL lets you to access and manipulate databases.
- Examples:
- Execute queries against a database.
- Retrieve data from a database.
- Insert records in a database.
- Update records in database.
- Delete records in database.
- Create new databases.
- Create new tables in a database.
- Create stored procedures in a database.
- Create views in a database.
- Set a permission on tables, procedures and views.
- SQL statement is a set of instruction that consists of identifiers, parameters, variables, names, data types and SQL reserved words that compiles successfully.
- SQL keywords are reserved words.
- They do something and can’t be used as names.