SlideShare a Scribd company logo
 Oracle installation
 Oracle Data Types
 Create Table
 Implements constraints on table
1
1
2
3
Fill data in fields
to complete
registration
process
4
5
Username and
password you filled
during the
Registration process
Your oracle
account
password
We install the Oracle
SQL Developer to write
SQL statements
Click the icon
1
Database Name
Your account password
We write SQL Statements
here
SQL statements are divided into two major categories:
1. Data definition language (DDL):
Responsible for Data Definition.
DDL statements are used to build and
modify the structure of your tables and
other objects in the database.
CREATE
ALTER
DROP
RENAME
2. Data manipulation language (DML):
Responsible for Data Manipulation.
DML statements are used to work with the
data in tables.
INSERT
UPDATE
DELETE
MERGE
Using DDL Statements
to Create and Manage Tables
Table names and column names
•Must begin with a letter .
•Must be 1–30 characters long .
•Must contain only A–Z, a–z, 0–9, _, $, and # .
•Must not duplicate the name of another object .
•Must not be an Oracle server reserved word .
CREATE TABLE Statement
CREATE TABLE TableName (Coulmn1Name DataType, Column2Name
Datatype ) ;
Important data types
Teacher
TeacherID
TeacherName
Nationality
appointment date
CourseNum
Press this button or
press F5 key from
the keyboard to
execute program
Refresh Database
Select database LAB1
Refresh Database
To implements any changing on table use
ALTER Statements as following
To Delete table use DROP Statement
Execute statement
Create Students Table Contains the following
Columns ?
StudentID NUMBER(7)
StudentName VARCHAR2(20)
StudentLevel NUMBER(1)
Grade NUMBER(1,2)
Implements Constraints on the table
Description
Constraint
Indicates that a column cannot store NULL value
NOT NULL
Ensures that each row for a column must have a unique
value
UNIQUE
A combination of a NOT NULL and UNIQUE
PRIMARY KEY
to match values in another table
FOREIGN KEY
Ensures that the value in a column meets a specific
condition
CHECK
Specifies a default value for this column
DEFAULT
Implement NOT NULL Constraint
Implement UNIQUE Constraint
Implement PRIMARY KEY Constraint
Implement DEFAULT Constraint

More Related Content

Similar to LAB1.pptx

sql-commands.pdf
sql-commands.pdfsql-commands.pdf
sql-commands.pdf
Prof. Dr. K. Adisesha
 
Sql commands
Sql commandsSql commands
Sql commands
Prof. Dr. K. Adisesha
 
Sql commands
Sql commandsSql commands
Sql commands
Prof. Dr. K. Adisesha
 
Database Systems - Introduction to SQL (Chapter 3/1)
Database Systems - Introduction to SQL (Chapter 3/1)Database Systems - Introduction to SQL (Chapter 3/1)
Database Systems - Introduction to SQL (Chapter 3/1)
Vidyasagar Mundroy
 
Ankit
AnkitAnkit
Sql tutorial
Sql tutorialSql tutorial
Sql tutorial
Rumman Ansari
 
Oracle Introduction
Oracle Introduction Oracle Introduction
Oracle Introduction
Mohana Rajendiran
 
Dbmsunit v
Dbmsunit vDbmsunit v
Dbmsunit v
Mohana Rajendiran
 
Unit-1 SQL fundamentals.docx SQL commands used to create table, insert values...
Unit-1 SQL fundamentals.docx SQL commands used to create table, insert values...Unit-1 SQL fundamentals.docx SQL commands used to create table, insert values...
Unit-1 SQL fundamentals.docx SQL commands used to create table, insert values...
SakkaravarthiS1
 
ORACLE PL SQL
ORACLE PL SQLORACLE PL SQL
ORACLE PL SQL
Srinath Maharana
 
chapter-14-sql-commands.pdf
chapter-14-sql-commands.pdfchapter-14-sql-commands.pdf
chapter-14-sql-commands.pdf
study material
 
