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

More Related Content

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

What's hot

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

Similar to PostgreSQL Tutorial For Beginners | Edureka

PDF
PostgreSQL Tutorial for Beginners | Edureka
PPTX
Relational Database Design
PPT
D B M S Animate
PPTX
T-SQL Overview
PDF
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
PDF
Introduction to SQL..pdf
PPTX
SQL.pptx Data Types Database Operations Types
PPTX
Dbms and sqlpptx
PPTX
structured query language elmarsi and navathe edition 7th SQL Chapter06.pptx
PPTX
SQL Database- Heba-14.pptx - database slide training
PPT
Chapter06.ppt
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
Relational Database Design
D B M S Animate
T-SQL Overview
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Introduction to SQL..pdf
SQL.pptx Data Types Database Operations Types
Dbms and sqlpptx
structured query language elmarsi and navathe edition 7th SQL Chapter06.pptx
SQL Database- Heba-14.pptx - database slide training
Chapter06.ppt
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
Introduction to DevOps | Edureka
PDF
Python Programming Tutorial | Edureka
PDF
AWS Cloud Practitioner Tutorial | Edureka
PDF
Tableau Tutorial for Data Science | Edureka
PDF
Kubernetes Installation on Ubuntu | Edureka
PDF
Top 5 Trending Business Intelligence Tools | Edureka
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
PDF
Top Maven Interview Questions in 2020 | Edureka
PDF
How to Deploy Java Web App in AWS| Edureka
PDF
Cognitive AI Tutorial | Edureka
PDF
EA Algorithm in Machine Learning | Edureka
PDF
Top 10 Dying Programming Languages in 2020 | 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
Introduction to DevOps | Edureka
Python Programming Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
Tableau Tutorial for Data Science | Edureka
Kubernetes Installation on Ubuntu | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Top Maven Interview Questions in 2020 | Edureka
How to Deploy Java Web App in AWS| Edureka
Cognitive AI Tutorial | Edureka
EA Algorithm in Machine Learning | Edureka
Top 10 Dying Programming Languages in 2020 | 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
DevFest El Jadida 2025 - Product Thinking
PDF
ElyriaSoftware — Powering the Future with Blockchain Innovation
PDF
Eredità digitale sugli smartphone: cosa resta di noi nei dispositivi mobili
DOCX
iRobot Post‑Mortem and Alternative Paths - Discussion Document for Boards and...
PDF
Vibe Coding vs. Spec-Driven Development [Free Meetup]
PPTX
Conversational Agents – Building Intelligent Assistants [Virtual Hands-on Wor...
PPTX
Coded Agents – with UiPath SDK + LangGraph [Virtual Hands-on Workshop]
PPTX
Chapter 3 Introduction to number system.pptx
PDF
API-First Architecture in Financial Systems
PDF
Is It Possible to Have Wi-Fi Without an Internet Provider
PDF
Internet_of_Things_IoT_for_Next_Generation_Smart_Systems_Utilizing.pdf
PPTX
wob-report.pptxwob-report.pptxwob-report.pptx
PDF
The major tech developments for 2026 by Pluralsight, a research and training ...
PPTX
Cybersecurity Best Practices - Step by Step guidelines
PPTX
Building Cyber Resilience for 2026: Best Practices for a Secure, AI-Driven Bu...
PDF
Decoding the DNA: The Digital Networks Act, the Open Internet, and IP interco...
PPTX
Protecting Data in an AI Driven World - Cybersecurity in 2026
PPTX
THIS IS CYBER SECURITY NOTES USED IN CLASS ON VARIOUS TOPICS USED IN CYBERSEC...
PPTX
AI in Cybersecurity: Digital Defense by Yasir Naveed Riaz
PPTX
Data Privacy and Protection: Safeguarding Information in a Connected World
DevFest El Jadida 2025 - Product Thinking
ElyriaSoftware — Powering the Future with Blockchain Innovation
Eredità digitale sugli smartphone: cosa resta di noi nei dispositivi mobili
iRobot Post‑Mortem and Alternative Paths - Discussion Document for Boards and...
Vibe Coding vs. Spec-Driven Development [Free Meetup]
Conversational Agents – Building Intelligent Assistants [Virtual Hands-on Wor...
Coded Agents – with UiPath SDK + LangGraph [Virtual Hands-on Workshop]
Chapter 3 Introduction to number system.pptx
API-First Architecture in Financial Systems
Is It Possible to Have Wi-Fi Without an Internet Provider
Internet_of_Things_IoT_for_Next_Generation_Smart_Systems_Utilizing.pdf
wob-report.pptxwob-report.pptxwob-report.pptx
The major tech developments for 2026 by Pluralsight, a research and training ...
Cybersecurity Best Practices - Step by Step guidelines
Building Cyber Resilience for 2026: Best Practices for a Secure, AI-Driven Bu...
Decoding the DNA: The Digital Networks Act, the Open Internet, and IP interco...
Protecting Data in an AI Driven World - Cybersecurity in 2026
THIS IS CYBER SECURITY NOTES USED IN CLASS ON VARIOUS TOPICS USED IN CYBERSEC...
AI in Cybersecurity: Digital Defense by Yasir Naveed Riaz
Data Privacy and Protection: Safeguarding Information in a Connected World

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