SlideShare a Scribd company logo
1 of 12
SQL (Data Base)
Data is a useful information.
Which helps to make a decision.
Set of information of any entity is known as data.
Example:
Employee information.(Name,job,sal etc…)
Product information
Sales information
• What is Data?
•What is Database ?
Place where you store data
A database is a systematic collection of data.
Databases support storage and manipulation of data.
Databases make data management easy.
Ex:
An online telephone directory.
Electricity service provider
Facebook.
• What is a Database Management
System (DBMS)?
Database Management System (DBMS) is a collection of
programs which enables its users to access database,
manipulate data, reporting / representation of data .
Data base combined with management system services is
known as DBMS.
Oracle 2,
 Oracle 3,
Oracle 4,
Oracle 5,
Oracle 6,
Oracle 7,
Oracle 8i,
Oracle 9i,
Oracle 10g,
Oracle 11g
and the latest to hit the market is Oracle 12c. here ‘i’ stands for Internet, ‘g’ stands for Grid /
Grid computing and C for Cloud Computing .
• Here the services are.
Entering new data
Updating old data with new data
Deleting unwanted data
Authenticating the users
Providing security
• The s/w which is widely used today is Oracle.
• The different versions of Oracle starting from the earliest to the latest are –
•What is Relational Database?
 It is the collection of relations or two dimensional tables
 Dr E.F Codd proposed the relational model for database system in 1969
 Relational Model Consists of following
 Collections of Objects or Relations
 Set of Operators to act on the relations
 Data integrity for accuracy and consistency.
( Data integrity is the one which contains correct data in the database)
 To restrict storing wrong data in database we use data integrity.
 To Preserve data integrity we have two types
1.DataType:
2.Constraints:
Data Type is a type of data which you store in each column.
A constraint is a condition which restricts the invalid data in the table.
A constraint can be provided for a column of a table.
•Constraints
A constraint is a condition which restricts the invalid
data in the table.
A constraint can be provided for a column of a table.
•Types of Constraints
 NOT NULL
 UNIQUE
 Primary Key
 Foreign Key
 Check
• Null
 NULL is nothing, it is neither zero nor blank space
 It will not occupy any space in the memory
 Two NULLS are never same in Oracle
 NULL represents unknown value
 Any arithmetic operation we perform on NULL will
result in NULL itself. For ex, 100000 + NULL = NULL ;
100000 * NULL = NULL
•Not Null
 NOT NULL will ensure at least some value should
be present in a column
• Unique
It will not allow any duplicates in a column
UNIQUE column can take multiple NULL (s)
• Primary Key
It is the combination of NOT NULL and UNIQUE
Only one PK is allowed in a table
PK identifies a record uniquely in a table
Creation of PK is not mandatory, but it is highly
recommended to create
Candidate Key: Eligible to become PK
Alternate Key: Eligible to become primary key but not chosen
as PK
CK=PK+AK
AK=CK-PK
• Foreign Key
FK creates relationship between any two tables
FK is also called as referential integrity constraints
FK is created on the child table
FK can take both NULL and duplicate values
To create FK, the master table should have PK defined on the
common column of the master table
We can have more than 1 FK in a given table
•Check
It is used to provide additional validations as per the
customer requirements.

More Related Content

What's hot

Merging files (Data Structure)
Merging files (Data Structure)Merging files (Data Structure)
Merging files (Data Structure)
Tech_MX
 

What's hot (20)

Joins in SQL
Joins in SQLJoins in SQL
Joins in SQL
 
AVL Tree
AVL TreeAVL Tree
AVL Tree
 
Sql subquery
Sql  subquerySql  subquery
Sql subquery
 
This keyword and final keyword
This keyword and final  keywordThis keyword and final  keyword
This keyword and final keyword
 
Event In JavaScript
Event In JavaScriptEvent In JavaScript
Event In JavaScript
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
 
Avl trees final
Avl trees finalAvl trees final
Avl trees final
 
Oops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in JavaOops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in Java
 
Merging files (Data Structure)
Merging files (Data Structure)Merging files (Data Structure)
Merging files (Data Structure)
 
Access specifiers(modifiers) in java
Access specifiers(modifiers) in javaAccess specifiers(modifiers) in java
Access specifiers(modifiers) in java
 
pl/sql Procedure
pl/sql Procedurepl/sql Procedure
pl/sql Procedure
 
Java Collections
Java  Collections Java  Collections
Java Collections
 
Programming with Python and PostgreSQL
Programming with Python and PostgreSQLProgramming with Python and PostgreSQL
Programming with Python and PostgreSQL
 
PL/SQL TRIGGERS
PL/SQL TRIGGERSPL/SQL TRIGGERS
PL/SQL TRIGGERS
 
Avl trees
Avl treesAvl trees
Avl trees
 
Relational Algebra,Types of join
Relational Algebra,Types of joinRelational Algebra,Types of join
Relational Algebra,Types of join
 
STRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIESSTRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIES
 
SQL Functions and Operators
SQL Functions and OperatorsSQL Functions and Operators
SQL Functions and Operators
 
MULTI THREADING IN JAVA
MULTI THREADING IN JAVAMULTI THREADING IN JAVA
MULTI THREADING IN JAVA
 
trigger dbms
trigger dbmstrigger dbms
trigger dbms
 

Viewers also liked

Types of databases
Types of databasesTypes of databases
Types of databases
PAQUIAAIZEL
 
Sql queries with answers
Sql queries with answersSql queries with answers
Sql queries with answers
vijaybusu
 

Viewers also liked (11)

QSpiders - Aptitude Assignments
QSpiders - Aptitude AssignmentsQSpiders - Aptitude Assignments
QSpiders - Aptitude Assignments
 
QSpiders - Selenium Webdriver
QSpiders - Selenium WebdriverQSpiders - Selenium Webdriver
QSpiders - Selenium Webdriver
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
 
Data base
Data baseData base
Data base
 
QSpiders - Day1 Network Basics
QSpiders - Day1 Network BasicsQSpiders - Day1 Network Basics
QSpiders - Day1 Network Basics
 
Manual Testing.
Manual Testing.Manual Testing.
Manual Testing.
 
Health Care Domain & Testing Challenges
Health Care Domain & Testing ChallengesHealth Care Domain & Testing Challenges
Health Care Domain & Testing Challenges
 
QSpiders - Unix Operating Systems and Commands
QSpiders - Unix Operating Systems  and CommandsQSpiders - Unix Operating Systems  and Commands
QSpiders - Unix Operating Systems and Commands
 
Core java complete notes - Contact at +91-814-614-5674
Core java complete notes - Contact at +91-814-614-5674Core java complete notes - Contact at +91-814-614-5674
Core java complete notes - Contact at +91-814-614-5674
 
Types of databases
Types of databasesTypes of databases
Types of databases
 
Sql queries with answers
Sql queries with answersSql queries with answers
Sql queries with answers
 

Similar to QSpiders - SQL (Data Base)

05 Create and Maintain Databases and Tables.pptx
05 Create and Maintain Databases and Tables.pptx05 Create and Maintain Databases and Tables.pptx
05 Create and Maintain Databases and Tables.pptx
MohamedNowfeek1
 
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfytxjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
WrushabhShirsat3
 
SQL -Beginner To Intermediate Level.pdf
SQL -Beginner To Intermediate Level.pdfSQL -Beginner To Intermediate Level.pdf
SQL -Beginner To Intermediate Level.pdf
DraguClaudiu
 
SQL.pptx for the begineers and good know
SQL.pptx for the begineers and good knowSQL.pptx for the begineers and good know
SQL.pptx for the begineers and good know
PavithSingh
 
Data Never Lies Presentation for beginners in data field.pptx
Data Never Lies Presentation for beginners in data field.pptxData Never Lies Presentation for beginners in data field.pptx
Data Never Lies Presentation for beginners in data field.pptx
TusharAgarwal49094
 

Similar to QSpiders - SQL (Data Base) (20)

SQL for interview
SQL for interviewSQL for interview
SQL for interview
 
Sql introduction
Sql introductionSql introduction
Sql introduction
 
05 Create and Maintain Databases and Tables.pptx
05 Create and Maintain Databases and Tables.pptx05 Create and Maintain Databases and Tables.pptx
05 Create and Maintain Databases and Tables.pptx
 
unit-ii.pptx
unit-ii.pptxunit-ii.pptx
unit-ii.pptx
 
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfytxjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
 
DBMS information in detail || Dbms (lab) ppt
DBMS information in detail || Dbms (lab) pptDBMS information in detail || Dbms (lab) ppt
DBMS information in detail || Dbms (lab) ppt
 
SQL -Beginner To Intermediate Level.pdf
SQL -Beginner To Intermediate Level.pdfSQL -Beginner To Intermediate Level.pdf
SQL -Beginner To Intermediate Level.pdf
 
SQL Commands
SQL Commands SQL Commands
SQL Commands
 
Steps towards of sql server developer
Steps towards of sql server developerSteps towards of sql server developer
Steps towards of sql server developer
 
Building better SQL Server Databases
Building better SQL Server DatabasesBuilding better SQL Server Databases
Building better SQL Server Databases
 
Presentation slides of Sequence Query Language (SQL)
Presentation slides of Sequence Query Language (SQL)Presentation slides of Sequence Query Language (SQL)
Presentation slides of Sequence Query Language (SQL)
 
ORACLE PL SQL
ORACLE PL SQLORACLE PL SQL
ORACLE PL SQL
 
SQL.pptx for the begineers and good know
SQL.pptx for the begineers and good knowSQL.pptx for the begineers and good know
SQL.pptx for the begineers and good know
 
Data Never Lies Presentation for beginners in data field.pptx
Data Never Lies Presentation for beginners in data field.pptxData Never Lies Presentation for beginners in data field.pptx
Data Never Lies Presentation for beginners in data field.pptx
 
Introduction to SQL..pdf
Introduction to SQL..pdfIntroduction to SQL..pdf
Introduction to SQL..pdf
 
Data massage: How databases have been scaled from one to one million nodes
Data massage: How databases have been scaled from one to one million nodesData massage: How databases have been scaled from one to one million nodes
Data massage: How databases have been scaled from one to one million nodes
 
Module02
Module02Module02
Module02
 
Database.pptx
Database.pptxDatabase.pptx
Database.pptx
 
Database COMPLETE
Database COMPLETEDatabase COMPLETE
Database COMPLETE
 
SQL.pptx
SQL.pptxSQL.pptx
SQL.pptx
 

More from Qspiders - Software Testing Training Institute

More from Qspiders - Software Testing Training Institute (20)

QSpiders - Variable Length-Subnet-Masks
QSpiders - Variable Length-Subnet-MasksQSpiders - Variable Length-Subnet-Masks
QSpiders - Variable Length-Subnet-Masks
 
QSpiders - Upper layer-protocols
QSpiders - Upper layer-protocolsQSpiders - Upper layer-protocols
QSpiders - Upper layer-protocols
 
QSpiders - Dod Model
QSpiders - Dod ModelQSpiders - Dod Model
QSpiders - Dod Model
 
QSpiders - Chapter 7 Debugging
QSpiders - Chapter 7 DebuggingQSpiders - Chapter 7 Debugging
QSpiders - Chapter 7 Debugging
 
QSpiders - Chapter 4 Checkpoints
QSpiders - Chapter 4 CheckpointsQSpiders - Chapter 4 Checkpoints
QSpiders - Chapter 4 Checkpoints
 
QSpiders - Simple Recording and Configuration of recording options for HP Loa...
QSpiders - Simple Recording and Configuration of recording options for HP Loa...QSpiders - Simple Recording and Configuration of recording options for HP Loa...
QSpiders - Simple Recording and Configuration of recording options for HP Loa...
 
QSpiders - Wonderlic Sample Question
QSpiders - Wonderlic Sample QuestionQSpiders - Wonderlic Sample Question
QSpiders - Wonderlic Sample Question
 
QSpiders - Chapter- 3 Synchronization point
QSpiders - Chapter- 3 Synchronization pointQSpiders - Chapter- 3 Synchronization point
QSpiders - Chapter- 3 Synchronization point
 
QSpiders - Presentation JMeter
QSpiders - Presentation JMeterQSpiders - Presentation JMeter
QSpiders - Presentation JMeter
 
QSpiders - Memory (JVM architecture)
QSpiders - Memory (JVM architecture)QSpiders - Memory (JVM architecture)
QSpiders - Memory (JVM architecture)
 
QSpiders - Jdk Jvm Jre and Jit
QSpiders - Jdk Jvm Jre and JitQSpiders - Jdk Jvm Jre and Jit
QSpiders - Jdk Jvm Jre and Jit
 
QSpiders - Simple replay and run time settings Loadrunner
QSpiders - Simple replay and run time settings LoadrunnerQSpiders - Simple replay and run time settings Loadrunner
QSpiders - Simple replay and run time settings Loadrunner
 
QSpiders - Major difference
QSpiders - Major differenceQSpiders - Major difference
QSpiders - Major difference
 
