SlideShare a Scribd company logo
1 of 14
Workshop
Software Databases
&
Testing
Lviv, 2013
Agenda items
• Introduction to databases
▫ Database models
▫ Types of Keys in Database
▫ Types of Table Relationships
▫ Database Diagram
• Structured Query Language
▫ SQL Command Types
▫ SQL Select Command
 Joining Tables
• Database & Testing
▫ Database Testing
▫ Database migration testing
▫ SQL Tuning or SQL Optimization
Database Models
• Hierarchical Model
• Network Model
• Relational Model
• Object/Relational Model
• Object-Oriented Model
• Semi structured Model
• Associative Model
• Entity-Attribute-Value (EAV) data model
• Context Model
Types of Keys in Database
• Primary key
• Foreign key
• Compound key
Types of Table Relationships
A relationship works by matching data in key columns — usually columns
with the same name in both tables. In most cases, the relationship matches
the primary key from one table, which provides a unique identifier for each
row, with an entry in the foreign key in the other table.
• One-to-Many Relationships
• Many-to-Many Relationships
• One-to-One Relationships
Structured Query Language
SQL (Structured Query Language)
A special purpose programming language designed
for managing data in relational database management
systems (RDBMS).
SQL Command Types
• Data Definition Language (DDL)
• Data Manipulation Language (DML)
• Data Control Language (DCL)
• Transaction Control Language (TCL)
Data Definition Language
Data Definition Language (DDL) statements are used to define the
database structure or schema. Some examples:
– CREATE - to create objects in the database
– ALTER - alters the structure of the database
– DROP - delete objects from the database
– TRUNCATE - remove all records from a table, including all
spaces allocated for the records are removed
– COMMENT - add comments to the data dictionary
– RENAME - rename an object
Data Manipulation Language
Data Manipulation Language (DML) statements are used for
managing data within schema objects. Some examples:
 SELECT - retrieve data from the a database
 INSERT - insert data into a table
 UPDATE - updates existing data within a table
 DELETE - deletes all records from a table, the space for the
records remain
 MERGE - UPSERT operation (insert or update)
 CALL - call a PL/SQL or Java subprogram
 EXPLAIN PLAN - explain access path to data
 LOCK TABLE - control concurrency
Data Control Language
Data Control Language (DCL) statements. Some
examples:
– GRANT - gives user's access privileges to database
– REVOKE - withdraw access privileges given with
the GRANT command
Transaction Control Language
Transaction Control Language (TCL) statements are used to manage
the changes made by DML statements. It allows statements to be
grouped together into logical transactions.
– COMMIT - save work done
– SAVEPOINT - identify a point in a transaction to which you can
later roll back
– ROLLBACK - restore database to original since the last
COMMIT
– SET TRANSACTION - Change transaction options like
isolation level and what rollback segment to use
SQL Select
SELECT [ALL | DISTINCT] columnname1
[,columnname2] FROM tablename1
[,tablename2] [WHERE condition]
[ and|or condition...]
[GROUP BY column-list] [HAVING conditions]
[ORDER BY column-list [ASC | DESC] ]
Database & Testing
• Database Testing
• Database migration testing
• SQL Tuning or SQL Optimization
Thank You all for attention! 
http://qagroup.com.ua/

More Related Content

What's hot

What is SQL Server?
What is SQL Server?What is SQL Server?
What is SQL Server?CPD INDIA
 
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
 
Oracle PL/SQL online training | PL/SQL online Training
Oracle PL/SQL online training | PL/SQL online TrainingOracle PL/SQL online training | PL/SQL online Training
Oracle PL/SQL online training | PL/SQL online Trainingsuresh
 
Introduction to structured query language (sql)
Introduction to structured query language (sql)Introduction to structured query language (sql)
Introduction to structured query language (sql)Dhani Ahmad
 
SQL: Structured Query Language
SQL: Structured Query LanguageSQL: Structured Query Language
SQL: Structured Query LanguageRohit Bisht
 
SQL SERVER Training in Pune Slides
SQL SERVER Training in Pune SlidesSQL SERVER Training in Pune Slides
SQL SERVER Training in Pune Slidesenosislearningcom
 
Database Architecture and Basic Concepts
Database Architecture and Basic ConceptsDatabase Architecture and Basic Concepts
Database Architecture and Basic ConceptsTony Wong
 
