SlideShare a Scribd company logo
1 of 55
TRIVUz Academy

                             DB01
                 Class Id:




DATABASE
Design & Implementation
TRIVUz Academy
                              MS Alam TRIVUz
                                 Founder, TRIVUz Network
TRIVUz Academy




Recap PF01 & PF02



             TRIVUz Academy
Recap
                           We meet a customer

                        We understand his needs

                               We make a plan

                          We scratch the design




    Database Design
 TRIVUz Academy

www.trivuzacademy.com
                           www.trivuzacademy.com
We are going to learn
                            Brief introduction on Database

                                                    Array

                                          Array Functions

                                             Global Array

                                                     Loop

                                  for, do…while, for each

                                                Functions


    Database Design
 TRIVUz Academy

www.trivuzacademy.com
DATABASE
            Brief Introduction




TRIVUz Academy
DATABASE
                           Brief Introduction

  What is Database?

  Often abbreviated DB. A collection of information
  organized in such a way that a computer program can
  quickly select desired pieces of data. You can think of a
  database as an electronic filing system.




TRIVUz Academy
DATABASE
                             Brief Introduction

  What is Database?
  Traditional databases are organized by fields, records,
  and files.

   A field is a single piece of information;

   a record is one complete set of fields;

   and a file is a collection of records.


TRIVUz Academy
DATABASE
                           Brief Introduction

  What is Database?
  For example, a telephone book is analogous to a file. It
  contains a list of records, each of which consists of
  three fields: name, address, and telephone number.




TRIVUz Academy
DATABASE
                             Brief Introduction

  What is Database?
  For example, a telephone book is analogous to a file. It
  contains a list of records, each of which consists of
  three fields: name, address, and telephone number.

         Name           Address         Phone Number
         Mr. Khan       Banani, Dhaka   02-01020304
         Farah Zebin    Uttara, Dhaka   02-23344556
         Robindranath   Uttara, Dhaka   02-44543212



TRIVUz Academy
DATABASE
                          Brief Introduction

  DBMS
  To access information from a database, you need a
  database management system (DBMS). This is a
  collection of programs that enables you to enter,
  organize, and select data in a database.




TRIVUz Academy
DATABASE
                          Brief Introduction

  RDBMS
  A relational database management system (RDBMS) is
  a database management system (DBMS) that is based
  on the relational model as introduced by E. F. Codd.
  Most popular databases currently in use are based on
  the relational database model.




TRIVUz Academy
DATABASE
                            Brief Introduction

  RDBMS
  A short definition of an RDBMS is: A DBMS in which data
  is stored in tables and the relationships among the data
  are also stored in tables. The data can be accessed or
  reassembled in many different ways without having to
  change the table forms.




TRIVUz Academy
DATABASE
                            Brief Introduction

  RDBMS
  A short definition of an RDBMS is: A DBMS in which data
  is stored in tables and the relationships among the data
  are also stored in tables. The data can be accessed or
  reassembled in many different ways without having to
  change the table forms.




TRIVUz Academy
DATABASE
                           Brief Introduction

  History
  The database concept

  The database concept has evolved since the 1960s to
  ease increasing difficulties in designing, building, and
  maintaining complex information systems (typically with
  many concurrent end-users, and with a diverse large
  amount of data). It has evolved together with
  database management systems which enable the
  effective handling of databases.
TRIVUz Academy
DATABASE
                            Brief Introduction

  History
  Evolution of database and DBMS technology

  The introduction of the term database coincided with
  the availability of direct-access storage (disks and
  drums)    from   the   mid-1960s   onwards.    The   term
  represented a contrast with the tape-based systems of
  the past, allowing shared interactive use rather than
  daily batch processing.

TRIVUz Academy
DATABASE
                            Brief Introduction

  History
  Evolution of database and DBMS technology

  In the earliest database systems, efficiency was
  perhaps the primary concern, but it was already
  recognized that there were other important objectives.
  One of the key aims was to make the data
  independent of the logic of application programs, so
  that the same data could be made available to
  different applications.
TRIVUz Academy
DATABASE
                              Brief Introduction

  History
  Evolution of database and DBMS technology

  The   first    generation   of   database   systems   were
  navigational, applications typically accessed data by
  following pointers from one record to another. The two
  main data models at this time were the hierarchical
  model, epitomized by IBM's IMS system, and the
  Codasyl model (Network model), implemented in a
  number of products such as IDMS.
TRIVUz Academy
DATABASE
                             Brief Introduction

  History
  Evolution of database and DBMS technology

  The Relational model, first proposed in 1970 by Edgar F.
  Codd, departed from this tradition by insisting that
  applications should search for data by content, rather
  than by following links.




TRIVUz Academy
DATABASE
                             Brief Introduction

  History
  Evolution of database and DBMS technology

  Relational     systems   placed   heavy     demands   on
  processing resources, and it was not until the mid 1980s
  that computing hardware became powerful enough to
  allow them to be widely deployed. By the early 1990s,
  however, relational systems were dominant for all large-
  scale data processing applications, and they remain
  dominant today (2011) except in niche areas.