Islamic University Previous Year Question Solution 2018 (ADBMS)
Islamic University Previous Year Question Solution 2018 (ADBMS)Islamic University Previous Year Question Solution 2018 (ADBMS)
Islamic University Previous Year Question Solution 2018 (ADBMS)
Rakibul Hasan Pranto
 
SQL 3.pptx
SQL 3.pptxSQL 3.pptx
SQL 3.pptx
Rishab Saini
 
DBMS Part-3.pptx
DBMS Part-3.pptxDBMS Part-3.pptx
DBMS Part-3.pptx
Prof. Dr. K. Adisesha
 
Structured Query Language (SQL).pptx
Structured Query Language (SQL).pptxStructured Query Language (SQL).pptx
Structured Query Language (SQL).pptx
EllenGracePorras
 
SQL for interview
SQL for interviewSQL for interview
SQL for interview
Aditya Kumar Tripathy
 
Assignment#02
Assignment#02Assignment#02
Assignment#02
Sunita Milind Dol
 
Sql Server 2000
Sql Server 2000Sql Server 2000
Sql Server 2000
Om Vikram Thapa
 

Similar to LAB1.pptx (20)

sql-commands.pdf
sql-commands.pdfsql-commands.pdf
sql-commands.pdf
 
Sql commands
Sql commandsSql commands
Sql commands
 
Sql commands
Sql commandsSql commands
Sql commands
 
Database Systems - Introduction to SQL (Chapter 3/1)
Database Systems - Introduction to SQL (Chapter 3/1)Database Systems - Introduction to SQL (Chapter 3/1)
Database Systems - Introduction to SQL (Chapter 3/1)
 
Ankit
AnkitAnkit
Ankit
 
Sql tutorial
Sql tutorialSql tutorial
Sql tutorial
 
Oracle Introduction
Oracle Introduction Oracle Introduction
Oracle Introduction
 
Dbmsunit v
Dbmsunit vDbmsunit v
Dbmsunit v
 
Unit-1 SQL fundamentals.docx SQL commands used to create table, insert values...
Unit-1 SQL fundamentals.docx SQL commands used to create table, insert values...Unit-1 SQL fundamentals.docx SQL commands used to create table, insert values...
Unit-1 SQL fundamentals.docx SQL commands used to create table, insert values...
 
ORACLE PL SQL
ORACLE PL SQLORACLE PL SQL
ORACLE PL SQL
 
chapter-14-sql-commands.pdf
chapter-14-sql-commands.pdfchapter-14-sql-commands.pdf
chapter-14-sql-commands.pdf
 
SQL.pptx
SQL.pptxSQL.pptx
SQL.pptx
 
Islamic University Previous Year Question Solution 2018 (ADBMS)
Islamic University Previous Year Question Solution 2018 (ADBMS)Islamic University Previous Year Question Solution 2018 (ADBMS)
Islamic University Previous Year Question Solution 2018 (ADBMS)
 
SQL 3.pptx
SQL 3.pptxSQL 3.pptx
SQL 3.pptx
 
DBMS Part-3.pptx
DBMS Part-3.pptxDBMS Part-3.pptx
DBMS Part-3.pptx
 
SQL_NOTES.pdf
SQL_NOTES.pdfSQL_NOTES.pdf
SQL_NOTES.pdf
 
Structured Query Language (SQL).pptx
Structured Query Language (SQL).pptxStructured Query Language (SQL).pptx
Structured Query Language (SQL).pptx
 
SQL for interview
SQL for interviewSQL for interview
SQL for interview
 
Assignment#02
Assignment#02Assignment#02
Assignment#02
 
Sql Server 2000
Sql Server 2000Sql Server 2000
Sql Server 2000
 

More from MemMem25

