dbTalk Databases Forums  

Query to show data but ignore dupes

comp.databases.mysql comp.databases.mysql


Discuss Query to show data but ignore dupes in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andrew
 
Posts: n/a

Default Query to show data but ignore dupes - 08-09-2006 , 10:05 AM






i have a database with 500,000 records.

one column has the same data over and over. i am trying to get a list of
the differnt names in that one column but cant get it to ignore the
duplicates

can anyone help me with this query as i cant work out how to use WHERE store
= different

SELECT * FROM datasearch WHERE store LIKE '%'


thank you in advance to anyone that can help me.
andy




Reply With Quote
  #2  
Old   
strawberry
 
Posts: n/a

Default Re: Query to show data but ignore dupes - 08-09-2006 , 10:43 AM







Andrew wrote:
Quote:
i have a database with 500,000 records.

one column has the same data over and over. i am trying to get a list of
the differnt names in that one column but cant get it to ignore the
duplicates

can anyone help me with this query as i cant work out how to use WHERE store
= different

SELECT * FROM datasearch WHERE store LIKE '%'


thank you in advance to anyone that can help me.
andy
http://dev.mysql.com/doc/refman/5.0/en/select.html



Reply With Quote
  #3  
Old   
Andrew
 
Posts: n/a

Default Re: Query to show data but ignore dupes - 08-09-2006 , 12:57 PM




"strawberry" <zac.carey (AT) gmail (DOT) com> wrote

Quote:
Andrew wrote:
i have a database with 500,000 records.

one column has the same data over and over. i am trying to get a list of
the differnt names in that one column but cant get it to ignore the
duplicates

can anyone help me with this query as i cant work out how to use WHERE
store
= different

SELECT * FROM datasearch WHERE store LIKE '%'


thank you in advance to anyone that can help me.
andy

http://dev.mysql.com/doc/refman/5.0/en/select.html

Already read that webpage but thank you for the link.

http://www.microsoft.com




Reply With Quote
  #4  
Old   
strawberry
 
Posts: n/a

Default Re: Query to show data but ignore dupes - 08-09-2006 , 01:51 PM




Andrew wrote:
Quote:
"strawberry" <zac.carey (AT) gmail (DOT) com> wrote in message
news:1155138216.458419.99950 (AT) 75g2000cwc (DOT) googlegroups.com...

Andrew wrote:
i have a database with 500,000 records.

one column has the same data over and over. i am trying to get a list of
the differnt names in that one column but cant get it to ignore the
duplicates

can anyone help me with this query as i cant work out how to use WHERE
store
= different

SELECT * FROM datasearch WHERE store LIKE '%'


thank you in advance to anyone that can help me.
andy

http://dev.mysql.com/doc/refman/5.0/en/select.html


Already read that webpage but thank you for the link.

http://www.microsoft.com
I think in that case you should read it again!



Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.