GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Database  >  MYSQL
Go To First  |  Previous Question  |  
 MYSQL  |  Question 49 of 49    Print  
Using Table Index
Is it required to use Index when the MySQL table has only 100 rows? Justify your answer


  
Total Answers and Comments: 2 Last Update: May 29, 2009     Asked by: nagaphp_indore 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: vishnu2004k
 

If table has primary key than no need of creation of index for that table



Above answer was rated as good by the following members:
prashant_gupta1, sudir105
May 13, 2009 02:53:59   #1  
vishnu2004k Member Since: May 2009   Contribution: 1    

RE: Using Table Index

If table has primary key than no need of creation of index for that table


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
May 29, 2009 10:21:04   #2  
krr_r25 Member Since: September 2008   Contribution: 3    

RE: Using Table Index
For 100 rows may be no need to use the index. If a table having huge number of records with table fields also having more that time indexing is needed to execute the query fast and reliable.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

Latest Answer : 1. Primary key does not allow duplocate.2. We can use below query to find duplicate records select count(*),classifiedID  as tot  from jicka_photos  group by classifiedID  HAVING count(classifiedID) >1 limit 5;Thanks ...
Read Answers (17) | Asked by : deepti kr misra

How to display nth highest record in a table for example? How to display 4th highest (salary) record from customer table?
Read Answers (15) | Asked by : Naveen k Sharma

Latest Answer : select count(*) from table_name ...

Latest Answer : ya that's rightdesc table is easy to useThink this way to desc a table,DB has to save the info some where right? its the information _schema DB where all the info related to Database or table is storedinternally desc will do the same as the below ...

Can use rownum.If possible explain.regards,Joe 
Latest Answer : delete from myTable where (field1, field2) not in ( select distinct(field1), field2 from myTable); ...
Read Answers (3) | Asked by : Joe

select salary from tablename order by desc limt 4; 
Latest Answer : select distinct a.sal from emp a where n=(select count(distinct b.sal) from emp b where a.sal
Read Answers (4) | Asked by : Vishwapati Mishra

Is it required to use Index when the MySQL table has only 100 rows? Justify your answer 
Latest Answer : For 100 rows may be no need to use the index. If a table having huge number of records with table fields also having more, that time indexing is needed to execute the query fast and reliable. ...


 Sponsored Links

 
Related Articles

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

Performing XSLT Transformations inside the Database

Performing XSLT Transformations inside the Database Now that you have the employees XSL stylesheet stored in the database and the xmlusr schema is permitted to access the hr employees table you can create a script that will instruct the database to build an HTML page based on the data stored in hr e
 

Moving All the XML Processing into the Database

Moving All the XML Processing into the Database In the preceding example the database server performs only a part of the XML processing while the rest is still performed by the PHP engine Specifically the database server generates an employees XML document based on the records from the hr employees
 

Performing XML Processing inside the Database

Performing XML Processing inside the Database When building XML enabled applications on top of Oracle there are many advantages to performing the XML processing inside the database when compared to performing it on the client The key advantages to perform XML processing inside the database are as fo
 

ODP.NET - Populating a Dataset with a Single Data Table

ODP NET Populating a Dataset with a Single Data Table A dataset is simply a group of data tables These data tables can be identified with their own unique names within a dataset You can also add relations between data tables available in a dataset mosgoogle The following code gives you the details o
 

jQuery Table Row Finished Code

jQuery Table Row Finished Code The Finished Code Our second example page has demonstrated table row striping highlighting tooltips collapsing expanding and filtering Taken together the JavaScript code for this page is mosgoogle geshibot lang php" document ready function var highlighted
 

jQuery Expanding and Collapsing Table Rows

jQuery Expanding and Collapsing Table Rows The expanding and collapsing behavior added earlier also conflicts with our filters If a section is collapsed and a new filter is chosen then the matching items are displayed even if in the collapsed section Conversely if the table is filtered and a section
 

jQuery Table Row Filtering

jQuery Table Row Filtering Earlier we examined sorting and paging as techniques for helping users focus on relevant portions of a table s data We saw that both could be implemented either with server side technology or with JavaScript Filtering completes this arsenal of data arrangement strategies B
 

jQuery Collapsing and Expanding Table Rows

jQuery Collapsing and Expanding Table Rows When large sets of data are grouped in tables as each year s set of articles are in our News page collapsing or hiding a section s contents can be a convenient way to get a broad view of all of the table s data without having to scroll so much mosgoogle To
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape