What is the first action to perform a query?
Suppose I have four tables and five joins and my query is
getting slow day by day.

Answer Posted / sandeep t

the best way is to create another table by writing a
procedure . In the procedure create a temp table and then
populate the table which created with all the
conditions.You can use the newly created table to satisfy
all the conditions by this you could avoid creating load on
the database

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is nosql db?

554


How do I create a sql database?

533


What are predefined functions in sql?

544


When should I use nosql database?

560


What is sql scripting?

571






What are the possible values that can be stored in a boolean data field?

526


what tools available for managing mysql server? : Sql dba

541


What are the types of variable use in pl sql?

573


What are the conditions an underlying table must satisfy before a cursor can be used by a positioned update or delete statement? : Transact sql

549


What is nosql vs sql?

580


Is natural join same as inner join?

512


Define union, minus, union all, intersect ?

560


what are dynamic queries in t-sql? : Transact sql

567


Why procedure is used in sql?

539


What is query execution plan in sql?

575