SlideShare a Scribd company logo
1 of 15
INFOTE M01
November 1, 2010
• “Although many of y0u will not choose a
career in the design of databases, all of you
will spend a large portion of your time –
whatever job you choose – accessing data in
a myriad of databases.” p. 170
• Accessing data from a database requires
interrogating the database.
• In this short module, we shall review the
concepts behind Boolean logic.
• But before we go on to a review of Boolean logic,
let us review some fundamental data concepts.
• As an example, let us use a clinic database.
• Whenever I see a patient, I gather information
regarding that patient, including his name, birth
date, sex, age, address, the referring doctor.
• I may see a patient several times, and for each
encounter, I gather information on the date of
consult, the primary problem, the diagnosis, and
the therapeutic plan.
• Each bit of information – e.g. last name, first
name, birth date, consult date, diagnosis, etc.
– is a field.
• Each field is a grouping of related characters.
• A character is the most basic logical data
element. For example, the field “firstname”
that contains “Robert” consists of the
characters “R”, “o”, “b”, “e”, “r”, and “t”.
• My clinic database thus consists of an
integrated collection of logically related data
elements.
• Within my clinic database are included the
patient file – which contains information
regarding my patients - and the consults file
– which contain information regarding my
patient consults.
Data Concepts Definition Example
Character A single alphabetic, numeric, or other
symbol. The most basic logical data element.
“R”
Field A grouping of related characters that
consitutes a data item and represents an
attribute of some entity.
*Entity = object, person, place, or event.
A “consult” is an example of an event.
Field: FirstName
= “Robert”
Record A grouping of all the fields pertaining to an
individual entity
Patient record 001 pertains to
patient “Robert Lee”
File A grouping of related records in tabular form
(row-and-column)
Patient File = all patients
Consult Files = all consults
Database An integrated collection of logically related
data elements
The Clinic Database contains
the patient file, the consult
file, and other files (ex. Doctor
File, Medication File,
Laboratory Results File)
• With a database management system in place, it would
now be possible to interrogate the database to come up
with the information I need.
• For example, let us say I wanted to come up with a list of
patients who are male & are more than 50 years old, &
have a diagnosis of diabetes or hypertension, but who do
not live in Quezon City
• I can enter a query that in effect asks the database to
– SELECT records
– FROM the Patient File
– WHERE sex=“Male” AND age>50 AND Diagnosis = (“Diabetes”
OR “Hypertension”) AND NOT Address = “Quezon City”
• The foregoing query conforms to the basic
form o a Structured Query Language (SQL)
query:
– SELECT … FROM … WHERE
• It also makes use of the three logical
operators in Boolean logic
– AND
– OR
– AND NOT
• The logical operator
“AND” means that the
data element must
appear in each set.
• For example, if the
query asks what
number is in Circle A
AND in Circle B, then
this would mean the
numbers “5” and “6”.
The Venn Diagram above consists of 3
circles, labelled A, B, and C.
In Circle A are the numbers 1, 2, 3, 4, 5 and
6
In Circle B are the numbers 5, 6, 7, 8 and 9
In Circle C are the numbers 4, 5, 9, 10, and
11)
• The logical operator “OR”
means that the data
element must appear in
either set, but not
necessarily both.
• For example, if the query
asks what number is in
Circle A OR in Circle B,
then this would mean the
numbers 1, 2, 3, 4, 5, 6, 7,
8, and 9.
The Venn Diagram above consists of 3
circles, labelled A, B, and C.
In Circle A are the numbers 1, 2, 3, 4, 5 and
6
In Circle B are the numbers 5, 6, 7, 8 and 9
In Circle C are the numbers 4, 5, 9, 10, and
11)
• The logical operator
“AND NOT” means that
the data element must
not appear in the set
specificed.
• For example, if the query
asks what number is in
Circle A AND NOT in
Circle B, then this would
mean the numbers 1, 2, 3
and 4.
The Venn Diagram above consists of 3
circles, labelled A, B, and C.
In Circle A are the numbers 1, 2, 3, 4, 5 and
6
In Circle B are the numbers 5, 6, 7, 8 and 9
In Circle C are the numbers 4, 5, 9, 10, and
11)
• Indicate the numbers that are specified by the
queries (3 queries in each slide).
• When we reconvene in the chat room, be
ready to volunteer to post your answer.
• You may volunteer by typing “RAISE query 1”,
then “RAISE query 2”, etc. until “RAISE query
6”.
• Have fun!
1
2 3
5
6 7
8
9
1011
A B
C
1. A AND B AND C
2. A AND NOT C
3. A AND (B OR C)
4
From the slide set of the Asia Pacific Center for EBM, 2003
1
2 3
5
6 7
8
9
1011
MALE DIABETIC
>50 YRS OLD
4. (MALE AND DIABETIC) OR >50 yrs old
5. (MALE AND DIABETIC) AND NOT >50 yrs old
6. (DIABETIC AND >50 yrs old) AND NOT MALE
4
From the slide set of the Asia Pacific Center for EBM, 2003
Infote boolean logic review

