Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2 . What index would you create to speed this query on a table with no indexes: select * from mytable where fieldA = 'val

2. What index would you create to speed this query on a table with no indexes: select * from mytable where fieldA = 'val1' order by fieldB limit 10?
3. What index would you create to speed this query on a table with no indexes: select fieldA, min(fieldC) from mytable where fieldB = 'val1' group by fieldA?
4. Given this schema:
mytable1( fieldIndex1, fieldA )
mytable2( fieldIndex2, fieldB (FK to mytable1), fieldC, fieldD )
What indexes would you create to speed this query on a table with no indexes: select mytable1.fieldA, mytable2.fieldD from mytable1 join mytable2 on mytable1.fieldIndex1= mytable2.fieldB where mytable2.fieldC ='A'?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions

Question

3. Is it a topic that your audience will find worthwhile?

Answered: 1 week ago

Question

2. Does the topic meet the criteria specified in the assignment?

Answered: 1 week ago