Oracle
1Z0-882 · Question #59
Examine this table that contains over two million rows of data: CREATE TABLE news_feed' ( .id'bigint (20) NOT NULL AUTO _INCREMENT, .news _sources_id'varchar (11) NOT NULL, .dataline' datetime NOT…
The correct answer is D. Use a date range comparison. See the full explanation below for the reasoning.
Question
Examine this table that contains over two million rows of data:
CREATE TABLE news_feed' ( .id'bigint (20) NOT NULL AUTO _INCREMENT, .news _sources_id'varchar (11) NOT NULL, .dataline' datetime NOT NULL, .headline' varchar (256) NOT NULL, .story' text NOT NULL,.tag varchar (32768) DEFAULT NULL, PRIMARY KEY (id') KEY dateline' ( dateline') ) Examine this query that returns 332 rows of date:
SELECT * FROM news_feed WHERE DATE(dateline)= `2013-01-01' Which change would show the greatest improvement in the response time of the query?
Options
- AUse the LIKE operator:
- BUSE the DATEDIFF function:
- CUse numeric equivalents for comparing the two dates:
- DUse a date range comparison:
How the community answered
(53 responses)- A6% (3)
- B8% (4)
- C13% (7)
- D74% (39)
Community Discussion
No community discussion yet for this question.