- A Select custTable index cityIdx;
- B Select custTable order by city;
- C Select custTable order by city ASC;
- D All
- Share this MCQ
Answer:
D
Share this MCQ
Justification:
- This statement will select all records from the CustTable organized by the index titled cityIdx, which is configured on the custTable.
- This statement selects all records from the custTable and specifies the “city” field in the table to order by. The default direction order by is ascending order.
- This statement selects all records in the CustTable and specifies to order by the city field in ascending order. This is the same as the default order. The order by clause will default to ascending order if none is specified as well.
- This statement will not work because the index name is not city, but cityIdx.
Related Lesson: Data Retrieval
Click me to Read more Question & Answer of Module 14: Database ManipulationShare this MCQ