SlideShare a Scribd company logo
1 of 40
Introduction to Database With Microsoft Office Access 2007
Agenda Getting to Know Database Basic of Microsoft Office Access 2007 Basic Operations of Database Structured Query Language (SQL) CRUD Operations
Getting to Know Database
Definition of Database Organized mechanism to store, manage and retrieve information Efficient Robust Stable Arranged in tabular fashion Apparent relationship between information The most important aspect Won’t be taught in this class :-(
Consists of a table, multiple fields and many columns A Really Simple Database
Organization of Database Tables Fields (Columns) Has many types Primary Key (Optional) Records (Rows, Entries)
When to Use Database? (1/3) Appropriate Appropriate Inappropriate Appropriate Inappropriate Appropriate
When to Use Database? (2/3) Transaction records Logging Blog/Forum Media Library Shopping list Music playlist Appropriate Inappropriate
When to Use Database? (3/3) Managing mass amount of information Sharing Information between many users Manipulating complicatedly related information Need security Desire organization
Under the Hood Infrastructure of Database Implementations in which we are going to learn
Basic of Access 2007
Don’t panic! You’ll soon be familiar with it. Microsoft Office Access 2007
Field Types (1/2)
Field Types (2/2)
Basic Operations of Database
Structured Query Language (SQL) Defines methods to manipulate database Attempt to request something from Database is called Query Each formed SQL statement refer as SQL Query Resembles natural language Has many standards However, the basic part is still the same
CRUD Create new tables and records Retrieve records from tables Update tables’ definition and record’s data Delete existing tables and records
CRUD : Create INSERT INTO <table_name> (<field_list>) VALUES (<value_list>); AutoNumber field must not be included Examples INSERT INTO students (nisit_id, name, surname) VALUES (51052744, “Pongsakorn”, “U-chupala”);
CRUD : Create - Example INSERT INTO students(nisit_id, name, surname) VALUES (51052744, “Pongsakorn”, “U-chupala”);
CRUD : Create - Example INSERT INTO students(nisit_id, name, surname) VALUES (51052744, “Pongsakorn”, “U-chupala”);
CRUD : Create - Practice Insert a record with every field specified
CRUD : Retrieve SELECT <select_list> FROM <table_name> [ WHERE <search_condition> ] [ ORDER BY <order_expression> [ ASC | DESC ] ]; Select which fields to retrieve  Examples SELECT field_1, field_2 FROM table_name … SELECT * FROM table_name …
CRUD : Retrieve SELECT <select_list> FROM <table_name> [ WHERE <search_condition> ] [ ORDER BY <order_expression> [ ASC | DESC ] ]; Available operators: =, <, >, <=, >=, <> Modifiers: AND, OR, NOT, () Examples … WHERE student_id=1 … … WHEHE (<cond1>) AND (<cond2>) …
CRUD : Retrieve SELECT <select_list> FROM <table_name> [ WHERE <search_condition> ] [ ORDER BY <order_expression> [ ASC | DESC ] ]; Sort results by order expression ascending (default) or descending Expression can be chained together Examples … ORDER BY date DESC … … ORDER BY name ASC, surname ASC …
CRUD : Retrieve - Example SELECT name, height FROM students WHERE height>160 ORDER BY height DESC;
CRUD : Retrieve - Example SELECT name, height FROM students WHERE height>160 ORDER BY height DESC;
CRUD : Retrieve - Practice Select every record, sort by STU_ID, ascending Select name, surname and height of everyone shorter than 170 Select everyone heavier than 70, sort by height, descending
CRUD : Update UPDATE <table_name> SET <field_value_list> [ WHERE <search_condition> ]; Update every record that match the search condition We usually use primary key for this Examples UPDATE students SET name=“Knight”, surname=“Baron” WHERE nisit_id=1;
CRUD : Update - Example UPDATE students SET name=“Knight”, surname=“Baron” WHERE nisit_id=51052744;
CRUD : Update - Example UPDATE students SET name=“Knight”, surname=“Baron” WHERE nisit_id=51052744;
CRUD : Update - Practice Update the record that you’ve added earlier with different data
CRUD : Delete DELETE FROM <table_name> WHERE <search_condition> ; Delete every record that match the search condition Examples DELETE FROM students WHERE id=1 DELETE FROM students WHERE (name=“Knight”) AND (surname=“Baron”);
CRUD : Delete - Example DELETE FROM students WHERE (nisit_id=51052345) OR (nisit_id=51052744);
CRUD : Delete - Example DELETE FROM students WHERE (nisit_id=51052345) OR (nisit_id=51052744);
CRUD : Delete - Example DELETE FROM students WHERE (nisit_id=51052345) OR (nisit_id=51052744);
CRUD : Delete - Practice Delete the record you’ve modified earlier
Conclusion
Review Getting to know Database Definition Organization Practicing with Access 2007 Database operations SQL Syntax CRUD Operations
Please do not hesitate to ask Any Questions?
Author: @KnightBaron Blog: http://aosekai.net/ Email: knightbaron@gmail.com Thank You!

More Related Content

What's hot

SQL Queries Information
SQL Queries InformationSQL Queries Information
SQL Queries InformationNishant Munjal
 
Dbms classification according to data models
Dbms classification according to data modelsDbms classification according to data models
Dbms classification according to data modelsABDUL KHALIQ
 
Structured query language(sql)ppt
Structured query language(sql)pptStructured query language(sql)ppt
Structured query language(sql)pptGowarthini
 
Type of database models
Type of database modelsType of database models
Type of database modelsSanthiNivas
 
Introduction to database & sql
Introduction to database & sqlIntroduction to database & sql
Introduction to database & sqlzahid6
 
Database Keys & Relationship
Database Keys & RelationshipDatabase Keys & Relationship
Database Keys & RelationshipBellal Hossain
 
5. stored procedure and functions
5. stored procedure and functions5. stored procedure and functions
5. stored procedure and functionsAmrit Kaur
 
Rdbms
RdbmsRdbms
Rdbmsrdbms
 
Tutorial On Database Management System
Tutorial On Database Management SystemTutorial On Database Management System
Tutorial On Database Management Systempsathishcs
 

What's hot (20)

SQL Functions
SQL FunctionsSQL Functions
SQL Functions
 
SQL Queries Information
SQL Queries InformationSQL Queries Information
SQL Queries Information
 
SQL Views
SQL ViewsSQL Views
SQL Views
 
SQL Commands
SQL Commands SQL Commands
SQL Commands
 
Dbms classification according to data models
Dbms classification according to data modelsDbms classification according to data models
Dbms classification according to data models
 
View & index in SQL
View & index in SQLView & index in SQL
View & index in SQL
 
Structured query language(sql)ppt
Structured query language(sql)pptStructured query language(sql)ppt
Structured query language(sql)ppt
 
Introduction to-sql
Introduction to-sqlIntroduction to-sql
Introduction to-sql
 
SQL
SQLSQL
SQL
 
Database
DatabaseDatabase
Database
 
Type of database models
Type of database modelsType of database models
Type of database models
 
Introduction to database & sql
Introduction to database & sqlIntroduction to database & sql
Introduction to database & sql
 
Database Keys & Relationship
Database Keys & RelationshipDatabase Keys & Relationship
Database Keys & Relationship
 
5. stored procedure and functions
5. stored procedure and functions5. stored procedure and functions
5. stored procedure and functions
 
DBMS Notes: DDL DML DCL
DBMS Notes: DDL DML DCLDBMS Notes: DDL DML DCL
DBMS Notes: DDL DML DCL
 
Rdbms
RdbmsRdbms
Rdbms
 
DbMs
DbMsDbMs
DbMs
 
Tutorial On Database Management System
Tutorial On Database Management SystemTutorial On Database Management System
Tutorial On Database Management System
 
Postgresql
PostgresqlPostgresql
Postgresql
 
SQL commands
SQL commandsSQL commands
SQL commands
 

Viewers also liked

Database management system presentation
Database management system presentationDatabase management system presentation
Database management system presentationsameerraaj
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Jotham Gadot
 
Data base management system
Data base management systemData base management system
Data base management systemNavneet Jingar
 
Types of databases
Types of databasesTypes of databases
Types of databasesPAQUIAAIZEL
 
information system lecture notes
information system lecture notesinformation system lecture notes
information system lecture notesnaeem_mnm
 
Introduction to Microsoft Office
Introduction to Microsoft OfficeIntroduction to Microsoft Office
Introduction to Microsoft OfficeCik Na Shohaili
 
Database management system
Database management systemDatabase management system
Database management systemRizwanHafeez
 
Database Management Systems (DBMS)
Database Management Systems (DBMS)Database Management Systems (DBMS)
Database Management Systems (DBMS)Dimara Hakim
 
A presentation on ms office
A presentation on ms officeA presentation on ms office
A presentation on ms officeVijayraj Daksh
 
Computer Security and Risks
Computer Security and RisksComputer Security and Risks
Computer Security and RisksMiguel Rebollo
 

Viewers also liked (15)

Dbms slides
Dbms slidesDbms slides
Dbms slides
 
Database management system presentation
Database management system presentationDatabase management system presentation
Database management system presentation
 
Tacit knowledge
Tacit knowledgeTacit knowledge
Tacit knowledge
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01
 
Data base management system
Data base management systemData base management system
Data base management system
 
Types of databases
Types of databasesTypes of databases
Types of databases
 
information system lecture notes
information system lecture notesinformation system lecture notes
information system lecture notes
 
Basic DBMS ppt
Basic DBMS pptBasic DBMS ppt
Basic DBMS ppt
 
Data Base Management System
Data Base Management SystemData Base Management System
Data Base Management System
 
Introduction to Microsoft Office
Introduction to Microsoft OfficeIntroduction to Microsoft Office
Introduction to Microsoft Office
 
Database management system
Database management systemDatabase management system
Database management system
 
Computer Security
Computer SecurityComputer Security
Computer Security
 
Database Management Systems (DBMS)
Database Management Systems (DBMS)Database Management Systems (DBMS)
Database Management Systems (DBMS)
 
A presentation on ms office
A presentation on ms officeA presentation on ms office
A presentation on ms office
 
Computer Security and Risks
Computer Security and RisksComputer Security and Risks
Computer Security and Risks
 

Similar to Introduction to database

Database queries
Database queriesDatabase queries
Database querieslaiba29012
 
Micro-ORM Introduction - Don't overcomplicate
Micro-ORM Introduction - Don't overcomplicateMicro-ORM Introduction - Don't overcomplicate
Micro-ORM Introduction - Don't overcomplicateKiev ALT.NET
 
Data Exploration with Apache Drill: Day 1
Data Exploration with Apache Drill:  Day 1Data Exploration with Apache Drill:  Day 1
Data Exploration with Apache Drill: Day 1Charles Givre
 
Embedded Typesafe Domain Specific Languages for Java
Embedded Typesafe Domain Specific Languages for JavaEmbedded Typesafe Domain Specific Languages for Java
Embedded Typesafe Domain Specific Languages for JavaJevgeni Kabanov
 
Web Developement Workshop (Oct 2009) Slides
Web Developement Workshop (Oct 2009) SlidesWeb Developement Workshop (Oct 2009) Slides
Web Developement Workshop (Oct 2009) SlidesManish Sinha
 
A testing framework for Microsoft SQL-Server
A testing framework for Microsoft SQL-ServerA testing framework for Microsoft SQL-Server
A testing framework for Microsoft SQL-Serverelliando dias
 
When to NoSQL and when to know SQL
When to NoSQL and when to know SQLWhen to NoSQL and when to know SQL
When to NoSQL and when to know SQLSimon Elliston Ball
 
How Clean is your database? Data scrubbing for all skills sets
How Clean is your database? Data scrubbing for all skills setsHow Clean is your database? Data scrubbing for all skills sets
How Clean is your database? Data scrubbing for all skills setsChad Petrovay
 
How did i steal your database CSCamp2011
How did i steal your database CSCamp2011How did i steal your database CSCamp2011
How did i steal your database CSCamp2011Mostafa Siraj
 
Sql Basics | Edureka
Sql Basics | EdurekaSql Basics | Edureka
Sql Basics | EdurekaEdureka!
 
Database development coding standards
Database development coding standardsDatabase development coding standards
Database development coding standardsAlessandro Baratella
 
Sql query tuning or query optimization
Sql query tuning or query optimizationSql query tuning or query optimization
Sql query tuning or query optimizationVivek Singh
 
Coding Guidelines - Crafting Clean Code
Coding Guidelines - Crafting Clean CodeCoding Guidelines - Crafting Clean Code
Coding Guidelines - Crafting Clean CodeGanesh Samarthyam
 
Sql queries - Basics
Sql queries - BasicsSql queries - Basics
Sql queries - BasicsPurvik Rana
 
Plone For Developers - World Plone Day, 2009
Plone For Developers - World Plone Day, 2009Plone For Developers - World Plone Day, 2009
Plone For Developers - World Plone Day, 2009Core Software Group
 
My SQL Skills Killed the Server
My SQL Skills Killed the ServerMy SQL Skills Killed the Server
My SQL Skills Killed the ServerdevObjective
 
Полнотекстовый поиск в PostgreSQL / Александр Алексеев (Postgres Professional)
Полнотекстовый поиск в PostgreSQL / Александр Алексеев (Postgres Professional)Полнотекстовый поиск в PostgreSQL / Александр Алексеев (Postgres Professional)
Полнотекстовый поиск в PostgreSQL / Александр Алексеев (Postgres Professional)Ontico
 

Similar to Introduction to database (20)

Database queries
Database queriesDatabase queries
Database queries
 
Micro-ORM Introduction - Don't overcomplicate
Micro-ORM Introduction - Don't overcomplicateMicro-ORM Introduction - Don't overcomplicate
Micro-ORM Introduction - Don't overcomplicate
 
Data Exploration with Apache Drill: Day 1
Data Exploration with Apache Drill:  Day 1Data Exploration with Apache Drill:  Day 1
Data Exploration with Apache Drill: Day 1
 
Embedded Typesafe Domain Specific Languages for Java
Embedded Typesafe Domain Specific Languages for JavaEmbedded Typesafe Domain Specific Languages for Java
Embedded Typesafe Domain Specific Languages for Java
 
Web Developement Workshop (Oct 2009) Slides
Web Developement Workshop (Oct 2009) SlidesWeb Developement Workshop (Oct 2009) Slides
Web Developement Workshop (Oct 2009) Slides
 
A testing framework for Microsoft SQL-Server
A testing framework for Microsoft SQL-ServerA testing framework for Microsoft SQL-Server
A testing framework for Microsoft SQL-Server
 
When to NoSQL and when to know SQL
When to NoSQL and when to know SQLWhen to NoSQL and when to know SQL
When to NoSQL and when to know SQL
 
How Clean is your database? Data scrubbing for all skills sets
How Clean is your database? Data scrubbing for all skills setsHow Clean is your database? Data scrubbing for all skills sets
How Clean is your database? Data scrubbing for all skills sets
 
How did i steal your database CSCamp2011
How did i steal your database CSCamp2011How did i steal your database CSCamp2011
How did i steal your database CSCamp2011
 
Sql Basics | Edureka
Sql Basics | EdurekaSql Basics | Edureka
Sql Basics | Edureka
 
Database development coding standards
Database development coding standardsDatabase development coding standards
Database development coding standards
 
Sql query tuning or query optimization
Sql query tuning or query optimizationSql query tuning or query optimization
Sql query tuning or query optimization
 
Coding Guidelines in CPP
Coding Guidelines in CPPCoding Guidelines in CPP
Coding Guidelines in CPP
 
Coding Guidelines - Crafting Clean Code
Coding Guidelines - Crafting Clean CodeCoding Guidelines - Crafting Clean Code
Coding Guidelines - Crafting Clean Code
 
Sql queries - Basics
Sql queries - BasicsSql queries - Basics
Sql queries - Basics
 
Plone For Developers - World Plone Day, 2009
Plone For Developers - World Plone Day, 2009Plone For Developers - World Plone Day, 2009
Plone For Developers - World Plone Day, 2009
 
My SQL Skills Killed the Server
My SQL Skills Killed the ServerMy SQL Skills Killed the Server
My SQL Skills Killed the Server
 
Sql killedserver
Sql killedserverSql killedserver
Sql killedserver
 
Full Text Search in PostgreSQL
Full Text Search in PostgreSQLFull Text Search in PostgreSQL
Full Text Search in PostgreSQL
 
Полнотекстовый поиск в PostgreSQL / Александр Алексеев (Postgres Professional)
Полнотекстовый поиск в PostgreSQL / Александр Алексеев (Postgres Professional)Полнотекстовый поиск в PostgreSQL / Александр Алексеев (Postgres Professional)
Полнотекстовый поиск в PostgreSQL / Александр Алексеев (Postgres Professional)
 

More from Pongsakorn U-chupala

Container Rebalancing: Towards Proactive Linux Containers Placement in a Data...
Container Rebalancing: Towards Proactive Linux Containers Placement in a Data...Container Rebalancing: Towards Proactive Linux Containers Placement in a Data...
Container Rebalancing: Towards Proactive Linux Containers Placement in a Data...Pongsakorn U-chupala
 
Application-Oriented Bandwidth and Latency Aware Routing with OpenFlow Network
Application-Oriented Bandwidth and Latency Aware Routing with OpenFlow NetworkApplication-Oriented Bandwidth and Latency Aware Routing with OpenFlow Network
Application-Oriented Bandwidth and Latency Aware Routing with OpenFlow NetworkPongsakorn U-chupala
 
Designing of SDN-Assisted Bandwidth and Latency Aware Route Allocation
Designing of SDN-Assisted Bandwidth and Latency Aware Route AllocationDesigning of SDN-Assisted Bandwidth and Latency Aware Route Allocation
Designing of SDN-Assisted Bandwidth and Latency Aware Route AllocationPongsakorn U-chupala
 
Vision of the future Ambient Intelligence
Vision of the future Ambient IntelligenceVision of the future Ambient Intelligence
Vision of the future Ambient IntelligencePongsakorn U-chupala
 
An Implementation of Virtual Cluster on a Cloud
An Implementation of Virtual Cluster on a CloudAn Implementation of Virtual Cluster on a Cloud
An Implementation of Virtual Cluster on a CloudPongsakorn U-chupala
 
Getting Things Done with "Getting Things Done"
Getting Things Done with "Getting Things Done"Getting Things Done with "Getting Things Done"
Getting Things Done with "Getting Things Done"Pongsakorn U-chupala
 
Introduction to MVC Web Framework with CodeIgniter
Introduction to MVC Web Framework with CodeIgniterIntroduction to MVC Web Framework with CodeIgniter
Introduction to MVC Web Framework with CodeIgniterPongsakorn U-chupala
 
How to develop a homebrew application for Nintendo Wii
How to develop a homebrew application for Nintendo WiiHow to develop a homebrew application for Nintendo Wii
How to develop a homebrew application for Nintendo WiiPongsakorn U-chupala
 

More from Pongsakorn U-chupala (10)

Container Rebalancing: Towards Proactive Linux Containers Placement in a Data...
Container Rebalancing: Towards Proactive Linux Containers Placement in a Data...Container Rebalancing: Towards Proactive Linux Containers Placement in a Data...
Container Rebalancing: Towards Proactive Linux Containers Placement in a Data...
 
Application-Oriented Bandwidth and Latency Aware Routing with OpenFlow Network
Application-Oriented Bandwidth and Latency Aware Routing with OpenFlow NetworkApplication-Oriented Bandwidth and Latency Aware Routing with OpenFlow Network
Application-Oriented Bandwidth and Latency Aware Routing with OpenFlow Network
 
Designing of SDN-Assisted Bandwidth and Latency Aware Route Allocation
Designing of SDN-Assisted Bandwidth and Latency Aware Route AllocationDesigning of SDN-Assisted Bandwidth and Latency Aware Route Allocation
Designing of SDN-Assisted Bandwidth and Latency Aware Route Allocation
 
Vision of the future Ambient Intelligence
Vision of the future Ambient IntelligenceVision of the future Ambient Intelligence
Vision of the future Ambient Intelligence
 
An Implementation of Virtual Cluster on a Cloud
An Implementation of Virtual Cluster on a CloudAn Implementation of Virtual Cluster on a Cloud
An Implementation of Virtual Cluster on a Cloud
 
Anime Discussion (Fall 2010)
Anime Discussion (Fall 2010)Anime Discussion (Fall 2010)
Anime Discussion (Fall 2010)
 
Getting Things Done with "Getting Things Done"
Getting Things Done with "Getting Things Done"Getting Things Done with "Getting Things Done"
Getting Things Done with "Getting Things Done"
 
Introduction to MVC Web Framework with CodeIgniter
Introduction to MVC Web Framework with CodeIgniterIntroduction to MVC Web Framework with CodeIgniter
Introduction to MVC Web Framework with CodeIgniter
 
Are you ready for Google Wave?
Are you ready for Google Wave?Are you ready for Google Wave?
Are you ready for Google Wave?
 
How to develop a homebrew application for Nintendo Wii
How to develop a homebrew application for Nintendo WiiHow to develop a homebrew application for Nintendo Wii
How to develop a homebrew application for Nintendo Wii
 

Recently uploaded

The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 

Recently uploaded (20)

The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 

Introduction to database

  • 1. Introduction to Database With Microsoft Office Access 2007
  • 2. Agenda Getting to Know Database Basic of Microsoft Office Access 2007 Basic Operations of Database Structured Query Language (SQL) CRUD Operations
  • 3. Getting to Know Database
  • 4. Definition of Database Organized mechanism to store, manage and retrieve information Efficient Robust Stable Arranged in tabular fashion Apparent relationship between information The most important aspect Won’t be taught in this class :-(
  • 5. Consists of a table, multiple fields and many columns A Really Simple Database
  • 6. Organization of Database Tables Fields (Columns) Has many types Primary Key (Optional) Records (Rows, Entries)
  • 7. When to Use Database? (1/3) Appropriate Appropriate Inappropriate Appropriate Inappropriate Appropriate
  • 8. When to Use Database? (2/3) Transaction records Logging Blog/Forum Media Library Shopping list Music playlist Appropriate Inappropriate
  • 9. When to Use Database? (3/3) Managing mass amount of information Sharing Information between many users Manipulating complicatedly related information Need security Desire organization
  • 10. Under the Hood Infrastructure of Database Implementations in which we are going to learn
  • 12. Don’t panic! You’ll soon be familiar with it. Microsoft Office Access 2007
  • 16. Structured Query Language (SQL) Defines methods to manipulate database Attempt to request something from Database is called Query Each formed SQL statement refer as SQL Query Resembles natural language Has many standards However, the basic part is still the same
  • 17. CRUD Create new tables and records Retrieve records from tables Update tables’ definition and record’s data Delete existing tables and records
  • 18. CRUD : Create INSERT INTO <table_name> (<field_list>) VALUES (<value_list>); AutoNumber field must not be included Examples INSERT INTO students (nisit_id, name, surname) VALUES (51052744, “Pongsakorn”, “U-chupala”);
  • 19. CRUD : Create - Example INSERT INTO students(nisit_id, name, surname) VALUES (51052744, “Pongsakorn”, “U-chupala”);
  • 20. CRUD : Create - Example INSERT INTO students(nisit_id, name, surname) VALUES (51052744, “Pongsakorn”, “U-chupala”);
  • 21. CRUD : Create - Practice Insert a record with every field specified
  • 22. CRUD : Retrieve SELECT <select_list> FROM <table_name> [ WHERE <search_condition> ] [ ORDER BY <order_expression> [ ASC | DESC ] ]; Select which fields to retrieve Examples SELECT field_1, field_2 FROM table_name … SELECT * FROM table_name …
  • 23. CRUD : Retrieve SELECT <select_list> FROM <table_name> [ WHERE <search_condition> ] [ ORDER BY <order_expression> [ ASC | DESC ] ]; Available operators: =, <, >, <=, >=, <> Modifiers: AND, OR, NOT, () Examples … WHERE student_id=1 … … WHEHE (<cond1>) AND (<cond2>) …
  • 24. CRUD : Retrieve SELECT <select_list> FROM <table_name> [ WHERE <search_condition> ] [ ORDER BY <order_expression> [ ASC | DESC ] ]; Sort results by order expression ascending (default) or descending Expression can be chained together Examples … ORDER BY date DESC … … ORDER BY name ASC, surname ASC …
  • 25. CRUD : Retrieve - Example SELECT name, height FROM students WHERE height>160 ORDER BY height DESC;
  • 26. CRUD : Retrieve - Example SELECT name, height FROM students WHERE height>160 ORDER BY height DESC;
  • 27. CRUD : Retrieve - Practice Select every record, sort by STU_ID, ascending Select name, surname and height of everyone shorter than 170 Select everyone heavier than 70, sort by height, descending
  • 28. CRUD : Update UPDATE <table_name> SET <field_value_list> [ WHERE <search_condition> ]; Update every record that match the search condition We usually use primary key for this Examples UPDATE students SET name=“Knight”, surname=“Baron” WHERE nisit_id=1;
  • 29. CRUD : Update - Example UPDATE students SET name=“Knight”, surname=“Baron” WHERE nisit_id=51052744;
  • 30. CRUD : Update - Example UPDATE students SET name=“Knight”, surname=“Baron” WHERE nisit_id=51052744;
  • 31. CRUD : Update - Practice Update the record that you’ve added earlier with different data
  • 32. CRUD : Delete DELETE FROM <table_name> WHERE <search_condition> ; Delete every record that match the search condition Examples DELETE FROM students WHERE id=1 DELETE FROM students WHERE (name=“Knight”) AND (surname=“Baron”);
  • 33. CRUD : Delete - Example DELETE FROM students WHERE (nisit_id=51052345) OR (nisit_id=51052744);
  • 34. CRUD : Delete - Example DELETE FROM students WHERE (nisit_id=51052345) OR (nisit_id=51052744);
  • 35. CRUD : Delete - Example DELETE FROM students WHERE (nisit_id=51052345) OR (nisit_id=51052744);
  • 36. CRUD : Delete - Practice Delete the record you’ve modified earlier
  • 38. Review Getting to know Database Definition Organization Practicing with Access 2007 Database operations SQL Syntax CRUD Operations
  • 39. Please do not hesitate to ask Any Questions?
  • 40. Author: @KnightBaron Blog: http://aosekai.net/ Email: knightbaron@gmail.com Thank You!