TRIVUz Academy
DATABASE
                             Brief Introduction

  History
  Evolution of database and DBMS technology

  The dominant database language is the standard SQL
  for   the   Relational   model,   which   has   influenced
  database languages also for other data models.




TRIVUz Academy
DATABASE
                                                   Quick Look

  SQL ???
  What is SQL?
  SQL, or Structured Query Language, is a specialized type of programming language
  developed to work with relational databases such as MySQL, Oracle, Microsoft SQL
  Server, PostgreSQL, Informix, and others.

  The SQL standard is defined by ANSI, the American National Standards Institute in their
  ISO/IEC 9075:1992 document. (The standard is commonly referred to as ANSI SQL-92.)
  Every relational database applies its own version of the SQL standard; many enhance
  that standard. Standardizing the programming language allows the devel- oper to
  address the database in much the same way from platform to platform — and every
  major platform has such products written for it. Table 1-2 compares some popular
  relational-database products as illustrative examples.



TRIVUz Academy
DATABASE
                         Brief Introduction

  History
  Ancient to modern




  http://math.hws.edu/vaughn/cpsc/343/2003/history.ht
  ml




TRIVUz Academy
DATABASE
                          Brief Introduction

  History
  General-purpose DBMS

  A DBMS has evolved into a complex software system
  and its development typically requires thousands of
  person-years of development effort. Some general-
  purpose DBMSs, like Oracle, Microsoft SQL server, and
  IBM DB2, have been in on-going development and
  enhancement for thirty years or more.

TRIVUz Academy
DATABASE
                                     Brief Introduction

  History
  Types of people involved

  Three types of people are involved with a general-purpose DBMS:

  1. DBMS developers - These are the people that design and build the DBMS
  product, and the only ones who touch its code. They are typically the
  employees of a DBMS vendor (e.g., Oracle, IBM, Microsoft, Sybase), or, in the
  case of Open source DBMSs (e.g., MySQL), volunteers or people supported by
  interested companies and organizations. They are typically skilled systems
  programmers. DBMS development is a complicated task, and some of the
  popular DBMSs have been under development and enhancement (also to
  follow progress in technology) for decades.
TRIVUz Academy
DATABASE
                                      Brief Introduction

  History
  Types of people involved

  2. Application developers and Database administrators - These are the people
  that design and build a database-based application that uses the DBMS. The
  latter group members design the needed database and maintain it. The first
  group members write the needed application programs which the application
  comprises. Both are well familiar with the DBMS product and use its user
  interfaces (as well as usually other tools) for their work. Sometimes the
  application itself is packaged and sold as a separate product, which may
  include the DBMS inside (see Embedded database; subject to proper DBMS
  licensing), or sold separately as an add-on to the DBMS.

TRIVUz Academy
DATABASE
                                       Brief Introduction

  History
  Types of people involved

  3.                  Application's                   end-users                  :
  (e.g., accountants, insurance people, medical doctors, etc.) –

  These people know the application and its end-user interfaces, but need not
  know nor understand the underlying DBMS. Thus, though they are the intended
  and main beneficiaries of a DBMS, they are only indirectly involved with it.




TRIVUz Academy
DATABASE
                          Brief Introduction

  Advantages

  The speed, accuracy, reporting and thoroughness of
  electronic databases make them critical to today’s
  24/7 high-speed exchange of information.




TRIVUz Academy
DATABASE
                          Brief Introduction

  Advantages

  Speed: Format means quick storage and retrieval of
  information. Users and applications have a quick
  means for asynchronous reads and writes of data.




TRIVUz Academy
DATABASE
                           Brief Introduction

  Advantages

  Accuracy: Given careful data input, databases provide
  accurate and consistent results based on their data.




TRIVUz Academy
DATABASE
                           Brief Introduction

  Advantages

  Reporting: Information can be gathered, quantified,
  and custom-analyzed with greater flexibility.




TRIVUz Academy
DATABASE
                         Brief Introduction

  Advantages

  Thoroughness: Databases can store and report results
  as complete and detailed as their holdings — at
  electronic speed.




TRIVUz Academy
DATABASE
                         Brief Introduction

  Advantages

  Thoroughness: Databases can store and report results
  as complete and detailed as their holdings — at
  electronic speed.




TRIVUz Academy
DATABASE
                   Choose RDBMS

  Existing RDBMS




TRIVUz Academy
DATABASE
                       Introducing MySQL

  What is MySQL?




  MySQL is the worlds most popular open source RDBMS.




TRIVUz Academy
DATABASE
                           Introducing MySQL

  Why MySQL?

  MySQL is the worlds most popular open source RDBMS.
  MySQL is used from many large scale web sites including
  Google and NASA, and is a very strong competitor to even
  the likes of Microsoft SQL Server and Oracle.

  MySQL is incredibly fast, provides support for full text
  searches, and is widely supported.


TRIVUz Academy
DATABASE
                   Introducing MySQL

  Comparison of SQL Implementations