More Related Content

What's hot

06 quantitative data processing
06 quantitative data processing06 quantitative data processing
06 quantitative data processingKanagaraj Easwaran
 
Editing, coding and tabulation of data
Editing, coding and tabulation of dataEditing, coding and tabulation of data
Editing, coding and tabulation of dataSiddharth Gupta
 
Lecture12 abap on line
Lecture12 abap on lineLecture12 abap on line
Lecture12 abap on lineMilind Patil
 
Measures of Central Tendency
Measures of Central TendencyMeasures of Central Tendency
Measures of Central TendencyRyan Pineda
 
Searching and Sorting Techniques in Data Structure
Searching and Sorting Techniques in Data StructureSearching and Sorting Techniques in Data Structure
Searching and Sorting Techniques in Data StructureBalwant Gorad
 
Structure of a manuscript: Day 4 article_writing_note
Structure of a manuscript: Day 4 article_writing_noteStructure of a manuscript: Day 4 article_writing_note
Structure of a manuscript: Day 4 article_writing_noteAshok Pandey
 
Streaming Analytics
Streaming AnalyticsStreaming Analytics
Streaming AnalyticsIJARIIT
 
Key,ID Field and Tables Relationship
Key,ID Field and Tables Relationship Key,ID Field and Tables Relationship
Key,ID Field and Tables Relationship ShouaQureshi
 
Qualitative Data Analysis
Qualitative Data AnalysisQualitative Data Analysis
Qualitative Data AnalysisMelati Akmilia
 

What's hot (12)

Database Engine
Database EngineDatabase Engine
Database Engine
 
06 quantitative data processing
06 quantitative data processing06 quantitative data processing
06 quantitative data processing
 
Editing, coding and tabulation of data
Editing, coding and tabulation of dataEditing, coding and tabulation of data
Editing, coding and tabulation of data
 
Lecture12 abap on line
Lecture12 abap on lineLecture12 abap on line
Lecture12 abap on line
 
Measures of Central Tendency
Measures of Central TendencyMeasures of Central Tendency
Measures of Central Tendency
 
Searching and Sorting Techniques in Data Structure
Searching and Sorting Techniques in Data StructureSearching and Sorting Techniques in Data Structure
Searching and Sorting Techniques in Data Structure
 
Excel for Journalists by Steve Doig
Excel for Journalists by Steve DoigExcel for Journalists by Steve Doig
Excel for Journalists by Steve Doig
 
Structure of a manuscript: Day 4 article_writing_note
Structure of a manuscript: Day 4 article_writing_noteStructure of a manuscript: Day 4 article_writing_note
Structure of a manuscript: Day 4 article_writing_note
 
Streaming Analytics
Streaming AnalyticsStreaming Analytics
Streaming Analytics
 
Sql
SqlSql
Sql
 
Key,ID Field and Tables Relationship
Key,ID Field and Tables Relationship Key,ID Field and Tables Relationship
Key,ID Field and Tables Relationship
 
Qualitative Data Analysis
Qualitative Data AnalysisQualitative Data Analysis
Qualitative Data Analysis
 

Viewers also liked

[JAG神戸] グループ開発趣旨
[JAG神戸] グループ開発趣旨[JAG神戸] グループ開発趣旨
[JAG神戸] グループ開発趣旨takagig
 
Portfolio pilot yl9 coaches and mentors
Portfolio pilot yl9 coaches and mentorsPortfolio pilot yl9 coaches and mentors
Portfolio pilot yl9 coaches and mentorsobettmd
 
Ellis Jones - ConnectingUp 2013 - Challenging stereotypes through online enga...
Ellis Jones - ConnectingUp 2013 - Challenging stereotypes through online enga...Ellis Jones - ConnectingUp 2013 - Challenging stereotypes through online enga...
Ellis Jones - ConnectingUp 2013 - Challenging stereotypes through online enga...Ellis Jones
 
KobeGTUG GAE/Java
KobeGTUG GAE/JavaKobeGTUG GAE/Java
KobeGTUG GAE/Javatakagig
 
Rpjm ds hanum
Rpjm ds hanumRpjm ds hanum
Rpjm ds hanumpryagus
 
[JAG神戸] グループ開発案
[JAG神戸] グループ開発案[JAG神戸] グループ開発案
[JAG神戸] グループ開発案takagig
 
Jag神戸3(共有用)
Jag神戸3(共有用)Jag神戸3(共有用)
Jag神戸3(共有用)takagig
 
Social recruitment-strategy-case-study-ellis-jones-final
Social recruitment-strategy-case-study-ellis-jones-finalSocial recruitment-strategy-case-study-ellis-jones-final
Social recruitment-strategy-case-study-ellis-jones-finalEllis Jones
 
2011 07 17_日本アンドロイドの会_abc summer_2011_jun_yamada
2011 07 17_日本アンドロイドの会_abc summer_2011_jun_yamada2011 07 17_日本アンドロイドの会_abc summer_2011_jun_yamada
2011 07 17_日本アンドロイドの会_abc summer_2011_jun_yamadatakagig
 
Ellis Jones - Tri-State Conference 2013 - Communicating Reform
Ellis Jones - Tri-State Conference 2013 - Communicating ReformEllis Jones - Tri-State Conference 2013 - Communicating Reform
Ellis Jones - Tri-State Conference 2013 - Communicating ReformEllis Jones
 
Ellis Jones - Social Recruitment in the Aged Care Sector
Ellis Jones - Social Recruitment in the Aged Care SectorEllis Jones - Social Recruitment in the Aged Care Sector
Ellis Jones - Social Recruitment in the Aged Care SectorEllis Jones
 
How to make social impact your growth strategy.
How to make social impact your growth strategy.How to make social impact your growth strategy.
How to make social impact your growth strategy.Ellis Jones
 
Suor Angela Vallese
Suor Angela ValleseSuor Angela Vallese
Suor Angela ValleseMaike Loes
 
Celebrazione di inaugurazione 140esimo _ Ispettoria S. Raffaele Arcangelo PAR
Celebrazione di inaugurazione 140esimo _ Ispettoria S. Raffaele Arcangelo PARCelebrazione di inaugurazione 140esimo _ Ispettoria S. Raffaele Arcangelo PAR
Celebrazione di inaugurazione 140esimo _ Ispettoria S. Raffaele Arcangelo PARMaike Loes
 
Bénéfices des blogs dans votre communication sur les médias sociaux
Bénéfices des blogs dans votre communication sur les médias sociauxBénéfices des blogs dans votre communication sur les médias sociaux
Bénéfices des blogs dans votre communication sur les médias sociauxUp 2 Social
 
Comment bien rédiger le Cahier des charges de votre site web
Comment bien rédiger le Cahier des charges de votre site webComment bien rédiger le Cahier des charges de votre site web
Comment bien rédiger le Cahier des charges de votre site webpolenumerique33
 

Viewers also liked (20)

Cancionero1
Cancionero1Cancionero1
Cancionero1
 
Studio Melenka Photo Synthesis 2014
Studio Melenka Photo Synthesis 2014Studio Melenka Photo Synthesis 2014
Studio Melenka Photo Synthesis 2014
 
[JAG神戸] グループ開発趣旨
[JAG神戸] グループ開発趣旨[JAG神戸] グループ開発趣旨
[JAG神戸] グループ開発趣旨
 
Portfolio pilot yl9 coaches and mentors
Portfolio pilot yl9 coaches and mentorsPortfolio pilot yl9 coaches and mentors
Portfolio pilot yl9 coaches and mentors
 
