Movatterモバイル変換


[0]ホーム

URL:


Edureka!, profile picture
Uploaded byEdureka!
2,079 views

PostgreSQL Tutorial For Beginners | Edureka

The document discusses various types of Database Management Systems (DBMS), particularly focusing on SQL and PostgreSQL, an advanced open-source relational database. It explains SQL commands, attributes, normalization forms, and different facets of database constraints and joins. Key topics include transaction control, data integrity, types of attributes, and the organization of database tables to minimize redundancy.

Embed presentation

TYPES OF DBMSWHAT IS SQL?WHAT IS POSTGRESQL?FEATURES OF POSTGRESQLSQL COMMAND CATEGORIESINSTALL POSTGRESQLwww.edureka.co
www.edureka.co
HierarchicalDBMSNetworkDBMSRelationalDBMSObject-OrientedDBMSwww.edureka.co
www.edureka.co
A standardizedprogramming languagewhich is used formanaging relationaldatabases.With SQL, you canmodify databases, add,update or delete rowsof data, retrievesubsets of informationfrom a database and,any moreRelational databaseslike MySQL Databases,oracle, Ms SQL Server,Sybase etc use SQL.Queries and other SQLoperations are writtenas statements.Example: select, insert,add, update, delete,create, alter, truncate.www.edureka.co
www.edureka.co
PostgreSQLis an open-source object relational databasesystem with a 30+ years of active development in the industry.World’s Most Advanced Open Source Relational Databasewww.edureka.co
www.edureka.co
Data Types Data Integrity PerformanceReliability Security Extensibilitywww.edureka.co
www.edureka.cowww.edureka.co
www.edureka.co
.Transaction ControlLanguage(TCL)COMMIT, ROLLBACK,SAVEPOINTData ControlLanguage(DCL)GRANT, INVOKEData ManipulationLanguage(DML)SELECT, INSERT,UPDATE, DELETECREATE, DROP, ALTERData Definition Language(DDL)Includes the commands whichmainly deal with thetransaction of database.Includes commands whichmainly deals with the rights,permissions and other controlsof the database system.The SQL commands that dealswith the manipulation of datapresent in database.Consists of the commands thatcan be used to define thedatabase schema.www.edureka.co
www.edureka.co
www.edureka.co
www.edureka.co
www.edureka.co
Composite vs SimpleSingle vs MultivaluedStored vs DerivedComplex AttributesENTITY &ATTRIBUTESwww.edureka.co
ENTITY &ATTRIBUTESComposite vs SimpleA composite attribute can be divided into smaller subparts. These subpartsrepresent individual basic attributes with their own meanings.Attributes which are not divisible are simply known as simple or atomicattributes.AddressStreet _address City State ZipNumber Street House_numberwww.edureka.co
ENTITY &ATTRIBUTESComposite vs SimpleSingle vs MultivaluedAttributes having single value for a particular entity are known as single-valued attributes.A multivalued attribute may have lower and upper bounds to constrain thenumber of values allowed for each individual entity.www.edureka.co
ENTITY &ATTRIBUTESComposite vs SimpleSingle vs MultivaluedStored vs DerivedAttributes which are derived from the real entities are known as derivedattributes.The stored attribute are such attributes which are already stored in thedatabase and from which the value of another attribute is derived iscalled stored attribute.Age Birth_datewww.edureka.co
ENTITY &ATTRIBUTESComposite vs SimpleSingle vs MultivaluedStored vs DerivedComplex AttributesAttributes that can be represented by grouping composite attributesbetween (), separating the components with commas, and by displaying themultivalued attributes between [] are known as complex attributes.{Address_phone({Phone(Area_code,Phone_number)},Address(Street_address{Number,Street, flat_number),City,State,Zip))}www.edureka.co
www.edureka.co
CandidateKeySuperKeyPrimaryKeyAlternateKeyForeignKeywww.edureka.co
www.edureka.co
NOT NULL UNIQUE CHECK DEFAULT INDEXwww.edureka.coEnsures that a NULLvalue cannot bestored in a columnThis constraintmakes sure that allthe values in acolumn aredifferentThis constraintensures that all thevalues in a columnsatisfy a specificcondition.This constraintconsists of a set ofdefault values for acolumn when novalue is specified.This constraint isused to create andretrieve data fromthe database veryquickly.www.edureka.coCONSTRAINTS IN DATABASE
www.edureka.co
A technique that organizes tables in such a way that redundancy and dependency of data is reduced.BCNF3 NF2 NF1 NFwww.edureka.co
Salutation Full Name Address Movies Rented CategoryMs. Alice Johnson 1st Street House No 3 Mission Impossible:Fallout, Clash of TitansAction, ActionMr. David Allen 3rd Street 45 Interstellar, Edge OfTomorrowSci-Fi, Sci-FiMr. David Allen 7th Avenue Mission Impossible:FalloutActionwww.edureka.co
NORMALIZATIONFirst Normal Form2 NF3 NFBCNFEach table cell should have a single value. So, basically all the records must be unique.Salutation Full Name Address Movies RentedMs. Alice Johnson1st Street HouseNo 3MissionImpossible: FalloutMs. Alice Johnson1st Street HouseNo 3Clash of TitansMr. David Allen 3rd Street 45 InterstellarMr. David Allen 3rd Street 45 Edge Of TomorrowMr. David Allen 7th AvenueMissionImpossible: Falloutwww.edureka.co
NORMALIZATION3 NFBCNFDatabase should be 1NF and should also have single column primary key.1 NFSecond Normal FormSalutation Full Name Address Movies_RentedID Salutation Full Name Address1 Ms AliceJohnson1st StreetHouse No32 Mr David Allen 3rd Street453 Mr David Allen 7th AvenueID Movies_Rented1 Mission Impossible:Fallout1 Clash of Titans2 Interstellar2 Edge Of Tomorrow3 Mission Impossible:FalloutTable 1Table 2www.edureka.co
NORMALIZATIONBCNFThe database should be in 2NF and must not have any transitive functional dependencies.1 NF2 NFThird Normal FormID Full Name Address Salutation_ID ID Movies_RentedSalutation_ID Salutation1 Mr.2 Ms.3 Mrs.4 Dr.Table 1 Table 2Table 3www.edureka.co
NORMALIZATION1 NF2 NF3 NFBoyce-Codd NormalFormIf your database is in 3rd Normal Form, there would be some scenarios where anomalieswould be present, if you have more than candidate key. Then BCNF comes into role, whereyou divide your tables further so that there would be only one candidate key present.www.edureka.co
www.edureka.co
www.edureka.co
ARITHMETICOPERATORS+, -, *, /, %BITWISEOPERATORS&, |, ^COMPARISONOPERATORS==, <, >, <=, >= <>COMPOUNDOPERATORS+=, *=, -=, /=,%=,&=, ^-=, |*=www.edureka.co
www.edureka.co
Nested queries are SQL queries which have an outer query and inner subquery. The subquery is a query nested within anotherquery such as SELECT, INSERT, UPDATE or DELETE.SELECT lastname, firstnameFROM employeesWHERE addressCode IN (SELECT addressCodeFROM officeWHERE country = “INDIA”)OUTER QUERY SUBQUERY OR INNER QUERYwww.edureka.co
www.edureka.co
UNIONCombines rows from boththe queriesINTERSECTKeeps only those rows whichare common in both thequeries.MINUSKeeps rows from the left querywhich are not included in theright queryLEFT QUERY RIGHT QUERY FINAL RESULTwww.edureka.co
Copyright © 2017, edureka and/or its affiliates. All rights reserved.www.edureka.co
www.edureka.co
www.edureka.co
www.edureka.co
www.edureka.co
JOINS in SQL are commands which are used to combine rows from two or more tables, based on a related columnbetween those tables. They are predominantly used when a user is trying to extract data from tables which haveone-to-many or many-to-many relationships between them.What are Joins?www.edureka.co
TYPES OFJOINSINNER JOINFULL JOINLEFT JOINRIGHT JOINwww.edureka.co
www.edureka.co
A view in SQL is a single table, which is derived from other tablesQueryROWSVIEWSCOLUMNSwww.edureka.co
www.edureka.co
www.edureka.co
www.edureka.co
www.edureka.co
www.edureka.co
www.edureka.co
www.edureka.co