TRIVUz Academy
DATABASE
                      Introducing MySQL

  MySQL Enterprise-Level Database Features




TRIVUz Academy
DATABASE
                      Introducing MySQL

  MySQL Enterprise-Level Database Features




TRIVUz Academy
DATABASE
                                      Introducing MySQL

  What MySQL Does Bes
   Web applications: Web applications typically feature many reads and few writes.
    MySQL is fast and can meet the demands of Internet speed. In my experience, MySQL
    has proven time and again that it outperforms other RDBMS products in Web
    applications.

   Enterprise-level applications: MySQL offers support directly through the parent
    company, MySQL AB. MySQL’s feature set includes just about every- thing that an
    enterprise-level application would need. Refer back to Table 1-4 for more details.

   Open-source support: MySQL AB is responsive to requests for features as well. MySQL is
    open-source; everyone is welcome to download and extend the code to meet his or
    her needs.



TRIVUz Academy
DATABASE
                                      Introducing MySQL

  What MySQL Does Bes
   Low overhead: MySQL runs comfortably for many applications on an Intel Pentium-
    class computer with 32 MB of RAM or less. I wouldn’t recommend running an
    enterprise-level MySQL implementation on such a system, but consider the utter futility
    of trying to run a Web application on Internet Information Server with Microsoft SQL
    Server that runs under Windows 2000 on a Pentium-class computer with 32 MB of RAM.

   Available large table size: MySQL tables can grow large, though they do sometimes
    encounter file-size limitations of the host operating system. Some architectures,
    however, can accommodate up to 8 terabytes (TB) per table using MySQL.

   Stability: All software is in development. Some features in MySQL are newer than
    others, making them possibly less stable than others. Table 1-6 shows some of the
    features within MySQL and their stability level.

TRIVUz Academy
DATABASE
                 Database Concepts & Design


  What is data?

  What is database?
  Why use a Database?
  How are database used?




TRIVUz Academy
DATABASE
                 Database Concepts & Design

  Database Design

  Database design is the process of determining and
  organizing the information to track. Many iterations of a
  database design occur as you try to achieve an
  efficient design and maximize your use of resources.




TRIVUz Academy
DATABASE
                 Database Concepts & Design

  The Database Life Cycle
  • Requirements analysis

  • Logical design of the database

  • Physical design of the database

  • Implementation and subsequent modification of the
    database



TRIVUz Academy
DATABASE
                          Database Design

  Requirement Analysis

  Gather information on the business process and items

  Analysis and Document them properly




TRIVUz Academy
DATABASE
                               Database Design

  Logical Design
  Entities and attributes

  At a basic level of a data model are entities — objects that you
  are interested in as part of the data model you are creating.
  Example – Marksheet

  Entities have identifying qualities — attributes. For example, the
  Marksheet entity has such attributes as StudentID, Subject and
  Marks.



TRIVUz Academy
DATABASE
                               Database Design

  Logical Design
  Entities
   Marksheet

  Attributes
   StudentID, Subject, Marks




TRIVUz Academy
DATABASE
                                   Database Design

  Example
  Entities
   Marksheet

  Attributes
   StudentID, Subject, Marks
         Table: marksheet
         Student ID         Subject      Marks
         1001               Math         78
         1003               Math         85
         1005               Math         34

TRIVUz Academy
DATABASE
                              Database Design

   Okay, we designed our database. We got all our
   Entity & attributes.




                 What now?


TRIVUz Academy
DATABASE
                  Database Design

   Next…


   We have to create our physical
   database.




TRIVUz Academy
DATABASE




                 SQL Introduction




TRIVUz Academy
DATABASE
                            SQL Introduction

  What is SQL?

  SQL, or Structured Query Language, is a specialized
  type of programming language developed to work
  with relational databases such as MySQL, Oracle,
  Microsoft SQL Server, PostgreSQL, Informix, and others.




TRIVUz Academy
DATABASE
                                SQL Introduction

  What is SQL?
  The SQL standard is defined by ANSI, the American National
  Standards Institute in their ISO/IEC 9075:1992 document. (The
  standard is commonly referred to as ANSI SQL-92.) Every relational
  database applies its own version of the SQL standard; many
  enhance that standard. Standardizing the programming language
  allows the devel- oper to address the database in much the same
  way from platform to platform — and every major platform has
  such products written for it. Table 1-2 compares some popular
  relational-database products as illustrative examples.


TRIVUz Academy
DATABASE
                                         SQL Example

  Creating our Tables

  Syntax

  CREATE [TEMPORARY] TABLE [IF NOT EXISTS] <tablename>
  [(<create_statement>,...)] [table_options] [select_statement]




TRIVUz Academy
DATABASE
                                             SQL Example

  Creating our Tables
  Code

  CREATE TABLE marksheet (

          marks_id int(11) NOT NULL PRIMARY KEY,

          student_id int(11),

          subject varchar(255),

          marks varchar(255)

  );



TRIVUz Academy
Thank You



            MS Alam TRIVUz
            Founder,
            TRIVUz Academy
            trivuz@gmail.com

More Related Content

What's hot

Chapter 1 Fundamentals of Database Management System
Chapter 1 Fundamentals of Database Management SystemChapter 1 Fundamentals of Database Management System
Chapter 1 Fundamentals of Database Management SystemEddyzulham Mahluzydde
 
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]Usman Tariq
 
Data base management system
Data base management systemData base management system
Data base management systemashirafzal1
 
Database Design
Database DesignDatabase Design
Database Designlearnt
 
Database Systems
Database SystemsDatabase Systems
Database SystemsUsman Tariq
 
System Design Presentation
System Design PresentationSystem Design Presentation
System Design PresentationSCOUT9989
 
User, roles and privileges
User, roles and privilegesUser, roles and privileges
User, roles and privilegesYogiji Creations
 
Database systems - Chapter 2
Database systems - Chapter 2Database systems - Chapter 2
Database systems - Chapter 2shahab3
 
Transport layer interface
Transport layer interface Transport layer interface
Transport layer interface CEC Landran
 
Lecture 01 introduction to database
Lecture 01 introduction to databaseLecture 01 introduction to database
Lecture 01 introduction to databaseemailharmeet
 
Database Administration
Database AdministrationDatabase Administration
Database AdministrationBilal Arshad
 
Basic Concept Of Database Management System (DBMS) [Presentation Slide]
Basic Concept Of Database Management System (DBMS) [Presentation Slide]Basic Concept Of Database Management System (DBMS) [Presentation Slide]
Basic Concept Of Database Management System (DBMS) [Presentation Slide]Atik Israk
 
Data Flow Diagram_DFD
Data Flow Diagram_DFDData Flow Diagram_DFD
Data Flow Diagram_DFDCoT
 
Structured Query Language (SQL)
Structured Query Language (SQL)Structured Query Language (SQL)
Structured Query Language (SQL)Syed Hassan Ali
 

What's hot (20)

Database concepts
Database conceptsDatabase concepts
Database concepts
 
Chapter 1 Fundamentals of Database Management System
Chapter 1 Fundamentals of Database Management SystemChapter 1 Fundamentals of Database Management System
Chapter 1 Fundamentals of Database Management System
 
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
 
OLTP vs OLAP
OLTP vs OLAPOLTP vs OLAP
OLTP vs OLAP
 
Data base management system
Data base management systemData base management system
Data base management system
 
Database Design
Database DesignDatabase Design
Database Design
 
Database Systems
Database SystemsDatabase Systems
Database Systems
 
System Design Presentation
System Design PresentationSystem Design Presentation
System Design Presentation
 
User, roles and privileges
User, roles and privilegesUser, roles and privileges
User, roles and privileges
 
Database systems - Chapter 2
Database systems - Chapter 2Database systems - Chapter 2
Database systems - Chapter 2
 
Transport layer interface
Transport layer interface Transport layer interface
Transport layer interface
 
Lecture 01 introduction to database
Lecture 01 introduction to databaseLecture 01 introduction to database
Lecture 01 introduction to database
 
Database Administration
Database AdministrationDatabase Administration
Database Administration
 
Basic Concept Of Database Management System (DBMS) [Presentation Slide]
Basic Concept Of Database Management System (DBMS) [Presentation Slide]Basic Concept Of Database Management System (DBMS) [Presentation Slide]
Basic Concept Of Database Management System (DBMS) [Presentation Slide]
 
DbMs
DbMsDbMs
DbMs
 
Data Flow Diagram_DFD
Data Flow Diagram_DFDData Flow Diagram_DFD
Data Flow Diagram_DFD
 
Structured Query Language (SQL)
Structured Query Language (SQL)Structured Query Language (SQL)
Structured Query Language (SQL)
 
Using the set operators
Using the set operatorsUsing the set operators
Using the set operators
 
Dbms models
Dbms modelsDbms models
Dbms models
 
Sql tutorial
Sql tutorialSql tutorial
Sql tutorial
 

Viewers also liked

Security technologies
Security technologiesSecurity technologies
Security technologiesDhani Ahmad
 
Privacy & security in heath care it
Privacy & security in heath care itPrivacy & security in heath care it
Privacy & security in heath care itDhani Ahmad
 
Physical security
Physical securityPhysical security
Physical securityDhani Ahmad
 
Opportunities, threats, industry competition, and competitor analysis
Opportunities, threats, industry competition, and competitor analysisOpportunities, threats, industry competition, and competitor analysis
Opportunities, threats, industry competition, and competitor analysisDhani Ahmad
 
Information system
Information systemInformation system
Information systemDhani Ahmad
 
Risk management ii
Risk management iiRisk management ii
Risk management iiDhani Ahmad
 
Legal, ethical & professional issues
Legal, ethical & professional issuesLegal, ethical & professional issues
Legal, ethical & professional issuesDhani Ahmad
 
Security and personnel
Security and personnelSecurity and personnel
Security and personnelDhani Ahmad
 
Types of islamic institutions and records
Types of islamic institutions and recordsTypes of islamic institutions and records
Types of islamic institutions and recordsDhani Ahmad
 
