Data is a collection of small volume of facts and figures representing information.
- Name
- Age
- Gender
- Phone Number
- Email ID
A Database is a collection of a large volume of facts and figures stored in an organized manner.
- University Details
- Hospital Details
- Bank Details
- Employee Details
The main objectives of data management are:
- Store data permanently
- Retrieve data efficiently
In earlier days, information was stored manually using ledgers.
Managing large volumes of data manually was:
- Time consuming
- Difficult to maintain
- Difficult to retrieve quickly
- More prone to errors
Programming languages such as:
- C
- Java
can store small amounts of data using variables.
Example:
String name = "Basha";
int age = 23;
String gender = "Male";
String branch = "ECE";
int studentId = 458;
int percentage = 93;Programming languages are effective for storing small amounts of data but become difficult when handling large volumes of information because:
- Every value requires a variable declaration
- Data types must be specified
- Initialization is required for each variable
DBMS was introduced to manage large amounts of data efficiently.
DBMS stands for:
D – Data
B – Base
M – Management
S – System
- Stores large volumes of data
- Reduces redundancy
- Provides data security
- Supports efficient data retrieval
- Maintains data consistency
Some widely used database systems are:
- Oracle
- MySQL
- Sybase
- DB2
- In 1977, Larry Ellison, Bob Miner, and Ed Oates founded Software Development Laboratory (SDL).
- In 1979, SDL was renamed to Relational Software Inc. (RSI).
- In 1982, RSI became Oracle Systems Corporation (OSC).
- In 1995, OSC was renamed Oracle Corporation.
Today, it is popularly known as Oracle.
| Version | Year |
|---|---|
| Oracle 1 | 1978 |
| Oracle 2 | 1979 |
| Oracle 3 | 1983 |
| Oracle 4 | 1984 |
| Oracle 5 | 1985 |
| Oracle 6 | 1988 |
| Oracle 7 | 1992 |
| Oracle 8 | 1997 |
| Oracle 8i | 1999 |
| Oracle 9i | 2001 |
| Oracle 10g | 2004 |
| Oracle 11g | 2007 |
| Oracle 12c | 2013 |
| Oracle 18c | 2018 |
| Oracle 19c | 2019 |
SQL stands for Structured Query Language.
- Structured → Data is stored in tables.
- Query → Used to ask questions from the database.
- Language → Used to communicate with the database.
- SQL was developed in 1970.
- Invented by Raymond Boyce and Donald Chamberlin.
- SQL is also known as SEQUEL (Structured English Query Language).
A table consists of:
Rows are also called:
- Tuples
- Records
Columns are also called:
- Attributes
- Fields
A table is also known as a Relation.
- Create a table.
- Define columns with data types.
- Insert records into the table.
CREATE TABLE table_name(
column_name1 datatype,
column_name2 datatype,
column_name3 datatype
);CREATE TABLE student(
name VARCHAR2(16),
age NUMBER,
gender CHAR(6),
branch VARCHAR2(16),
id INT,
marks INT
);INSERT INTO table_name
VALUES(value1, value2, value3);INSERT INTO student
VALUES(
'Shaik Mahaboob Basha',
23,
'Male',
'ECE',
458,
93
);INSERT INTO table_name (column_name1, column_name2, column_name3) VALUES(value1, value2, value3);INSERT INTO student (name, age)
VALUES(
'Shaik Mahaboob Basha',
23);In SQL, every statement ends with a semicolon (;).
The semicolon indicates the end of a SQL statement.
This file provides the fundamental concepts of Oracle SQL including Data, Database, DBMS, Oracle History, SQL Basics, Table Structure, and Database Creation concepts for beginners and interview preparation.
Happy Learning and Keep Practicing SQL!