SlideShare une entreprise Scribd logo
1  sur  24
Introduction
Objectives After completing this lesson, you should be able to do the following:   Discuss the theoretical and physical aspects of a relational database Describe the Oracle implementation of the RDBMS and ORDBMS Describe how SQL and PL/SQL are used in the Oracle product set Describe the use and benefits of PL/SQL
System Development Life Cycle Strategy and Analysis Design Build and Document Transition Production
System Development Life Cycle Strategy and Analysis Design Build and Document Transition Production
Data Storage on Different Media Database Electronic spreadsheet Filing cabinet    SALGRADE     GRADE     LOSAL     HISAL --------- --------- --------- 17001200 212011400 314012000 420013000 530019999 DEPT    DEPTNO DNAME          LOC --------- -------------- ----------        	       10 ACCOUNTING     NEW YORK 20 RESEARCH       DALLAS 30 SALES          CHICAGO 40 OPERATIONS     BOSTON
Relational Database Concept Dr. E. F. Codd proposed the relational model  for database systems in 1970. It is the basis for the relational database management system (RDBMS). The relational model consists of the following: Collection of objects or relations Set of operators to act on the relations Data integrity for accuracy and consistency
Table Name: DEPT Table Name: EMP DEPTNO  DNAME  LOC 10  ACCOUNTING  NEW YORK 20  RESEARCH    DALLAS 30  SALES       CHICAGO 40  OPERATIONS BOSTON EMPNO     ENAME      JOB  DEPTNO 7839     KING       PRESIDENT10 7698     BLAKE      MANAGER30 7782     CLARK      MANAGER  10 7566     JONES      MANAGER20 Definition of a Relational Database A relational database is a collection of relations or two-dimensional tables. Database
Data Models Server Model ofsystemin client’smind Entity model ofclient’s model Table modelof entity model Tables on disk
[object Object]
Scenario
“. . . Assign one or more employees to a department . . .”
“. . . Some departments do not yet have assigned employees . . .”Entity Relationship Model DEPARTMENT #* 	number *	name olocation EMPLOYEE #* 	number *	name ojob title assigned to composed of
Entity Relationship Modeling Conventions Entity Soft box Singular, unique name Uppercase Synonym in parentheses Attribute Singular name Lowercase Mandatory marked with “*” Optional marked with “o” DEPARTMENT #* 	number *	name olocation EMPLOYEE #* 	number *	name ojob title assigned to composed of Unique Identifier (UID) Primary marked with “#” Secondary marked with “(#)”
Entity Relationship Modeling Conventions Entity Soft box Singular, unique name Uppercase Synonym in parentheses Attribute Singular name Lowercase Mandatory marked with “*” Optional marked with “o” DEPARTMENT #* 	number *	name olocation EMPLOYEE #* 	number *	name ojob title assigned to composed of Unique Identifier (UID) Primary marked with “#” Secondary marked with “(#)”
2 3 4 6 5 1 Relational Database Terminology    EMPNO ENAME    JOB                     MGR    HIREDATE        SAL        COMM   DEPTNO ------------- 	------------	---------------------  --------  ----------------   -----------   --------------    ----------- 7839KING       PRESIDENT                   17-NOV-81500010 7698BLAKEMANAGER    783901-MAY-81285030 7782CLARK MANAGER783909-JUN-81245010 7566JONES MANAGER783902-APR-81297520 7654MARTINSALESMAN     769828-SEP-811250140030 7499ALLEN SALESMAN      769820-FEB-81160030030 7844TURNER SALESMAN     769808-SEP-811500030 7900JAMES CLERK            769803-DEC-8195030 7521WARDSALESMAN     769822-FEB-81125050030 7902FORDANALYST         756603-DEC-81300020 7369SMITH CLERK            790217-DEC-8080020 7788SCOTTANALYST        756609-DEC-82300020 7876ADAMS CLERK              778812-JAN-83110020 7934MILLER CLERK        778223-JAN-82130010
Relating Multiple Tables Primary key Primary key Foreign key ,[object Object]
You can logically relate data from multiple tables using foreign keys (FK).Table Name: EMP Table Name: DEPT EMPNO     ENAME      JOB  DEPTNO 7839     KING       PRESIDENT10 7698     BLAKE      MANAGER30 7782     CLARK      MANAGER  10 7566     JONES      MANAGER20 DEPTNO  DNAME  LOC 10  ACCOUNTING  NEW YORK 20  RESEARCH    DALLAS 30  SALES       CHICAGO 40  OPERATIONS BOSTON
Relational Database Properties A relational database  Can be accessed and modified by executing structured query language (SQL) statements Contains a collection of tables with no physical pointers Uses a set of operators
Communicating with a RDBMS Using SQL SQL statementis entered Statement is sent to database SQL> SELECT loc  2  FROM   dept; Database Data is displayed LOC ------------- NEW YORK DALLAS CHICAGO BOSTON
Relational Database Management System Server User tables Data  dictionary
Oracle8: Object Relational Database Management System User-defined data types and objects Fully compatible with relational database Support of multimedia and large objects High-quality database server features
Defining an Object An object Is a person, place, or thing Knows things about itself and performs actions Has an identity I am a clock. I knowmy time zone, and Ican display time.
Using an Object Model Objects model a problem to solve. The model is stated in terms of the interactions between objects. Object models closely resemble the real world. Buy Sell Customers Business
Characteristics of Object Systems Present information in object form  Classify objects into object types Inherit attributes and code Hide data, code, and attributes Interact with other objects Recognize different objects without analysis  Interpret the same command in different ways

Contenu connexe

Tendances (20)

Les05 Aggregating Data Using Group Function
Les05 Aggregating Data Using Group FunctionLes05 Aggregating Data Using Group Function
Les05 Aggregating Data Using Group Function
 
Les01
Les01Les01
Les01
 
Les06 Subqueries
Les06 SubqueriesLes06 Subqueries
Les06 Subqueries
 
Les02 Restricting And Sorting Data
Les02 Restricting And Sorting DataLes02 Restricting And Sorting Data
Les02 Restricting And Sorting Data
 
Les10
Les10Les10
Les10
 
Les11
Les11Les11
Les11
 
SQL WORKSHOP::Lecture 12
SQL WORKSHOP::Lecture 12SQL WORKSHOP::Lecture 12
SQL WORKSHOP::Lecture 12
 
Les09
Les09Les09
Les09
 
Les01
Les01Les01
Les01
 
Les05[1]Aggregating Data Using Group Functions
Les05[1]Aggregating Data  Using Group FunctionsLes05[1]Aggregating Data  Using Group Functions
Les05[1]Aggregating Data Using Group Functions
 
MERGE SQL Statement: Lesser Known Facets
MERGE SQL Statement: Lesser Known FacetsMERGE SQL Statement: Lesser Known Facets
MERGE SQL Statement: Lesser Known Facets
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Les03[1] Single-Row Functions
Les03[1] Single-Row FunctionsLes03[1] Single-Row Functions
Les03[1] Single-Row Functions
 
Les02[1]Restricting and Sorting Data
Les02[1]Restricting and Sorting DataLes02[1]Restricting and Sorting Data
Les02[1]Restricting and Sorting Data
 
Les12[1]Creating Views
Les12[1]Creating ViewsLes12[1]Creating Views
Les12[1]Creating Views
 
ORACLE NOTES
ORACLE NOTESORACLE NOTES
ORACLE NOTES
 
Les07[1]Multiple-Column Subqueries
Les07[1]Multiple-Column SubqueriesLes07[1]Multiple-Column Subqueries
Les07[1]Multiple-Column Subqueries
 
SQL Macros - Game Changing Feature for SQL Developers?
SQL Macros - Game Changing Feature for SQL Developers?SQL Macros - Game Changing Feature for SQL Developers?
SQL Macros - Game Changing Feature for SQL Developers?
 
2 sql - single-row functions
2   sql - single-row functions2   sql - single-row functions
2 sql - single-row functions
 
Les08-Oracle
Les08-OracleLes08-Oracle
Les08-Oracle
 

Similaire à Les00 Intoduction

My SYSAUX tablespace is full - please help
My SYSAUX tablespace is full - please helpMy SYSAUX tablespace is full - please help
My SYSAUX tablespace is full - please helpMarkus Flechtner
 
MDI Training DB2 Course
MDI Training DB2 CourseMDI Training DB2 Course
MDI Training DB2 CourseMarcus Davage
 
Homework help on oracle
Homework help on oracleHomework help on oracle
Homework help on oracleSteve Nash
 
SQL for Data Professionals (Beginner)
SQL for Data Professionals (Beginner)SQL for Data Professionals (Beginner)
SQL for Data Professionals (Beginner)Ankit Rathi
 
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...Jürgen Ambrosi
 
Odtug2011 adf developers make the database work for you
Odtug2011 adf developers make the database work for youOdtug2011 adf developers make the database work for you
Odtug2011 adf developers make the database work for youLuc Bors
 
Prog1 chap1 and chap 2
Prog1 chap1 and chap 2Prog1 chap1 and chap 2
Prog1 chap1 and chap 2rowensCap
 
12c for Developers - Feb 2014
12c for Developers - Feb 201412c for Developers - Feb 2014
12c for Developers - Feb 2014Connor McDonald
 
MySQL Without the SQL -- Oh My! Longhorn PHP Conference
MySQL Without the SQL -- Oh My!  Longhorn PHP ConferenceMySQL Without the SQL -- Oh My!  Longhorn PHP Conference
MySQL Without the SQL -- Oh My! Longhorn PHP ConferenceDave Stokes
 
Database Foundation Training
Database Foundation TrainingDatabase Foundation Training
Database Foundation TrainingFranky Lao
 
MySQL Without the MySQL -- Oh My!
MySQL Without the MySQL -- Oh My!MySQL Without the MySQL -- Oh My!
MySQL Without the MySQL -- Oh My!Dave Stokes
 
Killing ETL with Apache Drill
Killing ETL with Apache DrillKilling ETL with Apache Drill
Killing ETL with Apache DrillCharles Givre
 

Similaire à Les00 Intoduction (20)

Etl05 05
Etl05 05Etl05 05
Etl05 05
 
My SYSAUX tablespace is full - please help
My SYSAUX tablespace is full - please helpMy SYSAUX tablespace is full - please help
My SYSAUX tablespace is full - please help
 
MDI Training DB2 Course
MDI Training DB2 CourseMDI Training DB2 Course
MDI Training DB2 Course
 
Intro.pptx
Intro.pptxIntro.pptx
Intro.pptx
 
Homework help on oracle
Homework help on oracleHomework help on oracle
Homework help on oracle
 
SQL for Data Professionals (Beginner)
SQL for Data Professionals (Beginner)SQL for Data Professionals (Beginner)
SQL for Data Professionals (Beginner)
 
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
 
Odtug2011 adf developers make the database work for you
Odtug2011 adf developers make the database work for youOdtug2011 adf developers make the database work for you
Odtug2011 adf developers make the database work for you
 
Prog1 chap1 and chap 2
Prog1 chap1 and chap 2Prog1 chap1 and chap 2
Prog1 chap1 and chap 2
 
12c for Developers - Feb 2014
12c for Developers - Feb 201412c for Developers - Feb 2014
12c for Developers - Feb 2014
 
Oracle views
Oracle viewsOracle views
Oracle views
 
Introduction to Oracle
Introduction to OracleIntroduction to Oracle
Introduction to Oracle
 
Introduction to Oracle
Introduction to OracleIntroduction to Oracle
Introduction to Oracle
 
MySQL Without the SQL -- Oh My! Longhorn PHP Conference
MySQL Without the SQL -- Oh My!  Longhorn PHP ConferenceMySQL Without the SQL -- Oh My!  Longhorn PHP Conference
MySQL Without the SQL -- Oh My! Longhorn PHP Conference
 
Oracle 10g
Oracle 10gOracle 10g
Oracle 10g
 
Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
 
Database Foundation Training
Database Foundation TrainingDatabase Foundation Training
Database Foundation Training
 
Intro
IntroIntro
Intro
 
MySQL Without the MySQL -- Oh My!
MySQL Without the MySQL -- Oh My!MySQL Without the MySQL -- Oh My!
MySQL Without the MySQL -- Oh My!
 
Killing ETL with Apache Drill
Killing ETL with Apache DrillKilling ETL with Apache Drill
Killing ETL with Apache Drill
 

Dernier

Genuine 8250077686 Hot and Beautiful 💕 Diu Escorts call Girls
Genuine 8250077686 Hot and Beautiful 💕 Diu Escorts call GirlsGenuine 8250077686 Hot and Beautiful 💕 Diu Escorts call Girls
Genuine 8250077686 Hot and Beautiful 💕 Diu Escorts call GirlsDeiva Sain Call Girl
 
Tamluk ❤CALL GIRL 8617697112 ❤CALL GIRLS IN Tamluk ESCORT SERVICE❤CALL GIRL
Tamluk ❤CALL GIRL 8617697112 ❤CALL GIRLS IN Tamluk ESCORT SERVICE❤CALL GIRLTamluk ❤CALL GIRL 8617697112 ❤CALL GIRLS IN Tamluk ESCORT SERVICE❤CALL GIRL
Tamluk ❤CALL GIRL 8617697112 ❤CALL GIRLS IN Tamluk ESCORT SERVICE❤CALL GIRLNitya salvi
 
Hire 💕 8617697112 Surat Call Girls Service Call Girls Agency
Hire 💕 8617697112 Surat Call Girls Service Call Girls AgencyHire 💕 8617697112 Surat Call Girls Service Call Girls Agency
Hire 💕 8617697112 Surat Call Girls Service Call Girls AgencyNitya salvi
 
Top places to visit, top tourist destinations
Top places to visit, top tourist destinationsTop places to visit, top tourist destinations
Top places to visit, top tourist destinationsswarajdm34
 
❤Personal Contact Number Mcleodganj Call Girls 8617697112💦✅.
❤Personal Contact Number Mcleodganj Call Girls 8617697112💦✅.❤Personal Contact Number Mcleodganj Call Girls 8617697112💦✅.
❤Personal Contact Number Mcleodganj Call Girls 8617697112💦✅.Nitya salvi
 
IATA GEOGRAPHY AREAS in the world, HM111
IATA GEOGRAPHY AREAS in the world, HM111IATA GEOGRAPHY AREAS in the world, HM111
IATA GEOGRAPHY AREAS in the world, HM1112022472524
 
WhatsApp Chat: 📞 8617697112 Suri Call Girls available for hotel room package
WhatsApp Chat: 📞 8617697112 Suri Call Girls available for hotel room packageWhatsApp Chat: 📞 8617697112 Suri Call Girls available for hotel room package
WhatsApp Chat: 📞 8617697112 Suri Call Girls available for hotel room packageNitya salvi
 
Vadodara Escort💋 Call Girl (Bindu) Service #Vadodara Call Girl @Independent G...
Vadodara Escort💋 Call Girl (Bindu) Service #Vadodara Call Girl @Independent G...Vadodara Escort💋 Call Girl (Bindu) Service #Vadodara Call Girl @Independent G...
Vadodara Escort💋 Call Girl (Bindu) Service #Vadodara Call Girl @Independent G...mountabuangels4u
 
Siliguri Call Girls 8250077686 Service Offer VIP Hot Model
Siliguri Call Girls 8250077686 Service Offer VIP Hot ModelSiliguri Call Girls 8250077686 Service Offer VIP Hot Model
Siliguri Call Girls 8250077686 Service Offer VIP Hot ModelDeiva Sain Call Girl
 
Hire 💕 8617697112 Reckong Peo Call Girls Service Call Girls Agency
Hire 💕 8617697112 Reckong Peo Call Girls Service Call Girls AgencyHire 💕 8617697112 Reckong Peo Call Girls Service Call Girls Agency
Hire 💕 8617697112 Reckong Peo Call Girls Service Call Girls AgencyNitya salvi
 
Top travel agency in panchkula - Best travel agents in panchkula
Top  travel agency in panchkula - Best travel agents in panchkulaTop  travel agency in panchkula - Best travel agents in panchkula
Top travel agency in panchkula - Best travel agents in panchkulauseyourbrain1122
 
sample sample sample sample sample sample
sample sample sample sample sample samplesample sample sample sample sample sample
sample sample sample sample sample sampleCasey Keith
 
🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...Apsara Of India
 
ITALY - Visa Options for expats and digital nomads
ITALY - Visa Options for expats and digital nomadsITALY - Visa Options for expats and digital nomads
ITALY - Visa Options for expats and digital nomadsMarco Mazzeschi
 
Ooty Call Girls 8250077686 Service Offer VIP Hot Model
Ooty Call Girls 8250077686 Service Offer VIP Hot ModelOoty Call Girls 8250077686 Service Offer VIP Hot Model
Ooty Call Girls 8250077686 Service Offer VIP Hot ModelDeiva Sain Call Girl
 
Papi kondalu Call Girls 8250077686 Service Offer VIP Hot Model
Papi kondalu Call Girls 8250077686 Service Offer VIP Hot ModelPapi kondalu Call Girls 8250077686 Service Offer VIP Hot Model
Papi kondalu Call Girls 8250077686 Service Offer VIP Hot ModelDeiva Sain Call Girl
 
Jhargram call girls 📞 8617697112 At Low Cost Cash Payment Booking
Jhargram call girls 📞 8617697112 At Low Cost Cash Payment BookingJhargram call girls 📞 8617697112 At Low Cost Cash Payment Booking
Jhargram call girls 📞 8617697112 At Low Cost Cash Payment BookingNitya salvi
 
Bhubaneswar Call Girls 8250077686 Service Offer VIP Hot Model
Bhubaneswar Call Girls 8250077686 Service Offer VIP Hot ModelBhubaneswar Call Girls 8250077686 Service Offer VIP Hot Model
Bhubaneswar Call Girls 8250077686 Service Offer VIP Hot ModelDeiva Sain Call Girl
 
Kanpur Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Kanpur Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort ServiceKanpur Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Kanpur Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort ServiceDamini Dixit
 
VIP Vapi Call Girls 📞 8617697112 Vapi Call Girls
VIP Vapi Call Girls 📞 8617697112 Vapi Call GirlsVIP Vapi Call Girls 📞 8617697112 Vapi Call Girls
VIP Vapi Call Girls 📞 8617697112 Vapi Call GirlsNitya salvi
 

Dernier (20)

Genuine 8250077686 Hot and Beautiful 💕 Diu Escorts call Girls
Genuine 8250077686 Hot and Beautiful 💕 Diu Escorts call GirlsGenuine 8250077686 Hot and Beautiful 💕 Diu Escorts call Girls
Genuine 8250077686 Hot and Beautiful 💕 Diu Escorts call Girls
 
Tamluk ❤CALL GIRL 8617697112 ❤CALL GIRLS IN Tamluk ESCORT SERVICE❤CALL GIRL
Tamluk ❤CALL GIRL 8617697112 ❤CALL GIRLS IN Tamluk ESCORT SERVICE❤CALL GIRLTamluk ❤CALL GIRL 8617697112 ❤CALL GIRLS IN Tamluk ESCORT SERVICE❤CALL GIRL
Tamluk ❤CALL GIRL 8617697112 ❤CALL GIRLS IN Tamluk ESCORT SERVICE❤CALL GIRL
 
Hire 💕 8617697112 Surat Call Girls Service Call Girls Agency
Hire 💕 8617697112 Surat Call Girls Service Call Girls AgencyHire 💕 8617697112 Surat Call Girls Service Call Girls Agency
Hire 💕 8617697112 Surat Call Girls Service Call Girls Agency
 
Top places to visit, top tourist destinations
Top places to visit, top tourist destinationsTop places to visit, top tourist destinations
Top places to visit, top tourist destinations
 
❤Personal Contact Number Mcleodganj Call Girls 8617697112💦✅.
❤Personal Contact Number Mcleodganj Call Girls 8617697112💦✅.❤Personal Contact Number Mcleodganj Call Girls 8617697112💦✅.
❤Personal Contact Number Mcleodganj Call Girls 8617697112💦✅.
 
IATA GEOGRAPHY AREAS in the world, HM111
IATA GEOGRAPHY AREAS in the world, HM111IATA GEOGRAPHY AREAS in the world, HM111
IATA GEOGRAPHY AREAS in the world, HM111
 
WhatsApp Chat: 📞 8617697112 Suri Call Girls available for hotel room package
WhatsApp Chat: 📞 8617697112 Suri Call Girls available for hotel room packageWhatsApp Chat: 📞 8617697112 Suri Call Girls available for hotel room package
WhatsApp Chat: 📞 8617697112 Suri Call Girls available for hotel room package
 
Vadodara Escort💋 Call Girl (Bindu) Service #Vadodara Call Girl @Independent G...
Vadodara Escort💋 Call Girl (Bindu) Service #Vadodara Call Girl @Independent G...Vadodara Escort💋 Call Girl (Bindu) Service #Vadodara Call Girl @Independent G...
Vadodara Escort💋 Call Girl (Bindu) Service #Vadodara Call Girl @Independent G...
 
Siliguri Call Girls 8250077686 Service Offer VIP Hot Model
Siliguri Call Girls 8250077686 Service Offer VIP Hot ModelSiliguri Call Girls 8250077686 Service Offer VIP Hot Model
Siliguri Call Girls 8250077686 Service Offer VIP Hot Model
 
Hire 💕 8617697112 Reckong Peo Call Girls Service Call Girls Agency
Hire 💕 8617697112 Reckong Peo Call Girls Service Call Girls AgencyHire 💕 8617697112 Reckong Peo Call Girls Service Call Girls Agency
Hire 💕 8617697112 Reckong Peo Call Girls Service Call Girls Agency
 
Top travel agency in panchkula - Best travel agents in panchkula
Top  travel agency in panchkula - Best travel agents in panchkulaTop  travel agency in panchkula - Best travel agents in panchkula
Top travel agency in panchkula - Best travel agents in panchkula
 
sample sample sample sample sample sample
sample sample sample sample sample samplesample sample sample sample sample sample
sample sample sample sample sample sample
 
🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
 
ITALY - Visa Options for expats and digital nomads
ITALY - Visa Options for expats and digital nomadsITALY - Visa Options for expats and digital nomads
ITALY - Visa Options for expats and digital nomads
 
Ooty Call Girls 8250077686 Service Offer VIP Hot Model
Ooty Call Girls 8250077686 Service Offer VIP Hot ModelOoty Call Girls 8250077686 Service Offer VIP Hot Model
Ooty Call Girls 8250077686 Service Offer VIP Hot Model
 
Papi kondalu Call Girls 8250077686 Service Offer VIP Hot Model
Papi kondalu Call Girls 8250077686 Service Offer VIP Hot ModelPapi kondalu Call Girls 8250077686 Service Offer VIP Hot Model
Papi kondalu Call Girls 8250077686 Service Offer VIP Hot Model
 
Jhargram call girls 📞 8617697112 At Low Cost Cash Payment Booking
Jhargram call girls 📞 8617697112 At Low Cost Cash Payment BookingJhargram call girls 📞 8617697112 At Low Cost Cash Payment Booking
Jhargram call girls 📞 8617697112 At Low Cost Cash Payment Booking
 
Bhubaneswar Call Girls 8250077686 Service Offer VIP Hot Model
Bhubaneswar Call Girls 8250077686 Service Offer VIP Hot ModelBhubaneswar Call Girls 8250077686 Service Offer VIP Hot Model
Bhubaneswar Call Girls 8250077686 Service Offer VIP Hot Model
 
Kanpur Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Kanpur Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort ServiceKanpur Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Kanpur Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
 