Ellis Jones - ConnectingUp 2013 - Challenging stereotypes through online enga...
Ellis Jones - ConnectingUp 2013 - Challenging stereotypes through online enga...Ellis Jones - ConnectingUp 2013 - Challenging stereotypes through online enga...
Ellis Jones - ConnectingUp 2013 - Challenging stereotypes through online enga...
 
KobeGTUG GAE/Java
KobeGTUG GAE/JavaKobeGTUG GAE/Java
KobeGTUG GAE/Java
 
Rpjm ds hanum
Rpjm ds hanumRpjm ds hanum
Rpjm ds hanum
 
[JAG神戸] グループ開発案
[JAG神戸] グループ開発案[JAG神戸] グループ開発案
[JAG神戸] グループ開発案
 
Jag神戸3(共有用)
Jag神戸3(共有用)Jag神戸3(共有用)
Jag神戸3(共有用)
 
Cancionero1
Cancionero1Cancionero1
Cancionero1
 
Social recruitment-strategy-case-study-ellis-jones-final
Social recruitment-strategy-case-study-ellis-jones-finalSocial recruitment-strategy-case-study-ellis-jones-final
Social recruitment-strategy-case-study-ellis-jones-final
 
2011 07 17_日本アンドロイドの会_abc summer_2011_jun_yamada
2011 07 17_日本アンドロイドの会_abc summer_2011_jun_yamada2011 07 17_日本アンドロイドの会_abc summer_2011_jun_yamada
2011 07 17_日本アンドロイドの会_abc summer_2011_jun_yamada
 
Ellis Jones - Tri-State Conference 2013 - Communicating Reform
Ellis Jones - Tri-State Conference 2013 - Communicating ReformEllis Jones - Tri-State Conference 2013 - Communicating Reform
Ellis Jones - Tri-State Conference 2013 - Communicating Reform
 
Ps group 3
Ps group 3Ps group 3
Ps group 3
 
Ellis Jones - Social Recruitment in the Aged Care Sector
Ellis Jones - Social Recruitment in the Aged Care SectorEllis Jones - Social Recruitment in the Aged Care Sector
Ellis Jones - Social Recruitment in the Aged Care Sector
 
How to make social impact your growth strategy.
How to make social impact your growth strategy.How to make social impact your growth strategy.
How to make social impact your growth strategy.
 
Suor Angela Vallese
Suor Angela ValleseSuor Angela Vallese
Suor Angela Vallese
 
Celebrazione di inaugurazione 140esimo _ Ispettoria S. Raffaele Arcangelo PAR
Celebrazione di inaugurazione 140esimo _ Ispettoria S. Raffaele Arcangelo PARCelebrazione di inaugurazione 140esimo _ Ispettoria S. Raffaele Arcangelo PAR
Celebrazione di inaugurazione 140esimo _ Ispettoria S. Raffaele Arcangelo PAR
 
Bénéfices des blogs dans votre communication sur les médias sociaux
Bénéfices des blogs dans votre communication sur les médias sociauxBénéfices des blogs dans votre communication sur les médias sociaux
Bénéfices des blogs dans votre communication sur les médias sociaux
 
Comment bien rédiger le Cahier des charges de votre site web
Comment bien rédiger le Cahier des charges de votre site webComment bien rédiger le Cahier des charges de votre site web
Comment bien rédiger le Cahier des charges de votre site web
 

Similar to Infote boolean logic review

Business Research Methods. search strategies for online databases
Business Research Methods. search strategies for online databasesBusiness Research Methods. search strategies for online databases
Business Research Methods. search strategies for online databasesAhsan Khan Eco (Superior College)
 
Statistics (All About Data)
Statistics (All About Data)Statistics (All About Data)
Statistics (All About Data)Glenn Rivera
 
statistical analysis of questionnaires
statistical analysis of questionnairesstatistical analysis of questionnaires
statistical analysis of questionnairesMohamed Afifi
 
Database fundamentals
Database fundamentalsDatabase fundamentals
Database fundamentalscrystalpullen
 
