Home  |  Forums  |  914 Info  |  Blogs
 
914World.com - The fastest growing online 914 community!
 
Porsche, and the Porsche crest are registered trademarks of Dr. Ing. h.c. F. Porsche AG. This site is not affiliated with Porsche in any way.
Its only purpose is to provide an online forum for car enthusiasts. All other trademarks are property of their respective owners.
 

Welcome Guest ( Log In | Register )

> OT: SQL Question ..., what's the easiest way to ...
SirAndy
post Mar 17 2005, 07:11 PM
Post #1


Resident German
*************************

Group: Admin
Posts: 42,245
Joined: 21-January 03
From: Oakland, Kalifornia
Member No.: 179
Region Association: Northern California



SQL Question:

what's the easiest way to find duplicates in a table?

let's say i have a table (tbl_Users) with 20000 rows and the table has a column for the users email addy (sEmail) and i want to list all the accounts that have duplicate email addys.

i could run a script that takes each row and runs a count(*) on that addy, but that'll take forever.
anything simpler than that ???

(IMG:http://www.914world.com/bbs2/html/emoticons/idea.gif) Andy
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
JB 914
post Mar 17 2005, 07:38 PM
Post #2


Daddy! Finish my car NOW!!!
***

Group: Members
Posts: 1,593
Joined: 26-September 04
From: Garden Grove, CA
Member No.: 2,831



QUOTE (SirAndy @ Mar 17 2005, 05:34 PM)
QUOTE (Paul Heery @ Mar 17 2005, 05:17 PM)
Then sort by the column you want.

ok, how the heck do i sort a column in excel by name ????

(IMG:http://www.914world.com/bbs2/html/emoticons/confused24.gif) Andy

highlight the rows ( without the column header row at the top) then use data\filter\advanced filter to sort the data. they have a check box for unique records.

hope this helps
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic
SirAndy   OT: SQL Question ...   Mar 17 2005, 07:11 PM
Sparky   SELECT FROM tablename GROU...   Mar 17 2005, 07:15 PM
Part Pricer   I've done this with MySQL tables. I've jus...   Mar 17 2005, 07:17 PM
john rogers   Do it like this: sqlplus> delete from userID.my_e...   Mar 17 2005, 07:20 PM
SirAndy   <...   Mar 17 2005, 07:37 PM
Part Pricer   Select the entire worksheet. Then go to Data then ...   Mar 17 2005, 07:37 PM
JB 914   <...   Mar 17 2005, 07:38 PM
Part Pricer  

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

- Lo-Fi Version Time is now: 5th July 2025 - 10:04 AM