Structured query language(sql)ppt
Structured query language(sql)pptStructured query language(sql)ppt
Structured query language(sql)pptGowarthini
 
Sql – Structured Query Language
Sql – Structured Query LanguageSql – Structured Query Language
Sql – Structured Query Languagepandey3045_bit
 
Cs 371-lecture-02
Cs 371-lecture-02Cs 371-lecture-02
Cs 371-lecture-02Iqra Tariq
 

What's hot (20)

Sql commands
Sql commandsSql commands
Sql commands
 
What is SQL Server?
What is SQL Server?What is SQL Server?
What is SQL Server?
 
Sql intro & ddl 1
Sql intro & ddl 1Sql intro & ddl 1
Sql intro & ddl 1
 
Sql commands
Sql commandsSql commands
Sql commands
 
Ms sql-server
Ms sql-serverMs sql-server
Ms sql-server
 
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)
 
The Smartpath Information Systems | BASIC RDBMS CONCEPTS
The Smartpath Information Systems | BASIC RDBMS CONCEPTSThe Smartpath Information Systems | BASIC RDBMS CONCEPTS
The Smartpath Information Systems | BASIC RDBMS CONCEPTS
 
DBMS Notes: DDL DML DCL
DBMS Notes: DDL DML DCLDBMS Notes: DDL DML DCL
DBMS Notes: DDL DML DCL
 
Oracle PL/SQL online training | PL/SQL online Training
Oracle PL/SQL online training | PL/SQL online TrainingOracle PL/SQL online training | PL/SQL online Training
Oracle PL/SQL online training | PL/SQL online Training
 
Sql basics
Sql basicsSql basics
Sql basics
 
Introduction to structured query language (sql)
Introduction to structured query language (sql)Introduction to structured query language (sql)
Introduction to structured query language (sql)
 
Sql server T-sql basics ppt-3
Sql server T-sql basics  ppt-3Sql server T-sql basics  ppt-3
Sql server T-sql basics ppt-3
 
SQL: Structured Query Language
SQL: Structured Query LanguageSQL: Structured Query Language
SQL: Structured Query Language
 
Sql and Sql commands
Sql and Sql commandsSql and Sql commands
Sql and Sql commands
 
Introduction to mysql part 1
Introduction to mysql part 1Introduction to mysql part 1
Introduction to mysql part 1
 
SQL SERVER Training in Pune Slides
SQL SERVER Training in Pune SlidesSQL SERVER Training in Pune Slides
SQL SERVER Training in Pune Slides
 
Database Architecture and Basic Concepts
Database Architecture and Basic ConceptsDatabase Architecture and Basic Concepts
Database Architecture and Basic Concepts
 
Structured query language(sql)ppt
Structured query language(sql)pptStructured query language(sql)ppt
Structured query language(sql)ppt
 
Sql – Structured Query Language
Sql – Structured Query LanguageSql – Structured Query Language
Sql – Structured Query Language
 
Cs 371-lecture-02
Cs 371-lecture-02Cs 371-lecture-02
Cs 371-lecture-02
 

Viewers also liked

Basic Database Testing
Basic Database TestingBasic Database Testing
Basic Database TestingKumar S
 
Database testing in postgresql query
Database testing  in postgresql query Database testing  in postgresql query
Database testing in postgresql query mohammed najim
 
Database testing for beginners
Database testing for beginnersDatabase testing for beginners
Database testing for beginnersSEEDInfotech1
 
Testing Database Changes
Testing Database ChangesTesting Database Changes
Testing Database ChangesSazed Monsur
 
Testing database content with DBUnit. My experience.
Testing database content with DBUnit. My experience.Testing database content with DBUnit. My experience.
Testing database content with DBUnit. My experience.Serhii Kartashov
 
xUnit Style Database Testing
xUnit Style Database TestingxUnit Style Database Testing
xUnit Style Database TestingChris Oldwood
 
Testing database applications with QuickCheck
Testing database applications with QuickCheckTesting database applications with QuickCheck
Testing database applications with QuickCheckLaura M. Castro
 
System Testing and Integration: Test Strategy for Brahmaputra
System Testing and Integration: Test Strategy for BrahmaputraSystem Testing and Integration: Test Strategy for Brahmaputra
System Testing and Integration: Test Strategy for BrahmaputraOPNFV
 
