exam questions

Exam 1z0-908 All Questions

View all questions & answers for the 1z0-908 exam

Exam 1z0-908 topic 1 question 1 discussion

Actual exam question from Oracle's 1z0-908
Question #: 1
Topic #: 1
[All 1z0-908 Questions]

Examine this statement, which executes successfully:

You want to improve the performance of this query:

Which change enables the query to succeed while accessing fewer rows?

  • A. ALTER TABLE world.city ADD SPATIAL INDEX (Name);
  • B. ALTER TABLE world.city ADD SPATIAL INDEX (Population);
  • C. ALTER TABLE world.city ADD INDEX (Population);
  • D. ALTER TABLE world.city ADD INDEX (Name);
  • E. ALTER TABLE world.city ADD FULLTEXT INDEX (Name);
  • F. ALTER TABLE world.city ADD FULLTEXT INDEX (Population);
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
LrnsTgh
7 months ago
Selected Answer: C
agree with C. running command line option B generated error 1687: A SPATIAL index may only contain a geometrical type column.
upvoted 1 times
...
nkanike1
10 months, 1 week ago
Answer should be C
upvoted 1 times
...
Mohindar
1 year, 1 month ago
Selected Answer: C
Answer must be C, int is not spatial column
upvoted 1 times
...
HSong
1 year, 2 months ago
SPATIAL INDEX creates an R-tree index. For storage engines that support nonspatial indexing of spatial columns, the engine creates a B-tree index. A B-tree index on spatial values is useful for exact-value lookups, but not for range scans. The optimizer can use spatial indexes defined on columns that are SRID-restricted. So answer is B.
upvoted 1 times
...
fthusa
1 year, 3 months ago
Answer C
upvoted 1 times
...
RicoAndriol
1 year, 4 months ago
Selected Answer: C
population is INT
upvoted 1 times
...
Nelate
1 year, 5 months ago
Correct answer should be C . You can't add a spartial index on non-geo data types
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago