0% found this document useful (0 votes)
4 views

LAB-11 Indexes Database Query Tuning (1)

The document outlines the objectives of LAB-11, which include working with database indexes and exploring query optimization methods. It provides specific SQL queries to observe outcomes and suggests references for further practice on indexing and query tuning. The queries include selecting data based on an ID, creating a table with an index, and using the EXPLAIN command for analyzing a query.

Uploaded by

shubhamalways077
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

LAB-11 Indexes Database Query Tuning (1)

The document outlines the objectives of LAB-11, which include working with database indexes and exploring query optimization methods. It provides specific SQL queries to observe outcomes and suggests references for further practice on indexing and query tuning. The queries include selecting data based on an ID, creating a table with an index, and using the EXPLAIN command for analyzing a query.

Uploaded by

shubhamalways077
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

LAB-11

Objective:

1. Working with Database Indexes.


2. Work upon the various query optimization methods.

Observe the outcome of the following queries –

SELECT * FROM t WHERE id = 10

CREATE TABLE tbl (col1 INT, col2 INT, col3 INT, INDEX (col1, col2));

EXPLAIN SELECT * FROM users WHERE name = 'Cheyenne Smith';

Hint: use the following references to practice.

https://dataschool.com/sql-optimization/how-indexing-works/

https://www.sqlshack.com/sql-server-query-tuning-tips-for-beginners-with-practical-examples/

https://www.cockroachlabs.com/docs/stable/sql-tuning-with-explain.html

You might also like