Recommended

PPTX
PostgreSQL- An Introduction
PPTX
PostgreSQL Database Slides
PPTX
PostgreSQL.pptx
PDF
Get to know PostgreSQL!
ODP
Introduction to PostgreSQL
PPTX
PPTX
Getting started with postgresql
PDF
Postgresql tutorial
PDF
MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...
PPTX
What to Expect From Oracle database 19c
PPTX
Introduction to Oracle Database
PDF
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
PPTX
The Basics of MongoDB
PPT
Dataguard presentation
PPTX
Why oracle data guard new features in oracle 18c, 19c
ODP
OpenGurukul : Database : PostgreSQL
PDF
Solving PostgreSQL wicked problems
PPTX
Database Performance Tuning
PPTX
SQL Basics
PDF
Oracle SQL Basics
PDF
MS-SQL SERVER ARCHITECTURE
PDF
SQL Server Tuning to Improve Database Performance
PDF
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
PPS
Oracle Database Overview
PPT
03 Writing Control Structures, Writing with Compatible Data Types Using Expli...
PDF
Oracle statistics by example
PPTX
Data Guard Architecture & Setup
PPTX
Oracle sql high performance tuning
PDF
PostgreSQL Tutorial for Beginners | Edureka
PPTX
T-SQL Overview