Designing Test Collections That Provide Tight Confidence Intervals
Designing Test Collections That Provide Tight Confidence IntervalsDesigning Test Collections That Provide Tight Confidence Intervals
Designing Test Collections That Provide Tight Confidence IntervalsTetsuya Sakai
 
statics engineering mechanics slides.pdf
statics engineering mechanics slides.pdfstatics engineering mechanics slides.pdf
statics engineering mechanics slides.pdfAurangzebRashidMasud2
 
Thesis SamplesRagged Dick” shows that in order to be success.docx
Thesis SamplesRagged Dick” shows that in order to be success.docxThesis SamplesRagged Dick” shows that in order to be success.docx
Thesis SamplesRagged Dick” shows that in order to be success.docxssusera34210
 
Spss basic Dr Marwa Zalat
Spss basic Dr Marwa ZalatSpss basic Dr Marwa Zalat
Spss basic Dr Marwa ZalatMarwa Zalat
 
Uses of Excel
Uses of ExcelUses of Excel
Uses of Exceljarleewil
 

Similar to Infote boolean logic review (20)

Data dictionary
Data dictionaryData dictionary
Data dictionary
 
Business Research Methods. search strategies for online databases
Business Research Methods. search strategies for online databasesBusiness Research Methods. search strategies for online databases
Business Research Methods. search strategies for online databases
 
Statistics (All About Data)
Statistics (All About Data)Statistics (All About Data)
Statistics (All About Data)
 
statistical analysis of questionnaires
statistical analysis of questionnairesstatistical analysis of questionnaires
statistical analysis of questionnaires
 
Database fundamentals
Database fundamentalsDatabase fundamentals
Database fundamentals
 
Basic concepts of statistics
Basic concepts of statistics Basic concepts of statistics
Basic concepts of statistics
 
Basic concepts of statistics
Basic concepts of statistics Basic concepts of statistics
Basic concepts of statistics
 
Basic concepts of statistics
Basic concepts of statistics Basic concepts of statistics
Basic concepts of statistics
 
week2 ba lects.pptx
week2 ba lects.pptxweek2 ba lects.pptx
week2 ba lects.pptx
 
Rs 702 social statistics
Rs 702 social statisticsRs 702 social statistics
Rs 702 social statistics
 
Designing Test Collections That Provide Tight Confidence Intervals
Designing Test Collections That Provide Tight Confidence IntervalsDesigning Test Collections That Provide Tight Confidence Intervals
Designing Test Collections That Provide Tight Confidence Intervals
 
Business Statistics
Business StatisticsBusiness Statistics
Business Statistics
 
statics engineering mechanics slides.pdf
statics engineering mechanics slides.pdfstatics engineering mechanics slides.pdf
statics engineering mechanics slides.pdf
 
Business Statistics
Business StatisticsBusiness Statistics
Business Statistics
 
Spss basics
Spss basicsSpss basics
Spss basics
 
Thesis SamplesRagged Dick” shows that in order to be success.docx
Thesis SamplesRagged Dick” shows that in order to be success.docxThesis SamplesRagged Dick” shows that in order to be success.docx
Thesis SamplesRagged Dick” shows that in order to be success.docx
 
Nursing under graduate 2014
Nursing under graduate 2014Nursing under graduate 2014
Nursing under graduate 2014
 
Data analysis
 Data analysis Data analysis
Data analysis
 
Spss basic Dr Marwa Zalat
Spss basic Dr Marwa ZalatSpss basic Dr Marwa Zalat
Spss basic Dr Marwa Zalat
 
Uses of Excel
Uses of ExcelUses of Excel
Uses of Excel
 

Recently uploaded

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 

Recently uploaded (20)

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 