ICT Project Management
ICT Project ManagementICT Project Management
ICT Project ManagementSarang Rajale
 
Database Web Application Usability Testing
Database Web Application Usability TestingDatabase Web Application Usability Testing
Database Web Application Usability TestingTim Broadwater
 
Security testing
Security testingSecurity testing
Security testingbaskar p
 
System testing ppt
System testing pptSystem testing ppt
System testing pptL ESHWAR
 
01 software test engineering (manual testing)
01 software test engineering (manual testing)01 software test engineering (manual testing)
01 software test engineering (manual testing)Siddireddy Balu
 

Viewers also liked (17)

Basic Database Testing
Basic Database TestingBasic Database Testing
Basic Database Testing
 
Database Testing
Database TestingDatabase Testing
Database Testing
 
Database testing
Database testingDatabase testing
Database testing
 
Database testing in postgresql query
Database testing  in postgresql query Database testing  in postgresql query
Database testing in postgresql query
 
Database testing for beginners
Database testing for beginnersDatabase testing for beginners
Database testing for beginners
 
Testing Database Changes
Testing Database ChangesTesting Database Changes
Testing Database Changes
 
Database testing
Database testingDatabase testing
Database testing
 
Testing database content with DBUnit. My experience.
Testing database content with DBUnit. My experience.Testing database content with DBUnit. My experience.
Testing database content with DBUnit. My experience.
 
xUnit Style Database Testing
xUnit Style Database TestingxUnit Style Database Testing
xUnit Style Database Testing
 
Testing database applications with QuickCheck
Testing database applications with QuickCheckTesting database applications with QuickCheck
Testing database applications with QuickCheck
 
System Testing and Integration: Test Strategy for Brahmaputra
System Testing and Integration: Test Strategy for BrahmaputraSystem Testing and Integration: Test Strategy for Brahmaputra
System Testing and Integration: Test Strategy for Brahmaputra
 
Integration test
Integration testIntegration test
Integration test
 
ICT Project Management
ICT Project ManagementICT Project Management
ICT Project Management
 
Database Web Application Usability Testing
Database Web Application Usability TestingDatabase Web Application Usability Testing
Database Web Application Usability Testing
 
Security testing
Security testingSecurity testing
Security testing
 
System testing ppt
System testing pptSystem testing ppt
System testing ppt
 
01 software test engineering (manual testing)
01 software test engineering (manual testing)01 software test engineering (manual testing)
01 software test engineering (manual testing)
 

Similar to Software Database and Testing

Similar to Software Database and Testing (20)

SQL
SQLSQL
SQL
 
Introduction to SQL, SQL*Plus
Introduction to SQL, SQL*PlusIntroduction to SQL, SQL*Plus
Introduction to SQL, SQL*Plus
 
Unit I Database concepts - RDBMS & ORACLE
Unit I  Database concepts - RDBMS & ORACLEUnit I  Database concepts - RDBMS & ORACLE
Unit I Database concepts - RDBMS & ORACLE
 
Module02
Module02Module02
Module02
 
Relational Database Language.pptx
Relational Database Language.pptxRelational Database Language.pptx
Relational Database Language.pptx
 
Data Base Management System.pdf
Data Base Management System.pdfData Base Management System.pdf
Data Base Management System.pdf
 
Sql tutorial
Sql tutorialSql tutorial
Sql tutorial
 
PPT SQL CLASS.pptx
PPT SQL CLASS.pptxPPT SQL CLASS.pptx
PPT SQL CLASS.pptx
 
Oracle 11g SQL Overview
Oracle 11g SQL OverviewOracle 11g SQL Overview
Oracle 11g SQL Overview
 
Relational Database.pptx
Relational Database.pptxRelational Database.pptx
Relational Database.pptx
 
Group Members
Group MembersGroup Members
Group Members
 
Complete first chapter rdbm 17332
Complete first chapter rdbm 17332Complete first chapter rdbm 17332
Complete first chapter rdbm 17332
 
Oracle Fundamental and PL-SQL.docx
Oracle Fundamental and PL-SQL.docxOracle Fundamental and PL-SQL.docx
Oracle Fundamental and PL-SQL.docx
 