Islamic information seeking behavior
Islamic information seeking behaviorIslamic information seeking behavior
Islamic information seeking behaviorDhani Ahmad
 
The information security audit
The information security auditThe information security audit
The information security auditDhani Ahmad
 
Risk management i
Risk management iRisk management i
Risk management iDhani Ahmad
 
Islamic information management
Islamic information managementIslamic information management
Islamic information managementDhani Ahmad
 
Database design, implementation, and management -chapter02
Database design, implementation, and management -chapter02Database design, implementation, and management -chapter02
Database design, implementation, and management -chapter02Beni Krisbiantoro
 
The need for security
The need for securityThe need for security
The need for securityDhani Ahmad
 
Strategic planning
Strategic planningStrategic planning
Strategic planningDhani Ahmad
 
Islamic information management sources in islam
Islamic information management sources in islamIslamic information management sources in islam
Islamic information management sources in islamDhani Ahmad
 
Information resource management
Information resource managementInformation resource management
Information resource managementDhani Ahmad
 

Viewers also liked (20)

Security technologies
Security technologiesSecurity technologies
Security technologies
 
Privacy & security in heath care it
Privacy & security in heath care itPrivacy & security in heath care it
Privacy & security in heath care it
 
Physical security
Physical securityPhysical security
Physical security
 
Opportunities, threats, industry competition, and competitor analysis
Opportunities, threats, industry competition, and competitor analysisOpportunities, threats, industry competition, and competitor analysis
Opportunities, threats, industry competition, and competitor analysis
 
Information system
Information systemInformation system
Information system
 
Secure
SecureSecure
Secure
 
Risk management ii
Risk management iiRisk management ii
Risk management ii
 
Legal, ethical & professional issues
Legal, ethical & professional issuesLegal, ethical & professional issues
Legal, ethical & professional issues
 
Security and personnel
Security and personnelSecurity and personnel
Security and personnel
 
Types of islamic institutions and records
Types of islamic institutions and recordsTypes of islamic institutions and records
Types of islamic institutions and records
 
Security policy
Security policySecurity policy
Security policy
 
Islamic information seeking behavior
Islamic information seeking behaviorIslamic information seeking behavior
Islamic information seeking behavior
 
The information security audit
The information security auditThe information security audit
The information security audit
 
Risk management i
Risk management iRisk management i
Risk management i
 
Islamic information management
Islamic information managementIslamic information management
Islamic information management
 
Database design, implementation, and management -chapter02
Database design, implementation, and management -chapter02Database design, implementation, and management -chapter02
Database design, implementation, and management -chapter02
 
The need for security
The need for securityThe need for security
The need for security
 
Strategic planning
Strategic planningStrategic planning
Strategic planning
 
Islamic information management sources in islam
Islamic information management sources in islamIslamic information management sources in islam
Islamic information management sources in islam
 
Information resource management
Information resource managementInformation resource management
Information resource management
 

Similar to Database - Design & Implementation - 1

Similar to Database - Design & Implementation - 1 (20)

Database
DatabaseDatabase
Database
 
jose rizal
jose rizaljose rizal
jose rizal
 
Dbms and rdbms ppt
Dbms and rdbms pptDbms and rdbms ppt
Dbms and rdbms ppt
 
Database Management Systems
Database Management SystemsDatabase Management Systems
Database Management Systems
 
ppt on database management
ppt on database management ppt on database management
ppt on database management
 
Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptx
 
DATA BASE MANAGEMENT SYSTEM BY SAIKIRAN PANJALA
DATA BASE  MANAGEMENT SYSTEM BY SAIKIRAN PANJALADATA BASE  MANAGEMENT SYSTEM BY SAIKIRAN PANJALA
DATA BASE MANAGEMENT SYSTEM BY SAIKIRAN PANJALA
 
DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
 
DBMS PART 1.docx
DBMS PART 1.docxDBMS PART 1.docx
DBMS PART 1.docx
 
DBMS Notes.pdf
DBMS Notes.pdfDBMS Notes.pdf
DBMS Notes.pdf
 
Presentation 5 (4).pdf
Presentation 5 (4).pdfPresentation 5 (4).pdf
Presentation 5 (4).pdf
 
Database
DatabaseDatabase
Database
 
MADHU.pptx
MADHU.pptxMADHU.pptx
MADHU.pptx
 
WHAT IS A DBMS? EXPLAIN DIFFERENT MYSQL COMMANDS AND CONSTRAINTS OF THE SAME.
WHAT IS A DBMS? EXPLAIN DIFFERENT MYSQL COMMANDS AND  CONSTRAINTS OF THE SAME.WHAT IS A DBMS? EXPLAIN DIFFERENT MYSQL COMMANDS AND  CONSTRAINTS OF THE SAME.
WHAT IS A DBMS? EXPLAIN DIFFERENT MYSQL COMMANDS AND CONSTRAINTS OF THE SAME.
 
DBMS introduction
DBMS introductionDBMS introduction
DBMS introduction
 
