SlideShare uma empresa Scribd logo
1 de 13
DATABASE
• A database is an organized collection of structured data stored
• Electronically in a computer system.
1
ORACLE DATABASE FEATURE
• Oracle database allows you to quickly and safely store and retrieve data.
BENEFITS
• It is a cross platform. It can run on various hardware across OS.
• Oracle database has its networking stack that allows application from
different platforms to communicate with the oracle database smoothly. For
example, application running on windows can connect to the oracle
database running on the Unix.
• ACID-complaint – Oracle is acid-complaint database that helps to maintain
data integrity(unique data) and reliability.
2
• Logical data structure – Oracle uses the logical data structure to store data so that you can interact
with the database without knowing the data is stored physically.
• Partitioning – is a high-performance feature that allows you to divide a large table into different
pieces and store each piece across storage devices.
• Memory caching – the memory caching architecture allows you to scale up a very large database that
still can perform at a high speed.
• Data Dictionary is a set of internal tables and views that support administer Oracle Database more
effectively.
• Backup and recovery – ensure the integrity of the data in case of system failure. Oracle includes a
powerful tool called Recovery Manager (RMAN) – allows DBA to perform cold, hot, and incremental
database backups and point-in-time recoveries.
• Clustering – Oracle Real Application Clusters (RAC) – Oracle enables high availability that enables the
system is up and running without interruption of services in case one or more server in a cluster fails.
3
DATABASE
• To create a database we use
create database “database name”;
• To use any particular database we use
use “database name”;
• To delete a database we use
drop database “database name”;
4
CONSTRAINTS
Constrains are used to specify rules for data in table
• Not null
Not null constraint ensures that a column cannot have a null value.
• Default
Default constraints sets a default value for a column where no value is specified.
• Unique
Unique constraints ensures that all the value in a column are different.
• Primary key
Primary key constraints uniquely identifies each record in a table. It is a combination of not null and
unique constraints.
5
CREATE A TABLE
• To create a table we use some syntax
create table “table name”(
column1,
Column2,
Etc.
Primary key(column name)
);
There must be only one primary key in a table
6
INSERT DATA
• To insert data we use
Insert into “table name”
Values(value1,value2,……….,value k ) `respectively`
7
SELECT STATEMENT
We use select to get data from a table
Syntax
Select column1,column2,column k
from “table name”;
Note : we use * to get all the data, for example,
Select * from employee;
8
SELECT DISTINCT STATEMENT
We use select distinct where there is duplicate value to find out
distinct values we use select distinct.
Syntax
Select distinct column1 from “table name”
i.e. which values are repeated.
9
WHERE CLAUSE
Where clause is used to extract records which satisfy a condition.(i.e. filter)
Syntax
Select column1,column2,……..,etc.
From “table name” where “condition(column1= ‘value’ ”;
From “table name” where “condition(column1< ‘value’ ”;
From “table name” where “condition(column1> ‘value’ ”;
OPERATORS
• AND
AND operator displays records if all the condition separated by AND are true.
Syntax
Select column1,column2,……..,etc.
From “table name” where “condition(column1> ‘value’ and column2 = “value” and column3 = “value” ”;
10
OPERATOR
• OR
OR operator displays records if any of condition separated by OR are true.
Syntax
Select column1,column2,……..,etc
From “table name” where “condition(column1> ‘value’ and column2 = “value” and column3 = “value” ”;
• Not
NOT operator displays records if the condition is not true.
Syntax
Select column1,column2,……..,etc
From “table name” where not “condition(column1> ‘value’ )”;
11
OPERATOR
• LIKE
Like operator is used to extract records where a particular pattern is present
These are in two type of wild character
% - Represent zero, one or more character
_ - Represent a single character(basically for number)
Syntax
Select column1,column2,……..,etc.
From “table name” where column1 like “any character”%;
12
OPERATOR
• Between
Between operator is used to select values within a given range.
Syntax
Select column1,column2,……..,etc.
From “table name” where column1 between “value1” and
“value2”;
13

Mais conteúdo relacionado

Semelhante a Database.pptx

Sql coding-standard-sqlserver
Sql coding-standard-sqlserverSql coding-standard-sqlserver
Sql coding-standard-sqlserverlochaaaa
 
Relational Database Language.pptx
Relational Database Language.pptxRelational Database Language.pptx
Relational Database Language.pptxSheethal Aji Mani
 
02 database oprimization - improving sql performance - ent-db
02  database oprimization - improving sql performance - ent-db02  database oprimization - improving sql performance - ent-db
02 database oprimization - improving sql performance - ent-dbuncleRhyme
 
SQL SERVER Training in Pune Slides
SQL SERVER Training in Pune SlidesSQL SERVER Training in Pune Slides
SQL SERVER Training in Pune Slidesenosislearningcom
 
Les13[1]Other Database Objects
Les13[1]Other Database ObjectsLes13[1]Other Database Objects
Les13[1]Other Database Objectssiavosh kaviani
 
Database development coding standards
Database development coding standardsDatabase development coding standards
Database development coding standardsAlessandro Baratella
 
Database COMPLETE
Database COMPLETEDatabase COMPLETE
Database COMPLETEAbrar ali
 
The Ultimate Guide to Upgrade ocp java 6, 7 &amp; 8 to java se 11 developer ...
The Ultimate Guide to Upgrade ocp java 6, 7 &amp; 8 to java se 11 developer  ...The Ultimate Guide to Upgrade ocp java 6, 7 &amp; 8 to java se 11 developer  ...
The Ultimate Guide to Upgrade ocp java 6, 7 &amp; 8 to java se 11 developer ...ParshantiniRoy
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...Alex Zaballa
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...Alex Zaballa
 
SQL Fundamentals - Lecture 2
SQL Fundamentals - Lecture 2SQL Fundamentals - Lecture 2
SQL Fundamentals - Lecture 2MuhammadWaheed44
 
Oracle Transparent Data Encryption (TDE) 12c
Oracle Transparent Data Encryption (TDE) 12cOracle Transparent Data Encryption (TDE) 12c
Oracle Transparent Data Encryption (TDE) 12cNabeel Yoosuf
 

Semelhante a Database.pptx (20)

Sql coding-standard-sqlserver
Sql coding-standard-sqlserverSql coding-standard-sqlserver
Sql coding-standard-sqlserver
 
Hira
HiraHira
Hira
 
IR SQLite Session #1
IR SQLite Session #1IR SQLite Session #1
IR SQLite Session #1
 
Relational Database Language.pptx
Relational Database Language.pptxRelational Database Language.pptx
Relational Database Language.pptx
 
02 database oprimization - improving sql performance - ent-db
02  database oprimization - improving sql performance - ent-db02  database oprimization - improving sql performance - ent-db
02 database oprimization - improving sql performance - ent-db
 
1650607.ppt
1650607.ppt1650607.ppt
1650607.ppt
 
Sql introduction
Sql introductionSql introduction
Sql introduction
 
SQL SERVER Training in Pune Slides
SQL SERVER Training in Pune SlidesSQL SERVER Training in Pune Slides
SQL SERVER Training in Pune Slides
 
Les13[1]Other Database Objects
Les13[1]Other Database ObjectsLes13[1]Other Database Objects
Les13[1]Other Database Objects
 
Database development coding standards
Database development coding standardsDatabase development coding standards
Database development coding standards
 
Database COMPLETE
Database COMPLETEDatabase COMPLETE
Database COMPLETE
 
SQL basics.pptx
SQL basics.pptxSQL basics.pptx
SQL basics.pptx
 
Introduction to SQL..pdf
Introduction to SQL..pdfIntroduction to SQL..pdf
Introduction to SQL..pdf
 
The Ultimate Guide to Upgrade ocp java 6, 7 &amp; 8 to java se 11 developer ...
The Ultimate Guide to Upgrade ocp java 6, 7 &amp; 8 to java se 11 developer  ...The Ultimate Guide to Upgrade ocp java 6, 7 &amp; 8 to java se 11 developer  ...
The Ultimate Guide to Upgrade ocp java 6, 7 &amp; 8 to java se 11 developer ...
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
 
SQL Commands
SQL Commands SQL Commands
SQL Commands
 
SQL Fundamentals - Lecture 2
SQL Fundamentals - Lecture 2SQL Fundamentals - Lecture 2
SQL Fundamentals - Lecture 2
 
3. ddl create
3. ddl create3. ddl create
3. ddl create
 
Oracle Transparent Data Encryption (TDE) 12c
Oracle Transparent Data Encryption (TDE) 12cOracle Transparent Data Encryption (TDE) 12c
Oracle Transparent Data Encryption (TDE) 12c
 

Último

Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 

Último (20)

Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 

Database.pptx

  • 1. DATABASE • A database is an organized collection of structured data stored • Electronically in a computer system. 1
  • 2. ORACLE DATABASE FEATURE • Oracle database allows you to quickly and safely store and retrieve data. BENEFITS • It is a cross platform. It can run on various hardware across OS. • Oracle database has its networking stack that allows application from different platforms to communicate with the oracle database smoothly. For example, application running on windows can connect to the oracle database running on the Unix. • ACID-complaint – Oracle is acid-complaint database that helps to maintain data integrity(unique data) and reliability. 2
  • 3. • Logical data structure – Oracle uses the logical data structure to store data so that you can interact with the database without knowing the data is stored physically. • Partitioning – is a high-performance feature that allows you to divide a large table into different pieces and store each piece across storage devices. • Memory caching – the memory caching architecture allows you to scale up a very large database that still can perform at a high speed. • Data Dictionary is a set of internal tables and views that support administer Oracle Database more effectively. • Backup and recovery – ensure the integrity of the data in case of system failure. Oracle includes a powerful tool called Recovery Manager (RMAN) – allows DBA to perform cold, hot, and incremental database backups and point-in-time recoveries. • Clustering – Oracle Real Application Clusters (RAC) – Oracle enables high availability that enables the system is up and running without interruption of services in case one or more server in a cluster fails. 3
  • 4. DATABASE • To create a database we use create database “database name”; • To use any particular database we use use “database name”; • To delete a database we use drop database “database name”; 4
  • 5. CONSTRAINTS Constrains are used to specify rules for data in table • Not null Not null constraint ensures that a column cannot have a null value. • Default Default constraints sets a default value for a column where no value is specified. • Unique Unique constraints ensures that all the value in a column are different. • Primary key Primary key constraints uniquely identifies each record in a table. It is a combination of not null and unique constraints. 5
  • 6. CREATE A TABLE • To create a table we use some syntax create table “table name”( column1, Column2, Etc. Primary key(column name) ); There must be only one primary key in a table 6
  • 7. INSERT DATA • To insert data we use Insert into “table name” Values(value1,value2,……….,value k ) `respectively` 7
  • 8. SELECT STATEMENT We use select to get data from a table Syntax Select column1,column2,column k from “table name”; Note : we use * to get all the data, for example, Select * from employee; 8
  • 9. SELECT DISTINCT STATEMENT We use select distinct where there is duplicate value to find out distinct values we use select distinct. Syntax Select distinct column1 from “table name” i.e. which values are repeated. 9
  • 10. WHERE CLAUSE Where clause is used to extract records which satisfy a condition.(i.e. filter) Syntax Select column1,column2,……..,etc. From “table name” where “condition(column1= ‘value’ ”; From “table name” where “condition(column1< ‘value’ ”; From “table name” where “condition(column1> ‘value’ ”; OPERATORS • AND AND operator displays records if all the condition separated by AND are true. Syntax Select column1,column2,……..,etc. From “table name” where “condition(column1> ‘value’ and column2 = “value” and column3 = “value” ”; 10
  • 11. OPERATOR • OR OR operator displays records if any of condition separated by OR are true. Syntax Select column1,column2,……..,etc From “table name” where “condition(column1> ‘value’ and column2 = “value” and column3 = “value” ”; • Not NOT operator displays records if the condition is not true. Syntax Select column1,column2,……..,etc From “table name” where not “condition(column1> ‘value’ )”; 11
  • 12. OPERATOR • LIKE Like operator is used to extract records where a particular pattern is present These are in two type of wild character % - Represent zero, one or more character _ - Represent a single character(basically for number) Syntax Select column1,column2,……..,etc. From “table name” where column1 like “any character”%; 12
  • 13. OPERATOR • Between Between operator is used to select values within a given range. Syntax Select column1,column2,……..,etc. From “table name” where column1 between “value1” and “value2”; 13