Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Alternative for SELECT DISTINCT to query 2 million records

This is a discussion on Alternative for SELECT DISTINCT to query 2 million records within the SQL forums, part of the Databases category; My table has 2 million records. I want to select distinct values from the table. If I use select distinct... it may take more time. What would be another option ...

Go Back   Geeks Talk > Databases > SQL
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 05-17-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 192 Times in 154 Posts
Geek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura about
Alternative for SELECT DISTINCT to query 2 million records

My table has 2 million records. I want to select distinct values from the table. If I use select distinct... it may take more time. What would be another option to select distinct values in less time.

Question asked by visitor Ankush
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-06-2007
Junior Member
 
Join Date: Jun 2007
Location: Bangalore
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
soorajsk_84 is on a distinguished road
Re: Alternative for SELECT DISTINCT to query 2 million records

Try creating an INDEX for the table
Reply With Quote
Reply

  Geeks Talk > Databases > SQL

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
difference bet unique and distinct smitai Oracle Certification 4 3 Weeks Ago 08:35 AM
SELECT query processing althafkarkal Database General 5 08-09-2007 05:59 AM
Insert of multiple records in single query ramvidhu SQL Server 5 07-03-2007 08:53 AM
Updating 10 million rows madivals Oracle 3 05-11-2007 10:58 AM
Alternative to EJB JobHelper Java 1 11-29-2006 01:49 AM


All times are GMT -4. The time now is 05:46 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved