what are the optimization techniques for
Query optimization
performance issues and
faster execution of queries

Answers were Sorted based on User's Feedback



what are the optimization techniques for Query optimization performance issues and faster executi..

Answer / jawed

User the following
1.litmit
2.keys
3. indexing

Is This Answer Correct ?    23 Yes 6 No

what are the optimization techniques for Query optimization performance issues and faster executi..

Answer / harjeet singh

1.Better data types,2.Better index algorithm,3.better query
written techniques which take the advantage of index

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More MySQL Interview Questions

What are the method you will follow while sql installing

0 Answers   Mind Tree,


What is delimiter in mysql trigger?

0 Answers  


What is the difference between mysql_connect and mysqli_connect?

0 Answers  


What are the similarities between a function and a procedure?

0 Answers  


Give string types available for column?

0 Answers  






How to load data from a text file into a table?

7 Answers   Sasaa,


What is mysqladmin flush hosts?

0 Answers  


mysql> select * from store; +------+-------+-------+ | id | month | sales | +------+-------+-------+ | 1 | 1 | 100 | | 1 | 2 | 100 | | 1 | 3 | 200 | | 1 | 4 | 300 | | 1 | 5 | NULL | | 1 | 6 | 200 | | 1 | 7 | 800 | | 1 | 8 | 100 | | 1 | 9 | 240 | | 1 | 10 | 140 | | 1 | 11 | 400 | | 1 | 12 | 300 | | 2 | 1 | 300 | | 2 | 2 | 300 | | 2 | 3 | 300 | | 2 | 4 | 200 | | 2 | 5 | 200 | | 2 | 6 | 200 | | 2 | 7 | 100 | | 2 | 8 | 100 | | 2 | 9 | 300 | | 2 | 10 | 100 | | 2 | 11 | 150 | | 2 | 12 | 150 | +------+-------+-------+ this is my table. i need to display output like this. +------+----------+----------+----------+----------+ | id | quarter1 | quarter2 | quarter3 | quarter4 | +------+----------+----------+----------+----------+ | 1 | 400 | 500 | 1140 | 840 | | 2 | 900 | 600 | 500 | 400 | +------+----------+----------+----------+----------+ what single query i have to write for this. i tried this query and it displays like the below mysql> select id,sum(sales) as quarter1,(select sum(sales) from store where mont h>3 and month<7 ) as quarter2,(select sum(sales) from store where month>6 and mo nth<10)as quarter3 from store where month>0 and month<4 group by id; +------+----------+----------+----------+ | id | quarter1 | quarter2 | quarter3 | +------+----------+----------+----------+ | 1 | 400 | 1100 | 1640 | | 2 | 900 | 1100 | 1640 | +------+----------+----------+----------+ 2 rows in set (0.00 sec) tel me how to rectify it.

2 Answers  


How do I edit a table in mysql?

0 Answers  


How to change the database engine in mysql?

0 Answers  


Is mysql is a programming language?

0 Answers  


Tell us something about heap tables?

0 Answers  


Categories