data base system to new data science lerne
data base system to new data science lernedata base system to new data science lerne
data base system to new data science lerne
 
DATABASE INTRODUCTION
DATABASE INTRODUCTIONDATABASE INTRODUCTION
DATABASE INTRODUCTION
 
NOSQL Database Engines for Big Data Management
NOSQL Database Engines for Big Data ManagementNOSQL Database Engines for Big Data Management
NOSQL Database Engines for Big Data Management
 
Database system Handbook.docx
Database system Handbook.docxDatabase system Handbook.docx
Database system Handbook.docx
 
Lecture#5
Lecture#5Lecture#5
Lecture#5
 

More from Trivuz ত্রিভুজ

More from Trivuz ত্রিভুজ (6)

Web design basics 1
Web design basics 1Web design basics 1
Web design basics 1
 
Web design intro
Web design introWeb design intro
Web design intro
 
Programming Basics - array, loops, funcitons
Programming Basics - array, loops, funcitonsProgramming Basics - array, loops, funcitons
Programming Basics - array, loops, funcitons
 
Programming Basics if then else, switch, operators
Programming Basics if then else, switch, operatorsProgramming Basics if then else, switch, operators
Programming Basics if then else, switch, operators
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
 
Running @ maximum HP without Tearing Apart
Running @ maximum HP without Tearing ApartRunning @ maximum HP without Tearing Apart
Running @ maximum HP without Tearing Apart
 

Recently uploaded

TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdfssuserdda66b
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 

Recently uploaded (20)

TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 

