Re: Join query returning duplicate entries

2013-04-04 Thread shawn green
Hello Trimurthy, On 4/4/2013 3:21 AM, Trimurthy wrote: Hi list, i wrote the following query and it is returning duplicate entries as shown below, can any one suggest me how to avoid this duplicate entries, with out using distinct. Query: select p.date,p.coacode,p.type,p.crdr

Re: Join query returning duplicate entries

2013-04-04 Thread Lucky Wijaya
Hi, sorry i tried to help but i hardly understand the use of join in your query since the joined table is not used anywhere. From: Trimurthy To: mysql@lists.mysql.com Sent: Thursday, 4 April 2013, 14:21 Subject: Join query returning duplicate entries Hi

Re: Join query returning duplicate entries

2013-04-04 Thread Johan De Meersman
- Original Message - > From: "Lucky Wijaya" > To: mysql@lists.mysql.com > Sent: Thursday, 4 April, 2013 10:51:50 AM > Subject: Re: Join query returning duplicate entries > > Hi, sorry i tried to help but i hardly understand the use of join in > your quer

RE: console input - finding duplicate entries

2012-06-15 Thread Daevid Vincent
> -Original Message- > From: Gary Aitken [mailto:my...@dreamchaser.org] > Sent: Thursday, June 14, 2012 2:58 PM > > I can get the table loaded by specifying REPLACE INTO TABLE, but that still > leaves me with not knowing where the duplicate records are. To find duplica

Re: Duplicate entries despite group by

2010-02-21 Thread Carsten Pedersen
Is the CREATE TABLE you show the result of SHOW CREATE TABLE or your own create statement? If the latter, please show the output of SHOW CREATE. Does SELECT succeed if you remove the INSERT part of the statement? You might want to consider adding an index on transactionlogid, this could bring

Duplicate entries despite group by

2010-02-20 Thread Yang Zhang
I have the following table: CREATE TABLE `graph` ( `tableid1` varchar(20) NOT NULL, `tupleid1` int(11) NOT NULL, `tableid2` varchar(20) NOT NULL, `tupleid2` int(11) NOT NULL, `node1` int(11) NOT NULL, `node2` int(11) NOT NULL, `weight` int(10) NOT NULL, PRIMARY KEY (`tableid1`,`tup

Re: removing duplicate entries

2008-08-12 Thread Brent Baisley
| PRI | | | > | AMOUNTINPENCE | bigint(20) | YES | | NULL| | > +---++--+-+-+---+ > > ACCOUNTPAYMENTACTION shares the primary key with ACCOUNTACTION > > I need to remove duplicate entries that occured at a specific time in > ACC

Re: removing duplicate entries

2008-08-11 Thread Moon's Father
> >on A1.ID = U1.ID >where A1.ACTIONDATE like '2008-08-01 02:00%' >and U1.ID is NULL >) as D > ); > > Thanks for the pointers ;-) > > > > > -Original Message- > From: Magnus Smith [mailto:[EMAIL PROTECTED] > Sen

RE: removing duplicate entries

2008-08-07 Thread Magnus Smith
10:35 To: Ananda Kumar Cc: mysql@lists.mysql.com Subject: RE: removing duplicate entries Yes I can see you are correct. I tried setting up a little test case myself. CREATE TABLE ACCOUNTACTION ( ID INT NOT NULL PRIMARY KEY, ACTIONDATE DATETIME, ACCOUNT_ID INT NOT NULL );

Re: removing duplicate entries

2008-08-07 Thread Rob Wultsch
On Thu, Aug 7, 2008 at 2:34 AM, Magnus Smith <[EMAIL PROTECTED]> wrote: > Yes I can see you are correct. I tried setting up a little test case > myself. > > CREATE TABLE ACCOUNTACTION ( > ID INT NOT NULL PRIMARY KEY, > ACTIONDATE DATETIME, > ACCOUNT_ID INT NOT NULL > )

RE: removing duplicate entries

2008-08-07 Thread Magnus Smith
e '2008-08-01 02:00%' group by ACCOUNTACTION.ACCOUNT_ID having count(ACCOUNTACTION.ACCOUNT_ID) > 1 union select ACCOUNTACTION.ID, ACCOUNTACTION.ACCOUNT_ID from ACCOUNTACTION where ACCOUNTACTION.ACTIONDATE like '2008-08-01 02:00%' group by ACCOUNTACTION.ACCOUNT_ID having c

Re: removing duplicate entries

2008-08-06 Thread Ananda Kumar
; > > -- > *From:* Ananda Kumar [mailto:[EMAIL PROTECTED] > *Sent:* 06 August 2008 10:11 > *To:* Magnus Smith > *Cc:* mysql@lists.mysql.com > *Subject:* Re: removing duplicate entries > > > I doubt the belwo sql will give you duplcates

RE: removing duplicate entries

2008-08-06 Thread Magnus Smith
8 10:11 To: Magnus Smith Cc: mysql@lists.mysql.com Subject: Re: removing duplicate entries I doubt the belwo sql will give you duplcates select ACCOUNTACTION.ID <http://accountaction.id/> from ACCOUNTACTION where ACCOUNTACTION.ACTIONDATE like '2008-08-01 02:00%' group by ACCO

Re: removing duplicate entries

2008-08-06 Thread Ananda Kumar
-+-+-+---+ > | ID| bigint(20) | NO | PRI | | | > | AMOUNTINPENCE | bigint(20) | YES | | NULL| | > +---++--+-+-+---+ > > ACCOUNTPAYMENTACTION shares the primary key with ACCOUNTACTION > > I need to rem

removing duplicate entries

2008-08-06 Thread Magnus Smith
| bigint(20) | NO | PRI | | | | AMOUNTINPENCE | bigint(20) | YES | | NULL| | +---++--+-+-+---+ ACCOUNTPAYMENTACTION shares the primary key with ACCOUNTACTION I need to remove duplicate entries that occured at a specific time in

Re: How find duplicate entries

2007-02-06 Thread ViSolve DB Team
M Subject: How find duplicate entries Any can tell me a slq to find duplicate entries in a table? Thanks, Tomás No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.411 / Virus Data

Re: How find duplicate entries

2007-02-06 Thread Brent Baisley
That actually should be HAVING ( NumOfFoos > 1 ) - Original Message - From: "Lars Schwarz" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 06, 2007 11:26 AM Subject: Re: How find duplicate entries SELECT foobar, COUNT(foobar) AS NumOfFoos FROM bar GROUP BY fo

Re: How find duplicate entries

2007-02-06 Thread Lars Schwarz
SELECT foobar, COUNT(foobar) AS NumOfFoos FROM bar GROUP BY foobar HAVING ( COUNT(foobar) > 1 ) On 2/6/07, Tomás Abad Fernández <[EMAIL PROTECTED]> wrote: Any can tell me a slq to find duplicate entries in a table? Thanks, Tomás -- Lars Schwarz Gottorpstrasse 20 26122 Oldenbu

Re: updating table but afterwards there are duplicate entries that violate a key..

2006-09-29 Thread Gerald L. Clark
Peter Van Dijck wrote: Hi all, I have a table like this TABLE -- tagid taggerid objectid There is a primary key on (tagid, taggerid, objectid). First I remove that key, then I am changing the object id (because I've changed my objects), but what happens now is that I suddenly have dupl

updating table but afterwards there are duplicate entries that violate a key..

2006-09-29 Thread Peter Van Dijck
Hi all, I have a table like this TABLE -- tagid taggerid objectid There is a primary key on (tagid, taggerid, objectid). First I remove that key, then I am changing the object id (because I've changed my objects), but what happens now is that I suddenly have duplicate (tagid, taggerid,

Re: Mysql Complex Query to clear Duplicate entries...

2006-09-25 Thread Shen139
TD4-TD there are a lot of duplicate entries there... What i need to do is to find out the entries that have the same cli,type,status (the rest are not so important) and delete all BUT ONE! I have no clue as to how i can delete all but one... Also the rest of the data may differ a little bit (datetim

Mysql Complex Query to clear Duplicate entries...

2006-09-25 Thread gerodim
-23 23:49:42-2005-03-09 00:00:00-TD4-TD 289267-210201021-XOR-3--00-00 00:00:00-2005-03-09 00:00:00-2006-05-26 13:37:27-2005-03-09 00:00:00-TD4-TD there are a lot of duplicate entries there... What i need to do is to find out the entries that have the same cli,type,status (the rest are not so

RE: show duplicate entries

2005-03-27 Thread Tom Crimmins
gt; 1 row in set (0.00 sec) > > I got this select syntax to count how many duplicate entries i have. > But i dont know how to show the duplicate entries i have on that > table. > SELECT username, email, COUNT(*) as n FROM users GROUP BY username, email HAVING n > 1 > Pls

show duplicate entries

2005-03-27 Thread Louie Miranda
mysql> select count(*) - count(distinct username,email) as 'duplicate names' from users; +-+ | duplicate names | +-+ | 2 | +-+ 1 row in set (0.00 sec) I got this select syntax to count how many duplicate entries i have. Bu

Reg : eliminating duplicate entries

2004-10-08 Thread Anil Doppalapudi
Try this Take dump of table using mysqldump utility eg : mysqldump --quick --allow-keywords --no-create-info > Then truncate table data eg: mysql>truncate table ; create primary or unique keys what ever you want on table Then restore the data from dump file with the following options my

Re: Duplicate Entries

2004-09-24 Thread Egor Egorov
Suresh <[EMAIL PROTECTED]> wrote: > I am porting from 4.0.0-alpha-nt to 4.0.1-alpha-nt. In which i have a > table with two primary key, my older mysql server insert all the records > except the duplicate fields(Primary Key). Whereas in the new mysql > server it exits whenever it sees a duplicate

Re: Duplicate Entries

2004-09-22 Thread gerald_clark
Suresh wrote: Hi, Yes ofcourse it is a primary key with two fields. The insert exists whenever it has a duplicate entry, it doesn't continue with further records. Is there any scope to resolve it. Thanks Suresh Eldo Skaria wrote: insert ignore -- MySQL General Mailing List For list archives: h

Re: Duplicate Entries

2004-09-22 Thread Suresh
ith two fields. > > Eldo. > > On Tue, 21 Sep 2004 19:32:17 -0400, Rhino <[EMAIL PROTECTED]> wrote: > > > > - Original Message - > > From: "Suresh" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Tuesday, Septembe

Re: Duplicate Entries

2004-09-21 Thread Eldo Skaria
; Sent: Tuesday, September 21, 2004 6:43 PM > Subject: Duplicate Entries > > > Hello All, > > > > I am porting from 4.0.0-alpha-nt to 4.0.1-alpha-nt. In which i have a > > table with two primary key, my older mysql server insert all the records > > except the duplicat

Re: Duplicate Entries

2004-09-21 Thread Rhino
- Original Message - From: "Suresh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 21, 2004 6:43 PM Subject: Duplicate Entries > Hello All, > > I am porting from 4.0.0-alpha-nt to 4.0.1-alpha-nt. In which i have a > table wi

Duplicate Entries

2004-09-21 Thread Suresh
Hello All, I am porting from 4.0.0-alpha-nt to 4.0.1-alpha-nt. In which i have a table with two primary key, my older mysql server insert all the records except the duplicate fields(Primary Key). Whereas in the new mysql server it exits whenever it sees a duplicate entry. How to resolve it ? Than

RE: Preventing Duplicate Entries

2004-03-22 Thread David Perron
- From: Axel IS Main [mailto:[EMAIL PROTECTED] Sent: Sunday, March 21, 2004 10:25 PM To: [EMAIL PROTECTED] Subject: Preventing Duplicate Entries I have a php app that updates an ever growing table with new information on a regular basis. Very often the information is duplicated. I'm curr

Re: Preventing Duplicate Entries

2004-03-21 Thread Michael Stassen
Axel IS Main wrote: I have a php app that updates an ever growing table with new information on a regular basis. Very often the information is duplicated. I'm currently handling this by checking the table for duplicate values every time I go to add new data. As you can imagine, as the table gro

Re: Preventing Duplicate Entries

2004-03-21 Thread Jim Richardson
On Sun, Mar 21, 2004 at 07:24:48PM -0800, Axel IS Main wrote: I have a php app that updates an ever growing table with new information on a regular basis. Very often the information is duplicated. I'm currently handling this by checking the table for duplicate values every time I go to add new data

Preventing Duplicate Entries

2004-03-21 Thread Axel IS Main
I have a php app that updates an ever growing table with new information on a regular basis. Very often the information is duplicated. I'm currently handling this by checking the table for duplicate values every time I go to add new data. As you can imagine, as the table grows it takes longer a

Re: no duplicate entries..

2003-07-21 Thread Victoria Reznichenko
harsh <[EMAIL PROTECTED]> wrote: > > Hi all, > How do i do this ? > i have a table with one of the column named uid, > Now i want to insert a new row,only if no other > row exist with the uid i m trying to insert. > I hope its clear. Define column as a PRIMARY or UNIQUE key and use INSERT IGNORE:

Re: no duplicate entries..

2003-07-20 Thread Tan Shao Yi
On Sun, 20 Jul 2003, harsh wrote: > > Hi all, > How do i do this ? > i have a table with one of the column named uid, > Now i want to insert a new row,only if no other > row exist with the uid i m trying to insert. > I hope its clear. Hello Harsh, How about making the uid column in your table a

no duplicate entries..

2003-07-20 Thread harsh
Hi all, How do i do this ? i have a table with one of the column named uid, Now i want to insert a new row,only if no other row exist with the uid i m trying to insert. I hope its clear. thanks for any reply . harsh --

Re: Beginner question - Preventing Duplicate Entries

2003-03-27 Thread Brian McCain
oc/en/CREATE_TABLE.html and http://www.mysql.com/doc/en/ALTER_TABLE.html for information about keys. -Brian McCain - Original Message - From: "Wileynet" <[EMAIL PROTECTED]> To: "'mysql users'" <[EMAIL PROTECTED]> Sent: Wednesday, March 26, 2003 3:03 PM Su

RE: Beginner question - Preventing Duplicate Entries

2003-03-26 Thread Wynne Crisman
. This of course would require transactions supported by InnoDB tables and not supported by MyISAM. ~Wynne -Original Message- From: Wileynet [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 2:04 PM To: 'mysql users' Subject: Beginner question - Preventing Duplicate En

RE: Beginner question - Preventing Duplicate Entries

2003-03-26 Thread Wynne Crisman
wise you will likely have deadlocks. ~Wynne -Original Message- From: Wileynet [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 2:04 PM To: 'mysql users' Subject: Beginner question - Preventing Duplicate Entries Is there a sql statement that would not allow the same entr

Beginner question - Preventing Duplicate Entries

2003-03-26 Thread Wileynet
Is there a sql statement that would not allow the same entry twice. Something like INSERT into myTable s WHERE s != Value(?). I don’t know if that makes sense but I thought I would give it a shot. Basically I want to know if it is possible and if so can you point me to a webpage or give me an exam

Re: Duplicate entries

2002-09-28 Thread Franz Alt
Sorry, but justs a quick remark on the top: Have you looked at small and KAPITAL letters? -- Franz Alt [EMAIL PROTECTED] > at work I run mysql 3.23.45. on a windows2000 machine with apache 1.3.23 > and php4.06. at home it's Linux SuSe *.0, mysql 4.03 apache 1.3.26 and > php4.2.3. the problem i

Duplicate entries

2002-09-27 Thread John Coder
at work I run mysql 3.23.45. on a windows2000 machine with apache 1.3.23 and php4.06. at home it's Linux SuSe *.0, mysql 4.03 apache 1.3.26 and php4.2.3. the problem is I'm having problems inserting data into temporary tables. the results are different running the same script. here is the script (

Re: duplicate entries mystery

2002-06-13 Thread Jocelyn Fournier
rom: "Nick Wilson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 13, 2002 4:57 PM Subject: Re: duplicate entries mystery > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > * and then Nick Wilson declared > > I'm having some weir

Re: duplicate entries mystery

2002-06-13 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Nick Wilson declared > I'm having some weirdness when inserting from the php api, I do not get > the same results if I use the mysql server directly. Here is the code: Please disregard. It appears to be some bizzare Apache/http thing,

duplicate entries mystery

2002-06-13 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, I'm having some weirdness when inserting from the php api, I do not get the same results if I use the mysql server directly. Here is the code: $qry="INSERT INTO news VALUES(NULL, NULL, \"a value\", \"b value\")"; mysql_connect("localho

RE: data compare and duplicate entries..

2002-05-03 Thread Andrew Hazen
checked individually, and how busy you expect the system to be overall. Andrew Hazen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 8:17 PM To: [EMAIL PROTECTED] Subject: RE: data compare and duplicate entries.. IMHO it is an expensive to

Re: Fw: data compare and duplicate entries..

2002-05-02 Thread Dicky Wahyu Purnomo
On Thu, 2 May 2002 15:31:44 +0200 "Tech @NorthWeb" <[EMAIL PROTECTED]> wrote: > hi, > I was looking for an SQL statement or script that whould allow me to compare > data when it was entered into a mysql-php field on a web page so that it > checks whether the data entered has not been used before

RE: data compare and duplicate entries..

2002-05-02 Thread Steve Bradwell
Are you writing a php script, perhaps with a form and a submit button, that connects to mysql? -Steve. -Original Message- From: Tech @NorthWeb [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 9:32 AM To: mysql Subject: Fw: data compare and duplicate entries.. hi, I was looking

RE: data compare and duplicate entries..

2002-05-02 Thread Andrew Hazen
ot;; Reset form Andrew Hazen -Original Message- From: Tech @NorthWeb [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 9:32 AM To: mysql Subject: Fw: data compare and duplicate entries.. hi, I was looking for an SQL statement or script that whould allow me to compare data w

Fw: data compare and duplicate entries..

2002-05-02 Thread Tech @NorthWeb
hi, I was looking for an SQL statement or script that whould allow me to compare data when it was entered into a mysql-php field on a web page so that it checks whether the data entered has not been used before in the database.. In short, when data needs to be entered, the statement/script must ch

RE: Removing duplicate entries

2002-01-03 Thread Roger Baklund
* Ville Mattila > I was wondering how would it be possible to delete those records from > database which has just same data? There can be also up to ten > copies of the record in database, and all but one should be deleted. > Do you have any easy way to do this? You could do it by creating a new

RE: Removing duplicate entries

2002-01-03 Thread Simon Green
duplicate entries Hello, I was wondering how would it be possible to delete those records from database which has just same data? There can be also up to ten copies of the record in database, and all but one should be deleted. Do you have any easy way to do this? Thank you, Ville Mattila

Removing duplicate entries

2002-01-03 Thread Ville Mattila
Hello, I was wondering how would it be possible to delete those records from database which has just same data? There can be also up to ten copies of the record in database, and all but one should be deleted. Do you have any easy way to do this? Thank you, Ville Mattila ---

Re: Syntax Question: deleting previous duplicate entries

2001-08-30 Thread Ed Carp
Tom Churm ([EMAIL PROTECTED]) writes: > hi, > > i've got a table collecting info from html forms. problem is, certain > wiseguys always make multiple entries. could someone clue me in to how > i can select the Last entry where there is a duplicate for the User > (type text, these are email add

Syntax Question: deleting previous duplicate entries

2001-08-30 Thread Tom Churm
hi, i've got a table collecting info from html forms. problem is, certain wiseguys always make multiple entries. could someone clue me in to how i can select the Last entry where there is a duplicate for the User (type text, these are email addresses), and automatically delete any previous entr

Re: Removing duplicate entries

2001-08-14 Thread Steve Buehler
er schrieb am Montag, 13. August 2001, 22:30:20: > > > I hope that someone here can help me with a little problem. We have a > > database that has a lot of duplicate entries in it for one of the fields > > (email). I need to find a way to search the database, find all of

Removing duplicate entries

2001-08-13 Thread Steve Buehler
I hope that someone here can help me with a little problem. We have a database that has a lot of duplicate entries in it for one of the fields (email). I need to find a way to search the database, find all of the duplicate entries and delete all but one of the entries. It would not be

Re: preventing duplicate entries

2001-06-26 Thread techlists
-- Original Message -- From: Pete Kuczynski <[EMAIL PROTECTED]> Date: Tue, 26 Jun 2001 14:02:08 -0500 >My primary key field is a auto incremented index, the field I want to >make unique, or to say, prevent duplicates in, is the hostname field, >which has, h

Re: preventing duplicate entries

2001-06-26 Thread Pete Kuczynski
My primary key field is a auto incremented index, the field I want to make unique, or to say, prevent duplicates in, is the hostname field, which has, hostnames of devices. Is the key word UNIQUE then? Not all of the devices have hostnames assigned to them, like terminals, so the hostname field

Re: preventing duplicate entries

2001-06-26 Thread techlists
-- Original Message -- From: Pete Kuczynski <[EMAIL PROTECTED]> Date: Tue, 26 Jun 2001 13:19:02 -0500 >I want to prevent duplicate entries into my mysql database which holds >invertory of all network eqpt at my site. Engineers access it thru &

preventing duplicate entries

2001-06-26 Thread Pete Kuczynski
I want to prevent duplicate entries into my mysql database which holds invertory of all network eqpt at my site. Engineers access it thru netscape and the query insert is done via pdp [below]. I will place the script into php, any pointers on this would be appreciated. THX! Pete

Re: hunting down duplicate entries

2001-03-14 Thread harm
On Wed, Mar 14, 2001 at 03:48:28PM -0900, Josh Burroughs wrote: > We recently moved our hardware inventory database off of access (yay!) > over to mysql. During it's days as an access database it aquired a > numbered of duplicate entries. In every case (or at least the ones I'

RE: hunting down duplicate entries

2001-03-14 Thread Cal Evans
g in the mythical v4!) you'll have to process that list in something like Java or PHP. HTH, Cal http://www.calevans.com -Original Message- From: Josh Burroughs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 6:48 PM To: [EMAIL PROTECTED] Subject: hunting down duplicate entries

hunting down duplicate entries

2001-03-14 Thread Josh Burroughs
We recently moved our hardware inventory database off of access (yay!) over to mysql. During it's days as an access database it aquired a numbered of duplicate entries. In every case (or at least the ones I'm working on) the serial numbers will be the same but likely all other in

[binlog duplicate entries]

2001-01-12 Thread zappa
>Description: while replicating MySQL database via creating binlog on one server and runing slave on another, connected via tcp/ip, we encountered situation when slave database containing duplicate entries. We found that number of entries in slave database diverges with time f