SQL_NOTES.pdf
SQL_NOTES.pdfSQL_NOTES.pdf
SQL_NOTES.pdf
 
SQL Commands
SQL Commands SQL Commands
SQL Commands
 
Oracle Database Overview
Oracle Database OverviewOracle Database Overview
Oracle Database Overview
 
dbs class 7.ppt
dbs class 7.pptdbs class 7.ppt
dbs class 7.ppt
 
sql-commands.pdf
sql-commands.pdfsql-commands.pdf
sql-commands.pdf
 
SQL-Server Database.pdf
SQL-Server Database.pdfSQL-Server Database.pdf
SQL-Server Database.pdf
 
Unit - II.pptx
Unit - II.pptxUnit - II.pptx
Unit - II.pptx
 

More from QualityAssuranceGroup

Дискутон "Садомазо управління ІТ проектів"
Дискутон "Садомазо управління ІТ проектів"Дискутон "Садомазо управління ІТ проектів"
Дискутон "Садомазо управління ІТ проектів"QualityAssuranceGroup
 
Тестування Програмного Забезпечення на Практиці - Червень 2014
Тестування Програмного Забезпечення на Практиці - Червень 2014Тестування Програмного Забезпечення на Практиці - Червень 2014
Тестування Програмного Забезпечення на Практиці - Червень 2014QualityAssuranceGroup
 
Презентація Курсу "Тестування Програмного Забезпечення на Практиці" QAGroup...
Презентація Курсу "Тестування Програмного Забезпечення на Практиці"   QAGroup...Презентація Курсу "Тестування Програмного Забезпечення на Практиці"   QAGroup...
Презентація Курсу "Тестування Програмного Забезпечення на Практиці" QAGroup...QualityAssuranceGroup
 
Керування Часом у Тестуванні ПЗ
Керування Часом у Тестуванні ПЗКерування Часом у Тестуванні ПЗ
Керування Часом у Тестуванні ПЗQualityAssuranceGroup
 
Software Databases - Easy Start with Quality Assurance Group
Software Databases - Easy Start with Quality Assurance GroupSoftware Databases - Easy Start with Quality Assurance Group
Software Databases - Easy Start with Quality Assurance GroupQualityAssuranceGroup
 
Mobile Applications Testing ( by Oleksandr Yablonskiy)
Mobile Applications Testing ( by Oleksandr Yablonskiy)Mobile Applications Testing ( by Oleksandr Yablonskiy)
Mobile Applications Testing ( by Oleksandr Yablonskiy)QualityAssuranceGroup
 
Презентація Курсу "Основи Тестування Програмного Забезпечення" - 2014
Презентація Курсу "Основи Тестування Програмного Забезпечення" - 2014Презентація Курсу "Основи Тестування Програмного Забезпечення" - 2014
Презентація Курсу "Основи Тестування Програмного Забезпечення" - 2014QualityAssuranceGroup
 
Estimates in Software Development and Testing
Estimates in Software Development and TestingEstimates in Software Development and Testing
Estimates in Software Development and TestingQualityAssuranceGroup
 

More from QualityAssuranceGroup (10)

SE MBA Project Management
SE MBA Project ManagementSE MBA Project Management
SE MBA Project Management
 
Дискутон "Садомазо управління ІТ проектів"
Дискутон "Садомазо управління ІТ проектів"Дискутон "Садомазо управління ІТ проектів"
Дискутон "Садомазо управління ІТ проектів"
 
Тестування Програмного Забезпечення на Практиці - Червень 2014
Тестування Програмного Забезпечення на Практиці - Червень 2014Тестування Програмного Забезпечення на Практиці - Червень 2014
Тестування Програмного Забезпечення на Практиці - Червень 2014
 
Презентація Курсу "Тестування Програмного Забезпечення на Практиці" QAGroup...
Презентація Курсу "Тестування Програмного Забезпечення на Практиці"   QAGroup...Презентація Курсу "Тестування Програмного Забезпечення на Практиці"   QAGroup...
Презентація Курсу "Тестування Програмного Забезпечення на Практиці" QAGroup...
 
Керування Часом у Тестуванні ПЗ
Керування Часом у Тестуванні ПЗКерування Часом у Тестуванні ПЗ
Керування Часом у Тестуванні ПЗ
 