QSpiders - Introduction to HP Load Runner
QSpiders - Introduction to HP Load RunnerQSpiders - Introduction to HP Load Runner
QSpiders - Introduction to HP Load Runner
 
QSpiders - Interacting with My SQL Database
QSpiders - Interacting with My SQL DatabaseQSpiders - Interacting with My SQL Database
QSpiders - Interacting with My SQL Database
 
QSpiders - Server Architecture
QSpiders - Server ArchitectureQSpiders - Server Architecture
QSpiders - Server Architecture
 
QSpiders - Installation and Brief Dose of Load Runner
QSpiders - Installation and Brief Dose of Load RunnerQSpiders - Installation and Brief Dose of Load Runner
QSpiders - Installation and Brief Dose of Load Runner
 
QSpiders - Good to Know Network Concepts
QSpiders - Good to Know Network ConceptsQSpiders - Good to Know Network Concepts
QSpiders - Good to Know Network Concepts
 
QSpiders - Cloud computing(cloud server)
QSpiders - Cloud computing(cloud server)QSpiders - Cloud computing(cloud server)
QSpiders - Cloud computing(cloud server)
 
QSpiders - Basic intel architecture
QSpiders - Basic intel architectureQSpiders - Basic intel architecture
QSpiders - Basic intel architecture
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 

QSpiders - SQL (Data Base)

  • 2. Data is a useful information. Which helps to make a decision. Set of information of any entity is known as data. Example: Employee information.(Name,job,sal etc…) Product information Sales information • What is Data?
  • 3. •What is Database ? Place where you store data A database is a systematic collection of data. Databases support storage and manipulation of data. Databases make data management easy. Ex: An online telephone directory. Electricity service provider Facebook.
  • 4. • What is a Database Management System (DBMS)? Database Management System (DBMS) is a collection of programs which enables its users to access database, manipulate data, reporting / representation of data . Data base combined with management system services is known as DBMS.
  • 5. Oracle 2,  Oracle 3, Oracle 4, Oracle 5, Oracle 6, Oracle 7, Oracle 8i, Oracle 9i, Oracle 10g, Oracle 11g and the latest to hit the market is Oracle 12c. here ‘i’ stands for Internet, ‘g’ stands for Grid / Grid computing and C for Cloud Computing . • Here the services are. Entering new data Updating old data with new data Deleting unwanted data Authenticating the users Providing security • The s/w which is widely used today is Oracle. • The different versions of Oracle starting from the earliest to the latest are –
  • 6. •What is Relational Database?  It is the collection of relations or two dimensional tables  Dr E.F Codd proposed the relational model for database system in 1969  Relational Model Consists of following  Collections of Objects or Relations  Set of Operators to act on the relations  Data integrity for accuracy and consistency. ( Data integrity is the one which contains correct data in the database)  To restrict storing wrong data in database we use data integrity.  To Preserve data integrity we have two types 1.DataType: 2.Constraints: Data Type is a type of data which you store in each column.
  • 7. A constraint is a condition which restricts the invalid data in the table. A constraint can be provided for a column of a table. •Constraints A constraint is a condition which restricts the invalid data in the table. A constraint can be provided for a column of a table. •Types of Constraints  NOT NULL  UNIQUE  Primary Key  Foreign Key  Check
  • 8. • Null  NULL is nothing, it is neither zero nor blank space  It will not occupy any space in the memory  Two NULLS are never same in Oracle  NULL represents unknown value  Any arithmetic operation we perform on NULL will result in NULL itself. For ex, 100000 + NULL = NULL ; 100000 * NULL = NULL
  • 9. •Not Null  NOT NULL will ensure at least some value should be present in a column • Unique It will not allow any duplicates in a column UNIQUE column can take multiple NULL (s)
  • 10. • Primary Key It is the combination of NOT NULL and UNIQUE Only one PK is allowed in a table PK identifies a record uniquely in a table Creation of PK is not mandatory, but it is highly recommended to create Candidate Key: Eligible to become PK Alternate Key: Eligible to become primary key but not chosen as PK CK=PK+AK AK=CK-PK
  • 11. • Foreign Key FK creates relationship between any two tables FK is also called as referential integrity constraints FK is created on the child table FK can take both NULL and duplicate values To create FK, the master table should have PK defined on the common column of the master table We can have more than 1 FK in a given table
  • 12. •Check It is used to provide additional validations as per the customer requirements.