Infote boolean logic review

  • 2. • “Although many of y0u will not choose a career in the design of databases, all of you will spend a large portion of your time – whatever job you choose – accessing data in a myriad of databases.” p. 170 • Accessing data from a database requires interrogating the database. • In this short module, we shall review the concepts behind Boolean logic.
  • 3. • But before we go on to a review of Boolean logic, let us review some fundamental data concepts. • As an example, let us use a clinic database. • Whenever I see a patient, I gather information regarding that patient, including his name, birth date, sex, age, address, the referring doctor. • I may see a patient several times, and for each encounter, I gather information on the date of consult, the primary problem, the diagnosis, and the therapeutic plan.
  • 4. • Each bit of information – e.g. last name, first name, birth date, consult date, diagnosis, etc. – is a field. • Each field is a grouping of related characters. • A character is the most basic logical data element. For example, the field “firstname” that contains “Robert” consists of the characters “R”, “o”, “b”, “e”, “r”, and “t”.
  • 5. • My clinic database thus consists of an integrated collection of logically related data elements. • Within my clinic database are included the patient file – which contains information regarding my patients - and the consults file – which contain information regarding my patient consults.
  • 6. Data Concepts Definition Example Character A single alphabetic, numeric, or other symbol. The most basic logical data element. “R” Field A grouping of related characters that consitutes a data item and represents an attribute of some entity. *Entity = object, person, place, or event. A “consult” is an example of an event. Field: FirstName = “Robert” Record A grouping of all the fields pertaining to an individual entity Patient record 001 pertains to patient “Robert Lee” File A grouping of related records in tabular form (row-and-column) Patient File = all patients Consult Files = all consults Database An integrated collection of logically related data elements The Clinic Database contains the patient file, the consult file, and other files (ex. Doctor File, Medication File, Laboratory Results File)
  • 7. • With a database management system in place, it would now be possible to interrogate the database to come up with the information I need. • For example, let us say I wanted to come up with a list of patients who are male & are more than 50 years old, & have a diagnosis of diabetes or hypertension, but who do not live in Quezon City • I can enter a query that in effect asks the database to – SELECT records – FROM the Patient File – WHERE sex=“Male” AND age>50 AND Diagnosis = (“Diabetes” OR “Hypertension”) AND NOT Address = “Quezon City”
  • 8. • The foregoing query conforms to the basic form o a Structured Query Language (SQL) query: – SELECT … FROM … WHERE • It also makes use of the three logical operators in Boolean logic – AND – OR – AND NOT
  • 9. • The logical operator “AND” means that the data element must appear in each set. • For example, if the query asks what number is in Circle A AND in Circle B, then this would mean the numbers “5” and “6”. The Venn Diagram above consists of 3 circles, labelled A, B, and C. In Circle A are the numbers 1, 2, 3, 4, 5 and 6 In Circle B are the numbers 5, 6, 7, 8 and 9 In Circle C are the numbers 4, 5, 9, 10, and 11)
  • 10. • The logical operator “OR” means that the data element must appear in either set, but not necessarily both. • For example, if the query asks what number is in Circle A OR in Circle B, then this would mean the numbers 1, 2, 3, 4, 5, 6, 7, 8, and 9. The Venn Diagram above consists of 3 circles, labelled A, B, and C. In Circle A are the numbers 1, 2, 3, 4, 5 and 6 In Circle B are the numbers 5, 6, 7, 8 and 9 In Circle C are the numbers 4, 5, 9, 10, and 11)
  • 11. • The logical operator “AND NOT” means that the data element must not appear in the set specificed. • For example, if the query asks what number is in Circle A AND NOT in Circle B, then this would mean the numbers 1, 2, 3 and 4. The Venn Diagram above consists of 3 circles, labelled A, B, and C. In Circle A are the numbers 1, 2, 3, 4, 5 and 6 In Circle B are the numbers 5, 6, 7, 8 and 9 In Circle C are the numbers 4, 5, 9, 10, and 11)
  • 12. • Indicate the numbers that are specified by the queries (3 queries in each slide). • When we reconvene in the chat room, be ready to volunteer to post your answer. • You may volunteer by typing “RAISE query 1”, then “RAISE query 2”, etc. until “RAISE query 6”. • Have fun!
  • 13. 1 2 3 5 6 7 8 9 1011 A B C 1. A AND B AND C 2. A AND NOT C 3. A AND (B OR C) 4 From the slide set of the Asia Pacific Center for EBM, 2003
  • 14. 1 2 3 5 6 7 8 9 1011 MALE DIABETIC >50 YRS OLD 4. (MALE AND DIABETIC) OR >50 yrs old 5. (MALE AND DIABETIC) AND NOT >50 yrs old 6. (DIABETIC AND >50 yrs old) AND NOT MALE 4 From the slide set of the Asia Pacific Center for EBM, 2003