Software Databases - Easy Start with Quality Assurance Group
Software Databases - Easy Start with Quality Assurance GroupSoftware Databases - Easy Start with Quality Assurance Group
Software Databases - Easy Start with Quality Assurance Group
 
Mobile Applications Testing ( by Oleksandr Yablonskiy)
Mobile Applications Testing ( by Oleksandr Yablonskiy)Mobile Applications Testing ( by Oleksandr Yablonskiy)
Mobile Applications Testing ( by Oleksandr Yablonskiy)
 
The Essentials of Software Testing
The Essentials of Software Testing The Essentials of Software Testing
The Essentials of Software Testing
 
Презентація Курсу "Основи Тестування Програмного Забезпечення" - 2014
Презентація Курсу "Основи Тестування Програмного Забезпечення" - 2014Презентація Курсу "Основи Тестування Програмного Забезпечення" - 2014
Презентація Курсу "Основи Тестування Програмного Забезпечення" - 2014
 
Estimates in Software Development and Testing
Estimates in Software Development and TestingEstimates in Software Development and Testing
Estimates in Software Development and Testing
 

Recently uploaded

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 

Recently uploaded (20)

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 

Software Database and Testing

  • 2. Agenda items • Introduction to databases ▫ Database models ▫ Types of Keys in Database ▫ Types of Table Relationships ▫ Database Diagram • Structured Query Language ▫ SQL Command Types ▫ SQL Select Command  Joining Tables • Database & Testing ▫ Database Testing ▫ Database migration testing ▫ SQL Tuning or SQL Optimization
  • 3. Database Models • Hierarchical Model • Network Model • Relational Model • Object/Relational Model • Object-Oriented Model • Semi structured Model • Associative Model • Entity-Attribute-Value (EAV) data model • Context Model
  • 4. Types of Keys in Database • Primary key • Foreign key • Compound key
  • 5. Types of Table Relationships A relationship works by matching data in key columns — usually columns with the same name in both tables. In most cases, the relationship matches the primary key from one table, which provides a unique identifier for each row, with an entry in the foreign key in the other table. • One-to-Many Relationships • Many-to-Many Relationships • One-to-One Relationships
  • 6. Structured Query Language SQL (Structured Query Language) A special purpose programming language designed for managing data in relational database management systems (RDBMS).
  • 7. SQL Command Types • Data Definition Language (DDL) • Data Manipulation Language (DML) • Data Control Language (DCL) • Transaction Control Language (TCL)
  • 8. Data Definition Language Data Definition Language (DDL) statements are used to define the database structure or schema. Some examples: – CREATE - to create objects in the database – ALTER - alters the structure of the database – DROP - delete objects from the database – TRUNCATE - remove all records from a table, including all spaces allocated for the records are removed – COMMENT - add comments to the data dictionary – RENAME - rename an object
  • 9. Data Manipulation Language Data Manipulation Language (DML) statements are used for managing data within schema objects. Some examples:  SELECT - retrieve data from the a database  INSERT - insert data into a table  UPDATE - updates existing data within a table  DELETE - deletes all records from a table, the space for the records remain  MERGE - UPSERT operation (insert or update)  CALL - call a PL/SQL or Java subprogram  EXPLAIN PLAN - explain access path to data  LOCK TABLE - control concurrency
  • 10. Data Control Language Data Control Language (DCL) statements. Some examples: – GRANT - gives user's access privileges to database – REVOKE - withdraw access privileges given with the GRANT command
  • 11. Transaction Control Language Transaction Control Language (TCL) statements are used to manage the changes made by DML statements. It allows statements to be grouped together into logical transactions. – COMMIT - save work done – SAVEPOINT - identify a point in a transaction to which you can later roll back – ROLLBACK - restore database to original since the last COMMIT – SET TRANSACTION - Change transaction options like isolation level and what rollback segment to use
  • 12. SQL Select SELECT [ALL | DISTINCT] columnname1 [,columnname2] FROM tablename1 [,tablename2] [WHERE condition] [ and|or condition...] [GROUP BY column-list] [HAVING conditions] [ORDER BY column-list [ASC | DESC] ]
  • 13. Database & Testing • Database Testing • Database migration testing • SQL Tuning or SQL Optimization
  • 14. Thank You all for attention!  http://qagroup.com.ua/