Database - Design & Implementation - 1

  • 1. TRIVUz Academy DB01 Class Id: DATABASE Design & Implementation TRIVUz Academy MS Alam TRIVUz Founder, TRIVUz Network
  • 2. TRIVUz Academy Recap PF01 & PF02 TRIVUz Academy
  • 3. Recap We meet a customer We understand his needs We make a plan We scratch the design Database Design TRIVUz Academy www.trivuzacademy.com www.trivuzacademy.com
  • 4. We are going to learn Brief introduction on Database Array Array Functions Global Array Loop for, do…while, for each Functions Database Design TRIVUz Academy www.trivuzacademy.com
  • 5. DATABASE Brief Introduction TRIVUz Academy
  • 6. DATABASE Brief Introduction What is Database? Often abbreviated DB. A collection of information organized in such a way that a computer program can quickly select desired pieces of data. You can think of a database as an electronic filing system. TRIVUz Academy
  • 7. DATABASE Brief Introduction What is Database? Traditional databases are organized by fields, records, and files.  A field is a single piece of information;  a record is one complete set of fields;  and a file is a collection of records. TRIVUz Academy
  • 8. DATABASE Brief Introduction What is Database? For example, a telephone book is analogous to a file. It contains a list of records, each of which consists of three fields: name, address, and telephone number. TRIVUz Academy
  • 9. DATABASE Brief Introduction What is Database? For example, a telephone book is analogous to a file. It contains a list of records, each of which consists of three fields: name, address, and telephone number. Name Address Phone Number Mr. Khan Banani, Dhaka 02-01020304 Farah Zebin Uttara, Dhaka 02-23344556 Robindranath Uttara, Dhaka 02-44543212 TRIVUz Academy
  • 10. DATABASE Brief Introduction DBMS To access information from a database, you need a database management system (DBMS). This is a collection of programs that enables you to enter, organize, and select data in a database. TRIVUz Academy
  • 11. DATABASE Brief Introduction RDBMS A relational database management system (RDBMS) is a database management system (DBMS) that is based on the relational model as introduced by E. F. Codd. Most popular databases currently in use are based on the relational database model. TRIVUz Academy
  • 12. DATABASE Brief Introduction RDBMS A short definition of an RDBMS is: A DBMS in which data is stored in tables and the relationships among the data are also stored in tables. The data can be accessed or reassembled in many different ways without having to change the table forms. TRIVUz Academy
  • 13. DATABASE Brief Introduction RDBMS A short definition of an RDBMS is: A DBMS in which data is stored in tables and the relationships among the data are also stored in tables. The data can be accessed or reassembled in many different ways without having to change the table forms. TRIVUz Academy
  • 14. DATABASE Brief Introduction History The database concept The database concept has evolved since the 1960s to ease increasing difficulties in designing, building, and maintaining complex information systems (typically with many concurrent end-users, and with a diverse large amount of data). It has evolved together with database management systems which enable the effective handling of databases. TRIVUz Academy
  • 15. DATABASE Brief Introduction History Evolution of database and DBMS technology The introduction of the term database coincided with the availability of direct-access storage (disks and drums) from the mid-1960s onwards. The term represented a contrast with the tape-based systems of the past, allowing shared interactive use rather than daily batch processing. TRIVUz Academy
  • 16. DATABASE Brief Introduction History Evolution of database and DBMS technology In the earliest database systems, efficiency was perhaps the primary concern, but it was already recognized that there were other important objectives. One of the key aims was to make the data independent of the logic of application programs, so that the same data could be made available to different applications. TRIVUz Academy
  • 17. DATABASE Brief Introduction History Evolution of database and DBMS technology The first generation of database systems were navigational, applications typically accessed data by following pointers from one record to another. The two main data models at this time were the hierarchical model, epitomized by IBM's IMS system, and the Codasyl model (Network model), implemented in a number of products such as IDMS. TRIVUz Academy
  • 18. DATABASE Brief Introduction History Evolution of database and DBMS technology The Relational model, first proposed in 1970 by Edgar F. Codd, departed from this tradition by insisting that applications should search for data by content, rather than by following links. TRIVUz Academy
  • 19. DATABASE Brief Introduction History Evolution of database and DBMS technology Relational systems placed heavy demands on processing resources, and it was not until the mid 1980s that computing hardware became powerful enough to allow them to be widely deployed. By the early 1990s, however, relational systems were dominant for all large- scale data processing applications, and they remain dominant today (2011) except in niche areas. TRIVUz Academy
  • 20. DATABASE Brief Introduction History Evolution of database and DBMS technology The dominant database language is the standard SQL for the Relational model, which has influenced database languages also for other data models. TRIVUz Academy
  • 21. DATABASE Quick Look SQL ??? What is SQL? SQL, or Structured Query Language, is a specialized type of programming language developed to work with relational databases such as MySQL, Oracle, Microsoft SQL Server, PostgreSQL, Informix, and others. The SQL standard is defined by ANSI, the American National Standards Institute in their ISO/IEC 9075:1992 document. (The standard is commonly referred to as ANSI SQL-92.) Every relational database applies its own version of the SQL standard; many enhance that standard. Standardizing the programming language allows the devel- oper to address the database in much the same way from platform to platform — and every major platform has such products written for it. Table 1-2 compares some popular relational-database products as illustrative examples. TRIVUz Academy
  • 22. DATABASE Brief Introduction History Ancient to modern http://math.hws.edu/vaughn/cpsc/343/2003/history.ht ml TRIVUz Academy
  • 23. DATABASE Brief Introduction History General-purpose DBMS A DBMS has evolved into a complex software system and its development typically requires thousands of person-years of development effort. Some general- purpose DBMSs, like Oracle, Microsoft SQL server, and IBM DB2, have been in on-going development and enhancement for thirty years or more. TRIVUz Academy
  • 24. DATABASE Brief Introduction History Types of people involved Three types of people are involved with a general-purpose DBMS: 1. DBMS developers - These are the people that design and build the DBMS product, and the only ones who touch its code. They are typically the employees of a DBMS vendor (e.g., Oracle, IBM, Microsoft, Sybase), or, in the case of Open source DBMSs (e.g., MySQL), volunteers or people supported by interested companies and organizations. They are typically skilled systems programmers. DBMS development is a complicated task, and some of the popular DBMSs have been under development and enhancement (also to follow progress in technology) for decades. TRIVUz Academy
  • 25. DATABASE Brief Introduction History Types of people involved 2. Application developers and Database administrators - These are the people that design and build a database-based application that uses the DBMS. The latter group members design the needed database and maintain it. The first group members write the needed application programs which the application comprises. Both are well familiar with the DBMS product and use its user interfaces (as well as usually other tools) for their work. Sometimes the application itself is packaged and sold as a separate product, which may include the DBMS inside (see Embedded database; subject to proper DBMS licensing), or sold separately as an add-on to the DBMS. TRIVUz Academy
  • 26. DATABASE Brief Introduction History Types of people involved 3. Application's end-users : (e.g., accountants, insurance people, medical doctors, etc.) – These people know the application and its end-user interfaces, but need not know nor understand the underlying DBMS. Thus, though they are the intended and main beneficiaries of a DBMS, they are only indirectly involved with it. TRIVUz Academy
  • 27. DATABASE Brief Introduction Advantages The speed, accuracy, reporting and thoroughness of electronic databases make them critical to today’s 24/7 high-speed exchange of information. TRIVUz Academy
  • 28. DATABASE Brief Introduction Advantages Speed: Format means quick storage and retrieval of information. Users and applications have a quick means for asynchronous reads and writes of data. TRIVUz Academy
  • 29. DATABASE Brief Introduction Advantages Accuracy: Given careful data input, databases provide accurate and consistent results based on their data. TRIVUz Academy
  • 30. DATABASE Brief Introduction Advantages Reporting: Information can be gathered, quantified, and custom-analyzed with greater flexibility. TRIVUz Academy
  • 31. DATABASE Brief Introduction Advantages Thoroughness: Databases can store and report results as complete and detailed as their holdings — at electronic speed. TRIVUz Academy
  • 32. DATABASE Brief Introduction Advantages Thoroughness: Databases can store and report results as complete and detailed as their holdings — at electronic speed. TRIVUz Academy
  • 33. DATABASE Choose RDBMS Existing RDBMS TRIVUz Academy
  • 34. DATABASE Introducing MySQL What is MySQL? MySQL is the worlds most popular open source RDBMS. TRIVUz Academy
  • 35. DATABASE Introducing MySQL Why MySQL? MySQL is the worlds most popular open source RDBMS. MySQL is used from many large scale web sites including Google and NASA, and is a very strong competitor to even the likes of Microsoft SQL Server and Oracle. MySQL is incredibly fast, provides support for full text searches, and is widely supported. TRIVUz Academy
  • 36. DATABASE Introducing MySQL Comparison of SQL Implementations TRIVUz Academy
  • 37. DATABASE Introducing MySQL MySQL Enterprise-Level Database Features TRIVUz Academy
  • 38. DATABASE Introducing MySQL MySQL Enterprise-Level Database Features TRIVUz Academy
  • 39. DATABASE Introducing MySQL What MySQL Does Bes  Web applications: Web applications typically feature many reads and few writes. MySQL is fast and can meet the demands of Internet speed. In my experience, MySQL has proven time and again that it outperforms other RDBMS products in Web applications.  Enterprise-level applications: MySQL offers support directly through the parent company, MySQL AB. MySQL’s feature set includes just about every- thing that an enterprise-level application would need. Refer back to Table 1-4 for more details.  Open-source support: MySQL AB is responsive to requests for features as well. MySQL is open-source; everyone is welcome to download and extend the code to meet his or her needs. TRIVUz Academy
  • 40. DATABASE Introducing MySQL What MySQL Does Bes  Low overhead: MySQL runs comfortably for many applications on an Intel Pentium- class computer with 32 MB of RAM or less. I wouldn’t recommend running an enterprise-level MySQL implementation on such a system, but consider the utter futility of trying to run a Web application on Internet Information Server with Microsoft SQL Server that runs under Windows 2000 on a Pentium-class computer with 32 MB of RAM.  Available large table size: MySQL tables can grow large, though they do sometimes encounter file-size limitations of the host operating system. Some architectures, however, can accommodate up to 8 terabytes (TB) per table using MySQL.  Stability: All software is in development. Some features in MySQL are newer than others, making them possibly less stable than others. Table 1-6 shows some of the features within MySQL and their stability level. TRIVUz Academy
  • 41. DATABASE Database Concepts & Design What is data? What is database? Why use a Database? How are database used? TRIVUz Academy
  • 42. DATABASE Database Concepts & Design Database Design Database design is the process of determining and organizing the information to track. Many iterations of a database design occur as you try to achieve an efficient design and maximize your use of resources. TRIVUz Academy
  • 43. DATABASE Database Concepts & Design The Database Life Cycle • Requirements analysis • Logical design of the database • Physical design of the database • Implementation and subsequent modification of the database TRIVUz Academy
  • 44. DATABASE Database Design Requirement Analysis Gather information on the business process and items Analysis and Document them properly TRIVUz Academy
  • 45. DATABASE Database Design Logical Design Entities and attributes At a basic level of a data model are entities — objects that you are interested in as part of the data model you are creating. Example – Marksheet Entities have identifying qualities — attributes. For example, the Marksheet entity has such attributes as StudentID, Subject and Marks. TRIVUz Academy
  • 46. DATABASE Database Design Logical Design Entities Marksheet Attributes StudentID, Subject, Marks TRIVUz Academy
  • 47. DATABASE Database Design Example Entities Marksheet Attributes StudentID, Subject, Marks Table: marksheet Student ID Subject Marks 1001 Math 78 1003 Math 85 1005 Math 34 TRIVUz Academy
  • 48. DATABASE Database Design Okay, we designed our database. We got all our Entity & attributes. What now? TRIVUz Academy
  • 49. DATABASE Database Design Next… We have to create our physical database. TRIVUz Academy
  • 50. DATABASE SQL Introduction TRIVUz Academy
  • 51. DATABASE SQL Introduction What is SQL? SQL, or Structured Query Language, is a specialized type of programming language developed to work with relational databases such as MySQL, Oracle, Microsoft SQL Server, PostgreSQL, Informix, and others. TRIVUz Academy
  • 52. DATABASE SQL Introduction What is SQL? The SQL standard is defined by ANSI, the American National Standards Institute in their ISO/IEC 9075:1992 document. (The standard is commonly referred to as ANSI SQL-92.) Every relational database applies its own version of the SQL standard; many enhance that standard. Standardizing the programming language allows the devel- oper to address the database in much the same way from platform to platform — and every major platform has such products written for it. Table 1-2 compares some popular relational-database products as illustrative examples. TRIVUz Academy
  • 53. DATABASE SQL Example Creating our Tables Syntax CREATE [TEMPORARY] TABLE [IF NOT EXISTS] <tablename> [(<create_statement>,...)] [table_options] [select_statement] TRIVUz Academy
  • 54. DATABASE SQL Example Creating our Tables Code CREATE TABLE marksheet ( marks_id int(11) NOT NULL PRIMARY KEY, student_id int(11), subject varchar(255), marks varchar(255) ); TRIVUz Academy
  • 55. Thank You MS Alam TRIVUz Founder, TRIVUz Academy trivuz@gmail.com

Editor's Notes

  1. ----- Meeting Notes (12/28/11 19:20) -----