Re: Create Temporary Table, incorrect rows

2004-07-06 Thread Duncan Hill
On Tuesday 06 July 2004 15:30, Paul McNeil might have typed:


 When I run this it says that the temp table has only 1000 rows.  Why?

Are you using mysqlcc?

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Create Temporary Table, incorrect rows

2004-07-06 Thread Peter Brawley
A more direct way to find dupes ...

SELECT id, COUNT( id ) AS cnt,

FROM myTable

GROUP BY id

HAVING cnt  1



PB

  - Original Message -
  From: Paul McNeil
  To: MySQL General
  Sent: Tuesday, July 06, 2004 9:30 AM
  Subject: Create Temporary Table, incorrect rows


  Good day to all.

  I have a table and want to find duplicate info in the table.  I know
  duplicated info exists by running the following...

  Select count(*) from myTable - 141123
  Select distinct(myData) from myTable - 1411000

  So I created a temporary table to store distinct records and want to do a
  join with original table to see what records are duplicates.

  Create Temporary Table A
Select distinct(mydata),rowID from myTable;

  When I run this it says that the temp table has only 1000 rows.  Why?



  God Bless

  Paul C. McNeil
  Developer in Java, MS-SQL, MySQL, and web technologies.









  GOD BLESS AMERICA!
  To God Be The Glory!


  --
  MySQL General Mailing List
  For list archives: http://lists.mysql.com/mysql
  To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]




RE: Create Temporary Table, incorrect rows

2004-07-06 Thread Paul McNeil
Thanks.  That is a much better way to find dupes.




God Bless

Paul C. McNeil
Developer in Java, MS-SQL, MySQL, and web technologies.
















GOD BLESS AMERICA!
To God Be The Glory!

  -Original Message-
  From: Peter Brawley [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, July 06, 2004 11:11 AM
  To: Paul McNeil; MySQL General
  Subject: Re: Create Temporary Table, incorrect rows


  A more direct way to find dupes ...

  SELECT id, COUNT( id ) AS cnt,

  FROM myTable

  GROUP BY id

  HAVING cnt  1



  PB

- Original Message -
From: Paul McNeil
To: MySQL General
Sent: Tuesday, July 06, 2004 9:30 AM
Subject: Create Temporary Table, incorrect rows


Good day to all.

I have a table and want to find duplicate info in the table.  I know
duplicated info exists by running the following...

Select count(*) from myTable - 141123
Select distinct(myData) from myTable - 1411000

So I created a temporary table to store distinct records and want to do
a
join with original table to see what records are duplicates.

Create Temporary Table A
  Select distinct(mydata),rowID from myTable;

When I run this it says that the temp table has only 1000 rows.  Why?



God Bless

Paul C. McNeil
Developer in Java, MS-SQL, MySQL, and web technologies.









GOD BLESS AMERICA!
To God Be The Glory!


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]




Re: Create Temporary Table, incorrect rows

2004-07-06 Thread Brian Reichert
On Tue, Jul 06, 2004 at 10:30:38AM -0400, Paul McNeil wrote:
 Good day to all.
 
 I have a table and want to find duplicate info in the table.  I know
 duplicated info exists by running the following...
 
 Select count(*) from myTable - 141123
 Select distinct(myData) from myTable - 1411000

I presume there's a typo here: count(*) should have returned a
larger number than distinct(myData), not smaller.

 So I created a temporary table to store distinct records and want to do a
 join with original table to see what records are duplicates.
 
 Create Temporary Table A
   Select distinct(mydata),rowID from myTable;

This is a different query than above.  What cout do you get from
this query:

  Select distinct(mydata),rowID from myTable;

Yes, it will be huge, but you want that count of selected rows.

 God Bless
 
 Paul C. McNeil
 Developer in Java, MS-SQL, MySQL, and web technologies.

-- 
Brian Reichert  [EMAIL PROTECTED]
37 Crystal Ave. #303Daytime number: (603) 434-6842
Derry NH 03038-1713 USA BSD admin/developer at large

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



RE: Create Temporary Table, incorrect rows

2004-07-06 Thread Paul McNeil
Yes I am using mysqlcc.  Is that why the 1000 row limit?


God Bless

Paul C. McNeil
Developer in Java, MS-SQL, MySQL, and web technologies.















GOD BLESS AMERICA!
To God Be The Glory!

-Original Message-
From: Duncan Hill [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 06, 2004 11:05 AM
To: [EMAIL PROTECTED]
Subject: Re: Create Temporary Table, incorrect rows


On Tuesday 06 July 2004 15:30, Paul McNeil might have typed:


 When I run this it says that the temp table has only 1000 rows.  Why?

Are you using mysqlcc?

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Create Temporary Table, incorrect rows

2004-07-06 Thread Duncan Hill
On Tuesday 06 July 2004 17:20, Paul McNeil wrote:
 Yes I am using mysqlcc.  Is that why the 1000 row limit?

Yes.  It's under the server options tag (don't have it in front of me to give 
exact details).  If you right click the server connection, under I think 
properties, there's a query limit.  Set to 0 and no limit.

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]