VIP Vapi Call Girls 📞 8617697112 Vapi Call Girls
VIP Vapi Call Girls 📞 8617697112 Vapi Call GirlsVIP Vapi Call Girls 📞 8617697112 Vapi Call Girls
VIP Vapi Call Girls 📞 8617697112 Vapi Call Girls
 

Les00 Intoduction

  • 2. Objectives After completing this lesson, you should be able to do the following: Discuss the theoretical and physical aspects of a relational database Describe the Oracle implementation of the RDBMS and ORDBMS Describe how SQL and PL/SQL are used in the Oracle product set Describe the use and benefits of PL/SQL
  • 3. System Development Life Cycle Strategy and Analysis Design Build and Document Transition Production
  • 4. System Development Life Cycle Strategy and Analysis Design Build and Document Transition Production
  • 5. Data Storage on Different Media Database Electronic spreadsheet Filing cabinet SALGRADE GRADE LOSAL HISAL --------- --------- --------- 17001200 212011400 314012000 420013000 530019999 DEPT DEPTNO DNAME LOC --------- -------------- ---------- 10 ACCOUNTING NEW YORK 20 RESEARCH DALLAS 30 SALES CHICAGO 40 OPERATIONS BOSTON
  • 6. Relational Database Concept Dr. E. F. Codd proposed the relational model for database systems in 1970. It is the basis for the relational database management system (RDBMS). The relational model consists of the following: Collection of objects or relations Set of operators to act on the relations Data integrity for accuracy and consistency
  • 7. Table Name: DEPT Table Name: EMP DEPTNO DNAME LOC 10 ACCOUNTING NEW YORK 20 RESEARCH DALLAS 30 SALES CHICAGO 40 OPERATIONS BOSTON EMPNO ENAME JOB DEPTNO 7839 KING PRESIDENT10 7698 BLAKE MANAGER30 7782 CLARK MANAGER 10 7566 JONES MANAGER20 Definition of a Relational Database A relational database is a collection of relations or two-dimensional tables. Database
  • 8. Data Models Server Model ofsystemin client’smind Entity model ofclient’s model Table modelof entity model Tables on disk
  • 9.
  • 11. “. . . Assign one or more employees to a department . . .”
  • 12. “. . . Some departments do not yet have assigned employees . . .”Entity Relationship Model DEPARTMENT #* number * name olocation EMPLOYEE #* number * name ojob title assigned to composed of
  • 13. Entity Relationship Modeling Conventions Entity Soft box Singular, unique name Uppercase Synonym in parentheses Attribute Singular name Lowercase Mandatory marked with “*” Optional marked with “o” DEPARTMENT #* number * name olocation EMPLOYEE #* number * name ojob title assigned to composed of Unique Identifier (UID) Primary marked with “#” Secondary marked with “(#)”
  • 14. Entity Relationship Modeling Conventions Entity Soft box Singular, unique name Uppercase Synonym in parentheses Attribute Singular name Lowercase Mandatory marked with “*” Optional marked with “o” DEPARTMENT #* number * name olocation EMPLOYEE #* number * name ojob title assigned to composed of Unique Identifier (UID) Primary marked with “#” Secondary marked with “(#)”
  • 15. 2 3 4 6 5 1 Relational Database Terminology EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO ------------- ------------ --------------------- -------- ---------------- ----------- -------------- ----------- 7839KING PRESIDENT 17-NOV-81500010 7698BLAKEMANAGER 783901-MAY-81285030 7782CLARK MANAGER783909-JUN-81245010 7566JONES MANAGER783902-APR-81297520 7654MARTINSALESMAN 769828-SEP-811250140030 7499ALLEN SALESMAN 769820-FEB-81160030030 7844TURNER SALESMAN 769808-SEP-811500030 7900JAMES CLERK 769803-DEC-8195030 7521WARDSALESMAN 769822-FEB-81125050030 7902FORDANALYST 756603-DEC-81300020 7369SMITH CLERK 790217-DEC-8080020 7788SCOTTANALYST 756609-DEC-82300020 7876ADAMS CLERK 778812-JAN-83110020 7934MILLER CLERK 778223-JAN-82130010
  • 16.
  • 17. You can logically relate data from multiple tables using foreign keys (FK).Table Name: EMP Table Name: DEPT EMPNO ENAME JOB DEPTNO 7839 KING PRESIDENT10 7698 BLAKE MANAGER30 7782 CLARK MANAGER 10 7566 JONES MANAGER20 DEPTNO DNAME LOC 10 ACCOUNTING NEW YORK 20 RESEARCH DALLAS 30 SALES CHICAGO 40 OPERATIONS BOSTON
  • 18. Relational Database Properties A relational database Can be accessed and modified by executing structured query language (SQL) statements Contains a collection of tables with no physical pointers Uses a set of operators
  • 19. Communicating with a RDBMS Using SQL SQL statementis entered Statement is sent to database SQL> SELECT loc 2 FROM dept; Database Data is displayed LOC ------------- NEW YORK DALLAS CHICAGO BOSTON
  • 20. Relational Database Management System Server User tables Data dictionary
  • 21. Oracle8: Object Relational Database Management System User-defined data types and objects Fully compatible with relational database Support of multimedia and large objects High-quality database server features
  • 22. Defining an Object An object Is a person, place, or thing Knows things about itself and performs actions Has an identity I am a clock. I knowmy time zone, and Ican display time.
  • 23. Using an Object Model Objects model a problem to solve. The model is stated in terms of the interactions between objects. Object models closely resemble the real world. Buy Sell Customers Business
  • 24. Characteristics of Object Systems Present information in object form Classify objects into object types Inherit attributes and code Hide data, code, and attributes Interact with other objects Recognize different objects without analysis Interpret the same command in different ways
  • 25. Oracle Complete Solution Database Applications HR Financials Manufacturing ... Oracle Developer Discoverer Oracle Designer SQL* Plus SQL PL/SQL Oracle7/8 Data dictionary Data tables
  • 26. SQL Statements SELECT INSERT UPDATE DELETE CREATE ALTER DROP RENAME TRUNCATE COMMIT ROLLBACK SAVEPOINT GRANT REVOKE Data retrieval Data manipulation language (DML) Data definition language (DDL) Transaction control Data control language (DCL)
  • 27. About PL/SQL PL/SQL is an extension to SQL with design features of programming languages. Data manipulation and query statements of SQL are included within procedural units of code.
  • 28. PL/SQL Environment PL/SQL engine PL/SQL Procedural Statement Executor PL/SQL block PL/SQL block SQL SQL Statement Executor Oracle Server
  • 29. Tables Used in the Course DEPT DEPTNO DNAME LOC --------- -------------- ---------- 10 ACCOUNTING NEW YORK 20 RESEARCH DALLAS 30 SALES CHICAGO 40 OPERATIONS BOSTON SALGRADE GRADE LOSAL HISAL --------- --------- --------- 17001200 212011400 314012000 420013000 530019999 EMP EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO --------- ---------- --------- --------- --------- --------- --------- --------- 7839 KING PRESIDENT 17-NOV-81500010 7698 BLAKE MANAGER 783901-MAY-81285030 7782 CLARK MANAGER 783909-JUN-81245010 7566 JONES MANAGER 783902-APR-81297520 7654 MARTIN SALESMAN 769828-SEP-811250140030 7499 ALLEN SALESMAN 769820-FEB-81160030030 7844 TURNER SALESMAN 769808-SEP-811500030 7900 JAMES CLERK 769803-DEC-8195030 7521 WARD SALESMAN 769822-FEB-81125050030 7902 FORD ANALYST 756603-DEC-81300020 7369 SMITH CLERK 790217-DEC-8080020 7788 SCOTT ANALYST 756609-DEC-82300020 7876 ADAMS CLERK 778812-JAN-83110020 7934 MILLER CLERK 778223-JAN-82130010
  • 30. Summary Relational databases are composed of relations, managed by relational operations, and governed by data integrity constraints. The Oracle Server allows you to store and manage information by using the SQL language and PL/SQL engine. PL/SQL is an extension to SQL with design features of programming languages.