PayPal Interview Question
100 Interview Reviews |
Back to all PayPal Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Engineer at PayPal:
We have the following schema of a table: create table Test (id number, name varchar2(32), desc varchar2(400)); create index index_test on Test (name); Which of the following statements will invoke an index scan by oracle execution plan a) select * from test where name='name'; b) select * from test where name like 'name%'; c) select * from test where name like '%name'; d) select * from test where name like '%name%';"
| Tags: | programming See more , See less 8 |
Helpful Question?
Yes |
No
Inappropriate?
0 of 0 people found this helpful
by Anonymous:
Source: docs.oracle - wild-card searches should not be in a leading position otherwise the condition name like '%name' does not result in a range scan.