‏‏chpater1Typing Arabic and English Ergonomics .pptx
‏‏chpater1Typing  Arabic and English Ergonomics .pptx‏‏chpater1Typing  Arabic and English Ergonomics .pptx
‏‏chpater1Typing Arabic and English Ergonomics .pptx
MemMem25
 
‏‏chapter4 Technical Skills Hardware Skills - نسخة.ppt
‏‏chapter4  Technical Skills Hardware  Skills - نسخة.ppt‏‏chapter4  Technical Skills Hardware  Skills - نسخة.ppt
‏‏chapter4 Technical Skills Hardware Skills - نسخة.ppt
MemMem25
 
chapter3 Technical Skills Software Skills.ppt
chapter3  Technical Skills Software Skills.pptchapter3  Technical Skills Software Skills.ppt
chapter3 Technical Skills Software Skills.ppt
MemMem25
 
chapter2 Technical Support.ppt
chapter2 Technical Support.pptchapter2 Technical Support.ppt
chapter2 Technical Support.ppt
MemMem25
 
‏‏chapter1 overview of OFFICE MANAGEMENT - نسخة.ppt
‏‏chapter1  overview  of  OFFICE MANAGEMENT - نسخة.ppt‏‏chapter1  overview  of  OFFICE MANAGEMENT - نسخة.ppt
‏‏chapter1 overview of OFFICE MANAGEMENT - نسخة.ppt
MemMem25
 
‏‏chapter 4 Office Management Software.ppt
‏‏chapter 4  Office Management Software.ppt‏‏chapter 4  Office Management Software.ppt
‏‏chapter 4 Office Management Software.ppt
MemMem25
 
chapter3 Major Processes of Office Management.ppt
chapter3  Major Processes of Office Management.pptchapter3  Major Processes of Office Management.ppt
chapter3 Major Processes of Office Management.ppt
MemMem25
 
chapter 2 FUNCTIONS OF MODERN OFFICE.ppt
chapter 2  FUNCTIONS OF MODERN OFFICE.pptchapter 2  FUNCTIONS OF MODERN OFFICE.ppt
chapter 2 FUNCTIONS OF MODERN OFFICE.ppt
MemMem25
 
acd120_Organizational Behavior (2) (1) (1).pptx
acd120_Organizational Behavior (2) (1) (1).pptxacd120_Organizational Behavior (2) (1) (1).pptx
acd120_Organizational Behavior (2) (1) (1).pptx
MemMem25
 
Chapter 3 .pptx
Chapter 3 .pptxChapter 3 .pptx
Chapter 3 .pptx
MemMem25
 
NE223_chapter 1_Overview of operating systems.ppt
NE223_chapter 1_Overview of operating systems.pptNE223_chapter 1_Overview of operating systems.ppt
NE223_chapter 1_Overview of operating systems.ppt
MemMem25
 
Algorithm Analysis.pdf
Algorithm Analysis.pdfAlgorithm Analysis.pdf
Algorithm Analysis.pdf
MemMem25
 
lec(1).pptx
lec(1).pptxlec(1).pptx
lec(1).pptx
MemMem25
 
AI.ppt
AI.pptAI.ppt
AI.ppt
MemMem25
 
Chapter02.ppt
Chapter02.pptChapter02.ppt
Chapter02.ppt
MemMem25
 
desmath(1).ppt
desmath(1).pptdesmath(1).ppt
desmath(1).ppt
MemMem25
 
COE332-Ch03d.pptx
COE332-Ch03d.pptxCOE332-Ch03d.pptx
COE332-Ch03d.pptx
MemMem25
 
01_Artificial_Intelligence-Introduction.ppt
01_Artificial_Intelligence-Introduction.ppt01_Artificial_Intelligence-Introduction.ppt
01_Artificial_Intelligence-Introduction.ppt
MemMem25
 
1-introduction-to-computer-networking.ppt
1-introduction-to-computer-networking.ppt1-introduction-to-computer-networking.ppt
1-introduction-to-computer-networking.ppt
MemMem25
 

More from MemMem25 (19)

‏‏chpater1Typing Arabic and English Ergonomics .pptx
‏‏chpater1Typing  Arabic and English Ergonomics .pptx‏‏chpater1Typing  Arabic and English Ergonomics .pptx
‏‏chpater1Typing Arabic and English Ergonomics .pptx
 
‏‏chapter4 Technical Skills Hardware Skills - نسخة.ppt
‏‏chapter4  Technical Skills Hardware  Skills - نسخة.ppt‏‏chapter4  Technical Skills Hardware  Skills - نسخة.ppt
‏‏chapter4 Technical Skills Hardware Skills - نسخة.ppt
 
chapter3 Technical Skills Software Skills.ppt
chapter3  Technical Skills Software Skills.pptchapter3  Technical Skills Software Skills.ppt
chapter3 Technical Skills Software Skills.ppt
 
chapter2 Technical Support.ppt
chapter2 Technical Support.pptchapter2 Technical Support.ppt
chapter2 Technical Support.ppt
 
‏‏chapter1 overview of OFFICE MANAGEMENT - نسخة.ppt
‏‏chapter1  overview  of  OFFICE MANAGEMENT - نسخة.ppt‏‏chapter1  overview  of  OFFICE MANAGEMENT - نسخة.ppt
‏‏chapter1 overview of OFFICE MANAGEMENT - نسخة.ppt
 
‏‏chapter 4 Office Management Software.ppt
‏‏chapter 4  Office Management Software.ppt‏‏chapter 4  Office Management Software.ppt
‏‏chapter 4 Office Management Software.ppt
 
chapter3 Major Processes of Office Management.ppt
chapter3  Major Processes of Office Management.pptchapter3  Major Processes of Office Management.ppt
chapter3 Major Processes of Office Management.ppt
 
chapter 2 FUNCTIONS OF MODERN OFFICE.ppt
chapter 2  FUNCTIONS OF MODERN OFFICE.pptchapter 2  FUNCTIONS OF MODERN OFFICE.ppt
chapter 2 FUNCTIONS OF MODERN OFFICE.ppt
 
acd120_Organizational Behavior (2) (1) (1).pptx
acd120_Organizational Behavior (2) (1) (1).pptxacd120_Organizational Behavior (2) (1) (1).pptx
acd120_Organizational Behavior (2) (1) (1).pptx
 
Chapter 3 .pptx
Chapter 3 .pptxChapter 3 .pptx
Chapter 3 .pptx
 
NE223_chapter 1_Overview of operating systems.ppt
NE223_chapter 1_Overview of operating systems.pptNE223_chapter 1_Overview of operating systems.ppt
NE223_chapter 1_Overview of operating systems.ppt
 
Algorithm Analysis.pdf
Algorithm Analysis.pdfAlgorithm Analysis.pdf
Algorithm Analysis.pdf
 
lec(1).pptx
lec(1).pptxlec(1).pptx
lec(1).pptx
 
AI.ppt
AI.pptAI.ppt
AI.ppt
 
Chapter02.ppt
Chapter02.pptChapter02.ppt
Chapter02.ppt
 
desmath(1).ppt
desmath(1).pptdesmath(1).ppt
desmath(1).ppt
 
COE332-Ch03d.pptx
COE332-Ch03d.pptxCOE332-Ch03d.pptx
COE332-Ch03d.pptx
 
01_Artificial_Intelligence-Introduction.ppt
01_Artificial_Intelligence-Introduction.ppt01_Artificial_Intelligence-Introduction.ppt
01_Artificial_Intelligence-Introduction.ppt
 
1-introduction-to-computer-networking.ppt
1-introduction-to-computer-networking.ppt1-introduction-to-computer-networking.ppt
1-introduction-to-computer-networking.ppt
 

Recently uploaded

Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 

Recently uploaded (20)

Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 

LAB1.pptx