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

More Related Content

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

What's hot

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

Similar to PostgreSQL Tutorial For Beginners | Edureka

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

More from Edureka!

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

Recently uploaded

PPTX
Cloud-and-AI-Platform-FY26-Partner-Playbook.pptx
PPTX
Cybersecurity Best Practices - Step by Step guidelines
PPTX
wob-report.pptxwob-report.pptxwob-report.pptx
PPTX
DYNAMICALLY.pptx good for the teachers or students to do seminars and for tea...
PDF
Our Digital Tribe_ Cultivating Connection and Growth in Our Slack Community 🌿...
PDF
Internet_of_Things_IoT_for_Next_Generation_Smart_Systems_Utilizing.pdf
PPTX
Protecting Data in an AI Driven World - Cybersecurity in 2026
PDF
Making Sense of Raster: From Bit Depth to Better Workflows
PPTX
AI in Cybersecurity: Digital Defense by Yasir Naveed Riaz
PPTX
Coded Agents – with UiPath SDK + LangGraph [Virtual Hands-on Workshop]
PDF
Eredità digitale sugli smartphone: cosa resta di noi nei dispositivi mobili
PDF
Session 1 - Solving Semi-Structured Documents with Document Understanding
PPT
software-security-intro in information security.ppt
PPTX
From Backup to Resilience: How MSPs Are Preparing for 2026
 
PDF
Energy Storage Landscape Clean Energy Ministerial
PPTX
Building Cyber Resilience for 2026: Best Practices for a Secure, AI-Driven Bu...
PDF
Day 3 - Data and Application Security - 2nd Sight Lab Cloud Security Class
PDF
Is It Possible to Have Wi-Fi Without an Internet Provider
PPTX
Software Analysis &Design ethiopia chap-2.pptx
PDF
Unser Jahresrückblick – MarvelClient in 2025
Cloud-and-AI-Platform-FY26-Partner-Playbook.pptx
Cybersecurity Best Practices - Step by Step guidelines
wob-report.pptxwob-report.pptxwob-report.pptx
DYNAMICALLY.pptx good for the teachers or students to do seminars and for tea...
Our Digital Tribe_ Cultivating Connection and Growth in Our Slack Community 🌿...
Internet_of_Things_IoT_for_Next_Generation_Smart_Systems_Utilizing.pdf
Protecting Data in an AI Driven World - Cybersecurity in 2026
Making Sense of Raster: From Bit Depth to Better Workflows
AI in Cybersecurity: Digital Defense by Yasir Naveed Riaz
Coded Agents – with UiPath SDK + LangGraph [Virtual Hands-on Workshop]
Eredità digitale sugli smartphone: cosa resta di noi nei dispositivi mobili
Session 1 - Solving Semi-Structured Documents with Document Understanding
software-security-intro in information security.ppt
From Backup to Resilience: How MSPs Are Preparing for 2026
 
Energy Storage Landscape Clean Energy Ministerial
Building Cyber Resilience for 2026: Best Practices for a Secure, AI-Driven Bu...
Day 3 - Data and Application Security - 2nd Sight Lab Cloud Security Class
Is It Possible to Have Wi-Fi Without an Internet Provider
Software Analysis &Design ethiopia chap-2.pptx
Unser Jahresrückblick – MarvelClient in 2025

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