More Related Content

PPTX
PostgreSQL- An Introduction
PPTX
PostgreSQL Database Slides
PPTX
PostgreSQL.pptx
PDF
Get to know PostgreSQL!
ODP
Introduction to PostgreSQL
PPTX
PPTX
Getting started with postgresql
PDF
Postgresql tutorial
PostgreSQL- An Introduction
PostgreSQL Database Slides
PostgreSQL.pptx
Get to know PostgreSQL!
Introduction to PostgreSQL
Getting started with postgresql
Postgresql tutorial

What's hot

PDF
MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...
PPTX
What to Expect From Oracle database 19c
PPTX
Introduction to Oracle Database
PDF
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
PPTX
The Basics of MongoDB
PPT
Dataguard presentation
PPTX
Why oracle data guard new features in oracle 18c, 19c
ODP
OpenGurukul : Database : PostgreSQL
PDF
Solving PostgreSQL wicked problems
PPTX
Database Performance Tuning
PPTX
SQL Basics
PDF
Oracle SQL Basics
PDF
MS-SQL SERVER ARCHITECTURE
PDF
SQL Server Tuning to Improve Database Performance
PDF
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
PPS
Oracle Database Overview
PPT
03 Writing Control Structures, Writing with Compatible Data Types Using Expli...
PDF
Oracle statistics by example
PPTX
Data Guard Architecture & Setup
PPTX
Oracle sql high performance tuning
MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...
What to Expect From Oracle database 19c
Introduction to Oracle Database
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
The Basics of MongoDB
Dataguard presentation
Why oracle data guard new features in oracle 18c, 19c
OpenGurukul : Database : PostgreSQL
Solving PostgreSQL wicked problems
Database Performance Tuning
SQL Basics
Oracle SQL Basics
MS-SQL SERVER ARCHITECTURE
SQL Server Tuning to Improve Database Performance
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Oracle Database Overview
03 Writing Control Structures, Writing with Compatible Data Types Using Expli...
Oracle statistics by example
Data Guard Architecture & Setup
Oracle sql high performance tuning

Similar to PostgreSQL Tutorial For Beginners | Edureka

PDF
PostgreSQL Tutorial for Beginners | Edureka
PPTX
T-SQL Overview
PPTX
Relational Database Design
PDF
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
PDF
Introduction to SQL..pdf
PPT
D B M S Animate
PPT
Chapter06.ppt
PPTX
SQL.pptx Data Types Database Operations Types
PPTX
structured query language elmarsi and navathe edition 7th SQL Chapter06.pptx
PPTX
SQL Database- Heba-14.pptx - database slide training
PPTX
Dbms and sqlpptx
PPTX
Dbms sql-final
PPTX
Exception & Database
PDF
dbms final.pdf
PDF
Lecture05sql 110406195130-phpapp02
PPTX
Advance Sqlite3
PPTX
429cf300-0dc7-4c2e-9280-d918d69e3cb4.pptx
PPT
Sql1
 
PPT
Sql server building a database ppt 12
PPTX
Data modeling tips from the trenches
PostgreSQL Tutorial for Beginners | Edureka
T-SQL Overview
Relational Database Design
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Introduction to SQL..pdf
D B M S Animate
Chapter06.ppt
SQL.pptx Data Types Database Operations Types
structured query language elmarsi and navathe edition 7th SQL Chapter06.pptx
SQL Database- Heba-14.pptx - database slide training
Dbms and sqlpptx
Dbms sql-final
Exception & Database
dbms final.pdf
Lecture05sql 110406195130-phpapp02
Advance Sqlite3
429cf300-0dc7-4c2e-9280-d918d69e3cb4.pptx
Sql1
 
