SlideShare une entreprise Scribd logo
1  sur  2
TOPIC : QUERY (COMPLEX )<br />1. A database has been set up by a car dealer to maintain information on cars currently available for sale. A section of the database is shown below. <br />a) If the following query was input <br />(Top Speed (kph) > 250) OR (Doors = 2)<br />using Ref No only, which items would be output? <br />b) Write down a query which outputs cars which cost more than $60 000 and have a 0-100 kph time (sec) of less than 7 <br />2. A shop keeps its stock file on a computer system. Part of the file is shown in the diagram below: <br />The following codes have been used. <br />B = Black G = Green R = Red S = Silver <br />a) Which STOCK NO data will be listed if the following search condition is input? <br />(COLOURNOT “B”) AND (WEIGHT (KG)< 2.0)<br />b) Write down a search condition that will search for all the items with less than 16 in stock <br />and the price is more than $100 <br />
 Exercise : Complex Query

Contenu connexe

En vedette

En vedette (8)

Logo abstract
Logo abstractLogo abstract
Logo abstract
 
Practical 4
Practical 4Practical 4
Practical 4
 
Year 2007
Year 2007Year 2007
Year 2007
 
Exercise 2
Exercise 2Exercise 2
Exercise 2
 
Exercise 1
Exercise 1Exercise 1
Exercise 1
 
Revision week 2
Revision week 2Revision week 2
Revision week 2
 
Practical 5
Practical 5Practical 5
Practical 5
 
Year 2008
Year 2008Year 2008
Year 2008
 

Plus de fizahPhd

Revision week 2
Revision week 2Revision week 2
Revision week 2fizahPhd
 
Revision week
Revision weekRevision week
Revision weekfizahPhd
 
Sketchup tutorial 1
Sketchup tutorial 1Sketchup tutorial 1
Sketchup tutorial 1fizahPhd
 
Practical 3
Practical 3Practical 3
Practical 3fizahPhd
 
Forms and design
Forms and designForms and design
Forms and designfizahPhd
 
Forms and report
Forms and reportForms and report
Forms and reportfizahPhd
 
Validation rule, text and input masks
Validation rule, text and input masksValidation rule, text and input masks
Validation rule, text and input masksfizahPhd
 
Question 2009
Question  2009Question  2009
Question 2009fizahPhd
 
Validation rule, validation text and input masks
Validation rule, validation text and input masksValidation rule, validation text and input masks
Validation rule, validation text and input masksfizahPhd
 
Question of Geometry
Question of GeometryQuestion of Geometry
Question of GeometryfizahPhd
 
Concept map-3
Concept map-3Concept map-3
Concept map-3fizahPhd
 
Concept map of microorganism
Concept map of microorganismConcept map of microorganism
Concept map of microorganismfizahPhd
 
Electricity circuit
Electricity circuitElectricity circuit
Electricity circuitfizahPhd
 
Lesson plan storage devices(latest)
Lesson plan storage devices(latest)Lesson plan storage devices(latest)
Lesson plan storage devices(latest)fizahPhd
 
Computer studies year 7 exercise (medium)
Computer studies year 7 exercise (medium)Computer studies year 7 exercise (medium)
Computer studies year 7 exercise (medium)fizahPhd
 

Plus de fizahPhd (20)

Revision week 2
Revision week 2Revision week 2
Revision week 2
 
Revision week
Revision weekRevision week
Revision week
 
Sketchup tutorial 1
Sketchup tutorial 1Sketchup tutorial 1
Sketchup tutorial 1
 
Practical 3
Practical 3Practical 3
Practical 3
 
Query
QueryQuery
Query
 
Query
QueryQuery
Query
 
Forms and design
Forms and designForms and design
Forms and design
 
Forms and report
Forms and reportForms and report
Forms and report
 
Validation rule, text and input masks
Validation rule, text and input masksValidation rule, text and input masks
Validation rule, text and input masks
 
Year 2008
Year 2008Year 2008
Year 2008
 
Question 2009
Question  2009Question  2009
Question 2009
 
Validation rule, validation text and input masks
Validation rule, validation text and input masksValidation rule, validation text and input masks
Validation rule, validation text and input masks
 
Question of Geometry
Question of GeometryQuestion of Geometry
Question of Geometry
 
ICT Maths
ICT MathsICT Maths
ICT Maths
 
Rotation
RotationRotation
Rotation
 
Concept map-3
Concept map-3Concept map-3
Concept map-3
 
Concept map of microorganism
Concept map of microorganismConcept map of microorganism
Concept map of microorganism
 
Electricity circuit
Electricity circuitElectricity circuit
Electricity circuit
 
Lesson plan storage devices(latest)
Lesson plan storage devices(latest)Lesson plan storage devices(latest)
Lesson plan storage devices(latest)
 
Computer studies year 7 exercise (medium)
Computer studies year 7 exercise (medium)Computer studies year 7 exercise (medium)
Computer studies year 7 exercise (medium)
 

Dernier

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
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
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
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
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
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
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
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
 
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
 
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
 

Dernier (20)

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
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
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
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
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
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
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
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
 
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 ...
 
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
 

Exercise : Complex Query

  • 1. TOPIC : QUERY (COMPLEX )<br />1. A database has been set up by a car dealer to maintain information on cars currently available for sale. A section of the database is shown below. <br />a) If the following query was input <br />(Top Speed (kph) > 250) OR (Doors = 2)<br />using Ref No only, which items would be output? <br />b) Write down a query which outputs cars which cost more than $60 000 and have a 0-100 kph time (sec) of less than 7 <br />2. A shop keeps its stock file on a computer system. Part of the file is shown in the diagram below: <br />The following codes have been used. <br />B = Black G = Green R = Red S = Silver <br />a) Which STOCK NO data will be listed if the following search condition is input? <br />(COLOURNOT “B”) AND (WEIGHT (KG)< 2.0)<br />b) Write down a search condition that will search for all the items with less than 16 in stock <br />and the price is more than $100 <br />