SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Destaque

Destaque (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
 

Mais 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
 

Mais 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)
 

Último

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
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
 
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
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 

Último (20)

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (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 ...
 
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
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 

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 />