Sql server building a database ppt 12
Data modeling tips from the trenches

More from Edureka!

PDF
Python Programming Tutorial | Edureka
PDF
Introduction to DevOps | Edureka
PDF
Top 5 Trending Business Intelligence Tools | Edureka
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
PDF
Kubernetes Installation on Ubuntu | Edureka
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
PDF
Tableau Tutorial for Data Science | Edureka
PDF
Cognitive AI Tutorial | Edureka
PDF
AWS Cloud Practitioner Tutorial | Edureka
PDF
Top Maven Interview Questions in 2020 | Edureka
PDF
How to Deploy Java Web App in AWS| Edureka
PDF
EA Algorithm in Machine Learning | Edureka
PDF
Blue Prism Top Interview Questions | Edureka
PDF
RPA in 2020 | Edureka
PDF
Importance of Digital Marketing | Edureka
PDF
Linux Mint Tutorial | Edureka
PDF
Big Data on AWS Tutorial | Edureka
PDF
Email Notifications in Jenkins | Edureka
PDF
What to learn during the 21 days Lockdown | Edureka
PDF
Top 5 PMP Certifications | Edureka
Python Programming Tutorial | Edureka
Introduction to DevOps | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
Kubernetes Installation on Ubuntu | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Tableau Tutorial for Data Science | Edureka
Cognitive AI Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
Top Maven Interview Questions in 2020 | Edureka
How to Deploy Java Web App in AWS| Edureka
EA Algorithm in Machine Learning | Edureka
Blue Prism Top Interview Questions | Edureka
RPA in 2020 | Edureka
Importance of Digital Marketing | Edureka
Linux Mint Tutorial | Edureka
Big Data on AWS Tutorial | Edureka
Email Notifications in Jenkins | Edureka
What to learn during the 21 days Lockdown | Edureka
Top 5 PMP Certifications | Edureka

Recently uploaded

PDF
Day 3 - Data and Application Security - 2nd Sight Lab Cloud Security Class
PDF
Day 1 - Cloud Security Strategy and Planning ~ 2nd Sight Lab ~ Cloud Security...
PDF
Unlocking the Power of Salesforce Architecture: Frameworks for Effective Solu...
PDF
Making Sense of Raster: From Bit Depth to Better Workflows
PDF
Session 1 - Solving Semi-Structured Documents with Document Understanding
PDF
Day 5 - Red Team + Blue Team in the Cloud - 2nd Sight Lab Cloud Security Class
PDF
Real-Time Data Insight Using Microsoft Forms for Business
PDF
Eredità digitale sugli smartphone: cosa resta di noi nei dispositivi mobili
PPTX
Cloud-and-AI-Platform-FY26-Partner-Playbook.pptx
PDF
DevFest El Jadida 2025 - Product Thinking
PPTX
Unit-4-ARTIFICIAL NEURAL NETWORKS.pptx ANN ppt Artificial neural network
PPTX
Chapter 3 Introduction to number system.pptx
PDF
Internet_of_Things_IoT_for_Next_Generation_Smart_Systems_Utilizing.pdf
PDF
Dev Dives: AI that builds with you - UiPath Autopilot for effortless RPA & AP...
PPT
software-security-intro in information security.ppt
PDF
Usage Control for Process Discovery through a Trusted Execution Environment
PPTX
wob-report.pptxwob-report.pptxwob-report.pptx
PPTX
Building Cyber Resilience for 2026: Best Practices for a Secure, AI-Driven Bu...
PPTX
THIS IS CYBER SECURITY NOTES USED IN CLASS ON VARIOUS TOPICS USED IN CYBERSEC...
PPTX
cybercrime in Information security .pptx
Day 3 - Data and Application Security - 2nd Sight Lab Cloud Security Class
Day 1 - Cloud Security Strategy and Planning ~ 2nd Sight Lab ~ Cloud Security...
Unlocking the Power of Salesforce Architecture: Frameworks for Effective Solu...
Making Sense of Raster: From Bit Depth to Better Workflows
Session 1 - Solving Semi-Structured Documents with Document Understanding
Day 5 - Red Team + Blue Team in the Cloud - 2nd Sight Lab Cloud Security Class
Real-Time Data Insight Using Microsoft Forms for Business
Eredità digitale sugli smartphone: cosa resta di noi nei dispositivi mobili
Cloud-and-AI-Platform-FY26-Partner-Playbook.pptx
DevFest El Jadida 2025 - Product Thinking
Unit-4-ARTIFICIAL NEURAL NETWORKS.pptx ANN ppt Artificial neural network
Chapter 3 Introduction to number system.pptx
Internet_of_Things_IoT_for_Next_Generation_Smart_Systems_Utilizing.pdf
Dev Dives: AI that builds with you - UiPath Autopilot for effortless RPA & AP...
software-security-intro in information security.ppt
Usage Control for Process Discovery through a Trusted Execution Environment
wob-report.pptxwob-report.pptxwob-report.pptx
Building Cyber Resilience for 2026: Best Practices for a Secure, AI-Driven Bu...
THIS IS CYBER SECURITY NOTES USED IN CLASS ON VARIOUS TOPICS USED IN CYBERSEC...
cybercrime in Information security .pptx

