Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q1. Which one of the following statements is false forSQL? (a) SQL supports logical data model concepts (e.g. tables, primarykey, foreign key) (b) All versions

Q1. Which one of the following statements is false forSQL?
(a) SQL supports logical data model concepts (e.g. tables, primarykey, foreign key)
(b) All versions of SQL are suitable for recursive queries (e.g.,shortest path)
(c) SQL has many brands (e.g. Oracle, IBM DB2, Sybase, MS SQLServer)
(d) SQL is a popular query language for relational databasemanagement system

Q2. Which one the the following is NOT a component of SQL?
(a) Data definition language
(b) Data manipulation language
(c) Data control language
(d) Data visualization language

Q3. Which of the following SQL statements adds a row to an existingtable?
(a) CREATE TABLE
(b) INSERT INTO
(c) UPDATE
(d) ALTER TABLE

Q4. Which geometry subclasses is not included in OGIS simplefeature types?
(a) Point
(b) LineString
(c) Polygon
(d) Raster

Q5. Which common operation is not included in OGIS simple featuretypes?
(a) shortest path
(b) distance
(c) overlap
(d) convex hull

Q6. Which OGIS operation is not topological ?
(a) Envelope
(b) Equal
(c) Within
(d) Contains

Q7. Which of the following queries returns different result thanothers?
(a) SELECT C.Name FROM City C, River R
WHERE Distance (C.Shape, R.Shape) <= 300
(b) SELECT C.Name FROM City C, River R
WHERE Within (C.Shape, Buffer (R.Shape, 300)) = 1
(c) SELECT C.Name FROM City C, River R
WHERE Contains (C.Shape, Buffer (R.Shape, 300)) = 1
(d) SELECT C.Name FROM City C, River R
WHERE Cross (R.Shape, Buffer (C.Shape, 300)) = 1

Q8. Which of the following queries returns different result thanothers?
(a) SELECT C1.Name, C2.Name FROM Country C1, Country C2
WHERE Intersects(C1.Shape, C2.Shape) = 1
(b) SELECT C1.Name, C2.Name FROM Country C1, Country C2
WHERE Overlaps(C1.Shape, C2.Shape) = 1
(c) SELECT C1.Name, C2.Name FROM Country C1, Country C2
WHERE Disjoint(C1.Shape, C2.Shape) <> 1
(d) SELECT C1.Name, C2.Name FROM Country C1, Country C2
WHERE ( Touches(C1.Shape,C2.Shape)= 1) OR(Overlaps(C1.Shape,C2.Shape)=1)

Q9. Which OGIS topological operation should be used in the WHEREclause of following SQL query to list countries with only oneneighbor country?
A country is a neighbor of another country if their land massesshare a boundary.
Island nation, e.g. Iceland, have no neighbors.

SELECT Co.Name

FROM Country Co, Country Co1

WHERE _______ (Co.Shape,Co1.Shape)

GROUP BY Co.Name

HAVING Count(*)=1


Q10. Please write the spatial SQL query to list the GDP of the country with the maximum number of neighbors. (Hint: use nested query)

The COUNTRY table has 6 columns: Name, Continent (Cont), population (Pop), Gross domestic product(GDP), Life-expectancy (Life-exp) and Shape, Shape is boundary

Step by Step Solution

3.43 Rating (156 Votes )

There are 3 Steps involved in it

Step: 1

The detailed answer for the above question is provided below 1 b All versions of SQL are suitable for recursive queries eg shortest path is false Not all versions of SQL support recursive queries Recu... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Accounting concepts and applications

Authors: Albrecht Stice, Stice Swain

11th Edition

978-0538750196, 538745487, 538750197, 978-0538745482

More Books

Students also viewed these Programming questions

Question

What are conversion costs? What are prime costs?

Answered: 1 week ago

Question

What are the steps for designing a control chart?

Answered: 1 week ago