PostgreSQL Tutorial For Beginners | Edureka

  • 2.
    TYPES OF DBMSWHATIS SQL?WHAT IS POSTGRESQL?FEATURES OF POSTGRESQLSQL COMMAND CATEGORIESINSTALL POSTGRESQLwww.edureka.co
  • 3.
  • 4.
  • 5.
  • 6.
    A standardizedprogramming languagewhichis used formanaging relationaldatabases.With SQL, you canmodify databases, add,update or delete rowsof data, retrievesubsets of informationfrom a database and,any moreRelational databaseslike MySQL Databases,oracle, Ms SQL Server,Sybase etc use SQL.Queries and other SQLoperations are writtenas statements.Example: select, insert,add, update, delete,create, alter, truncate.www.edureka.co
  • 7.
  • 8.
    PostgreSQLis an open-sourceobject relational databasesystem with a 30+ years of active development in the industry.World’s Most Advanced Open Source Relational Databasewww.edureka.co
  • 9.
  • 10.
    Data Types DataIntegrity PerformanceReliability Security Extensibilitywww.edureka.co
  • 11.
  • 12.
  • 13.
    .Transaction ControlLanguage(TCL)COMMIT, ROLLBACK,SAVEPOINTDataControlLanguage(DCL)GRANT, INVOKEData ManipulationLanguage(DML)SELECT, INSERT,UPDATE, DELETECREATE, DROP, ALTERData Definition Language(DDL)Includes the commands whichmainly deal with thetransaction of database.Includes commands whichmainly deals with the rights,permissions and other controlsof the database system.The SQL commands that dealswith the manipulation of datapresent in database.Consists of the commands thatcan be used to define thedatabase schema.www.edureka.co
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
    Composite vs SimpleSinglevs MultivaluedStored vs DerivedComplex AttributesENTITY &ATTRIBUTESwww.edureka.co
  • 19.
    ENTITY &ATTRIBUTESComposite vsSimpleA composite attribute can be divided into smaller subparts. These subpartsrepresent individual basic attributes with their own meanings.Attributes which are not divisible are simply known as simple or atomicattributes.AddressStreet _address City State ZipNumber Street House_numberwww.edureka.co
  • 20.
    ENTITY &ATTRIBUTESComposite vsSimpleSingle vs MultivaluedAttributes having single value for a particular entity are known as single-valued attributes.A multivalued attribute may have lower and upper bounds to constrain thenumber of values allowed for each individual entity.www.edureka.co
  • 21.
    ENTITY &ATTRIBUTESComposite vsSimpleSingle vs MultivaluedStored vs DerivedAttributes which are derived from the real entities are known as derivedattributes.The stored attribute are such attributes which are already stored in thedatabase and from which the value of another attribute is derived iscalled stored attribute.Age Birth_datewww.edureka.co
  • 22.
    ENTITY &ATTRIBUTESComposite vsSimpleSingle vs MultivaluedStored vs DerivedComplex AttributesAttributes that can be represented by grouping composite attributesbetween (), separating the components with commas, and by displaying themultivalued attributes between [] are known as complex attributes.{Address_phone({Phone(Area_code,Phone_number)},Address(Street_address{Number,Street, flat_number),City,State,Zip))}www.edureka.co
  • 23.
  • 24.
  • 25.
  • 26.
    NOT NULL UNIQUECHECK DEFAULT INDEXwww.edureka.coEnsures that a NULLvalue cannot bestored in a columnThis constraintmakes sure that allthe values in acolumn aredifferentThis constraintensures that all thevalues in a columnsatisfy a specificcondition.This constraintconsists of a set ofdefault values for acolumn when novalue is specified.This constraint isused to create andretrieve data fromthe database veryquickly.www.edureka.coCONSTRAINTS IN DATABASE
  • 27.
  • 28.
    A technique thatorganizes tables in such a way that redundancy and dependency of data is reduced.BCNF3 NF2 NF1 NFwww.edureka.co
  • 29.
    Salutation Full NameAddress Movies Rented CategoryMs. Alice Johnson 1st Street House No 3 Mission Impossible:Fallout, Clash of TitansAction, ActionMr. David Allen 3rd Street 45 Interstellar, Edge OfTomorrowSci-Fi, Sci-FiMr. David Allen 7th Avenue Mission Impossible:FalloutActionwww.edureka.co
  • 30.
    NORMALIZATIONFirst Normal Form2NF3 NFBCNFEach table cell should have a single value. So, basically all the records must be unique.Salutation Full Name Address Movies RentedMs. Alice Johnson1st Street HouseNo 3MissionImpossible: FalloutMs. Alice Johnson1st Street HouseNo 3Clash of TitansMr. David Allen 3rd Street 45 InterstellarMr. David Allen 3rd Street 45 Edge Of TomorrowMr. David Allen 7th AvenueMissionImpossible: Falloutwww.edureka.co
  • 31.
    NORMALIZATION3 NFBCNFDatabase shouldbe 1NF and should also have single column primary key.1 NFSecond Normal FormSalutation Full Name Address Movies_RentedID Salutation Full Name Address1 Ms AliceJohnson1st StreetHouse No32 Mr David Allen 3rd Street453 Mr David Allen 7th AvenueID Movies_Rented1 Mission Impossible:Fallout1 Clash of Titans2 Interstellar2 Edge Of Tomorrow3 Mission Impossible:FalloutTable 1Table 2www.edureka.co
  • 32.
    NORMALIZATIONBCNFThe database shouldbe in 2NF and must not have any transitive functional dependencies.1 NF2 NFThird Normal FormID Full Name Address Salutation_ID ID Movies_RentedSalutation_ID Salutation1 Mr.2 Ms.3 Mrs.4 Dr.Table 1 Table 2Table 3www.edureka.co
  • 33.
    NORMALIZATION1 NF2 NF3NFBoyce-Codd NormalFormIf your database is in 3rd Normal Form, there would be some scenarios where anomalieswould be present, if you have more than candidate key. Then BCNF comes into role, whereyou divide your tables further so that there would be only one candidate key present.www.edureka.co
  • 34.
  • 35.
  • 36.
    ARITHMETICOPERATORS+, -, *,/, %BITWISEOPERATORS&, |, ^COMPARISONOPERATORS==, <, >, <=, >= <>COMPOUNDOPERATORS+=, *=, -=, /=,%=,&=, ^-=, |*=www.edureka.co
  • 37.
  • 38.
    Nested queries areSQL queries which have an outer query and inner subquery. The subquery is a query nested within anotherquery such as SELECT, INSERT, UPDATE or DELETE.SELECT lastname, firstnameFROM employeesWHERE addressCode IN (SELECT addressCodeFROM officeWHERE country = “INDIA”)OUTER QUERY SUBQUERY OR INNER QUERYwww.edureka.co
  • 39.
  • 40.
    UNIONCombines rows fromboththe queriesINTERSECTKeeps only those rows whichare common in both thequeries.MINUSKeeps rows from the left querywhich are not included in theright queryLEFT QUERY RIGHT QUERY FINAL RESULTwww.edureka.co
  • 41.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved.www.edureka.co
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
    JOINS in SQLare commands which are used to combine rows from two or more tables, based on a related columnbetween those tables. They are predominantly used when a user is trying to extract data from tables which haveone-to-many or many-to-many relationships between them.What are Joins?www.edureka.co
  • 47.
    TYPES OFJOINSINNER JOINFULLJOINLEFT JOINRIGHT JOINwww.edureka.co
  • 48.
  • 49.
    A view inSQL is a single table, which is derived from other tablesQueryROWSVIEWSCOLUMNSwww.edureka.co
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.

[8]ページ先頭

©2009-2025 Movatter.jp