Re: Help needed for SQL statement

2005-10-24 Thread Alvaro Cobo
Is this what you are looking for: SELECT clone_ids, COUNT(DISTINCT(gene_ids)) as count_genes FROM table_name GROUP BY clone_ids or SELECT clone_ids, COUNT(gene_ids) as count_genes FROM table_name GROUP BY clone_ids Hope this helps, Alvaro - Original Message - From: "Xiaobo Chen" <[EMAI

Microfinance database

2005-10-24 Thread Alvaro Cobo
Hi guys. I don't want my job done by anybody else, but I have found no solution for several days to this problem. I am developing a micro-finance system to farmer communities. The problem I have got is in the database description. I have three principal tables: (see SQL at the end). 1. Loan

Re: Date storage format

2005-10-24 Thread Martijn Tonies
> >Can anyone tell me what advantages there are in keeping dates and times in a MySQL DateTime field, as opposed to storing its >string equivalent in a Varchar field ? Decent sorting, validity checking, being able to use the DATE and TIME functions etc etc... With regards, Martijn Tonies Databa

Date storage format

2005-10-24 Thread Sinang, Danny
Hello, Can anyone tell me what advantages there are in keeping dates and times in a MySQL DateTime field, as opposed to storing its string equivalent in a Varchar field ? Regards, Danny

Re: ERROR 1005 (HY000): Can't create table '.\testDataBase\#sql-ec4_c.frm' (errno: 139)

2005-10-24 Thread Heikki Tuuri
Sunil, in InnoDB, the maximum indexed column length is 767 bytes. Osku is improving the error message: http://bugs.mysql.com/bug.php?id=13315 Regards, Heikki Oracle/Innobase - Original Message - From: ""Sunil Vishwas"" <[EMAIL PROTECTED]> Newsgroups: mailing.database.myodbc Sent: Tu

Help needed for SQL statement

2005-10-24 Thread Xiaobo Chen
Hi, I have such a situation: There is a table with gene_ids and clone_ids. Each gene only resides on a single clone and each clone may contain multiple genes. How do would I find how many genes are on each and every clone? Thanks in advance. X.Chen -- MySQL General Mailing List For list arch

Re: Map of MySQL Users

2005-10-24 Thread Jeffrey Goldberg
[posted only] On Oct 24, 2005, at 8:14 PM, Claire McLister wrote: if you go to the web page, http://www.zeesource.net/maps/help.do, then in the paragraph under the heading "Automatic Maps" the last sentence should give you the location of your IP. Hmm. That located me perfectly, but on th

ERROR 1005 (HY000): Can't create table '.\testDataBase\#sql-ec4_c.frm' (errno: 139)

2005-10-24 Thread Sunil Vishwas
(I am using mysql-5.0.15-win32) Why I am getting this error and is there any way I can fix it, or is it a bug? Between I don't get this error if I change the field size to 767 or below: drop table Address; CREATE TABLE `Address` ( `RecId` CHAR(32) NOT NULL, `WebAddress` VARCHAR(1000), CONS

demon quits immediately...

2005-10-24 Thread tom wible
Description: [EMAIL PROTECTED] mysql-standard-5.0.15-linux-i686]# Starting mysqld daemon with databases from /usr/local/mysql-standard-5.0.15-linux-i686/data STOPPING server from pid file /usr/local/mysql-standard-5.0.15-linux-i686/data/tomsEmachine.pid 051024 19:52:09 mysqld ended [EMAIL PROT

Next alpha release?

2005-10-24 Thread Josh Trutwin
I don't think I remember a time when MySQL only had stable production releases available for download (at least not off the website) since v3. Any idea if the next alpha is on the way? Thanks, 5.0 looks great, I've been using it for over a year with very few problems. Josh -- MySQL General Mai

demon quits immediately...

2005-10-24 Thread tom wible
Description: [EMAIL PROTECTED] mysql-standard-5.0.15-linux-i686]# Starting mysqld daemon with databases from /usr/local/mysql-standard-5.0.15-linux-i686/data STOPPING server from pid file /usr/local/mysql-standard-5.0.15-linux-i686/data/tomsEmachine.pid 051024 19:52:09 mysqld ended Submit

Re: demon quits immediately...

2005-10-24 Thread Peter J Milanese
Logs? - Sent from my NYPL BlackBerry Handheld. - Original Message - From: tom wible [EMAIL PROTECTED] Sent: 10/24/2005 06:58 PM To: mysql@lists.mysql.com Cc: [EMAIL PROTECTED] Subject: demon quits immediately... >Description: [EMAIL PROTECTED] mysql-standard-5.0.15-linu

Re: Map of MySQL Users

2005-10-24 Thread Robert L Cochran
This shows me as being in Washington, DC. My ISP has a point-of-presence somewhere in the city. My physical location is Greenbelt, Maryland, USA. Bob Cochran Claire McLister wrote: Peter, We try to take care of the situation where people are coming from an ISP account. Let me know if yo

demon quits immediately...

2005-10-24 Thread tom wible
>Description: [EMAIL PROTECTED] mysql-standard-5.0.15-linux-i686-glibc23]# Starting mysqld daemon with databases from /usr/local/mysql-standard-5.0.15-linux-i686-glibc23/data STOPPING server from pid file /usr/local/mysql-standard-5.0.15-linux-i686-glibc23/data/tomsEmachine.pid 051024 18:36:32

Re: Map of MySQL Users

2005-10-24 Thread Claire McLister
Peter, We try to take care of the situation where people are coming from an ISP account. Let me know if you think there is a specific case that is not right on our map. I searched for AOL in the map, and did not find a single entry from AOL. We do not use whois databases. As you correct

Re: Map of MySQL Users

2005-10-24 Thread Claire McLister
We do allow manual modifications to maps, through separate passwords for group moderators, members, and viewers. In our case, I have set the group password to 'mysqlmap'. Please feel free to add your entries to the map. This password will only allow you to add entries, or to modify existing en

Re: Map of MySQL Users

2005-10-24 Thread Peter J Milanese
This is particularly troublesome when it come to isp accounts. I.E., all aol users showing Reston as their base. I tried something like this using whois databases and had the same issues. I canned the idea for now. P - Sent from my NYPL BlackBerry Handheld. - Original Mes

RE: Map of MySQL Users

2005-10-24 Thread J.R. Bullington
Thank you for your email. It seems as though you are getting rave reviews from the list. I am sure that if you want to make this really neat, try creating a simple web login that allows for you to create an account using the email address, then update your location so that it can be a little more

Re: Map of MySQL Users

2005-10-24 Thread Jasper Bryant-Greene
On Mon, 2005-10-24 at 14:19 -0700, Claire McLister wrote: > We've developed an automatic email mapping capability from Google Maps > API. > > To try it out, we mapped origins of emails to this group from October > 3 through October 14th. > > The result of this map is at: > http://www.zees

Re: mysql command line error

2005-10-24 Thread Dustin Krysak
I got it figured out.. of all things it was a line return. DOH! Dustin On 24-Oct-05, at 12:14 PM, Dustin Krysak wrote: Sorry - but to add to this, the command is actually in a bash script. I suspect it is the single quotes and or the "()" characters Dustin On 24-Oct-05, at 11:57 AM

Mysql Processes

2005-10-24 Thread Edward David
I just joined this list so I am hoping that this question is relevant to this group. I am running Linux AS4 Enterprise Server. I am running Mysql Ver 14.7 Distrib 4.1.12, for pc-linux-gnu (i686) using readline 4.3 With Client version 3.23.49. When I go and do a ps -ax I see 18 mysqld processes

RE: Map of MySQL Users

2005-10-24 Thread Logan, David (SST - Adelaide)
Hi Claire, I thought Daniel Kasak was in Sydney? It is about 2000kms from Alice Springs 8-) Apart from that, very good. Regards David Logan Database Administrator HP Managed Services 148 Frome Street, Adelaide 5000 Australia +61 8 8408 4273 - Work +61 417 268 665 - Mobile +61 8 8408 4259 - Fax

Re: Map of MySQL Users

2005-10-24 Thread Brian Dunning
That's awesome! I love it. Even though it didn't include me... :( How are you doing the geotargeting? -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

LASSO TIPS for MYSQL: 3.3 NEAR MAGICAL INLINES

2005-10-24 Thread m i l e s
- Hi and Welcome to - LASSO TIPS FOR NEWBIES: 3.3 I'm your host, M i l e s. First and foremost, a good place for you to start with Lasso is the following 5 things: The FIRST LASSO TIPS FOR NEWBIES -> http://www.listsearc

Re: Map of MySQL Users

2005-10-24 Thread Robert L Cochran
This is awesome! You missed me by 3 days. It looks like you can see the exact street and house that an email originated from. I like the mapping capability very much. Bob Cochran Claire McLister wrote: Hi, We've developed an automatic email mapping capability from Google Maps API. To

Help on nested categories query

2005-10-24 Thread pedro mpa
Hi! I need help on implementing a query that performs a search for items under nested categories. An example is on ebay search where you can restrict your search by selecting a subcategory and you only get items under that category/subcategories. Do I have to first get a list of all subcategories

Re: How Can I upgrade TPC-C performance test result for mysql

2005-10-24 Thread Heikki Tuuri
George, can you please post a few typical SHOW INNODB STATUS\G outputs during the stress test. Best regards, Heikki Oracle/Innobase - Original Message - From: "yang george" <[EMAIL PROTECTED]> Newsgroups: mailing.database.myodbc Sent: Monday, October 24, 2005 1:50 PM Subject: How C

Can conditions be mixed with DISTINCT()

2005-10-24 Thread Scott Haneda
tSql = "SELECT DISTINCT(p.ship_status) FROM products AS p INNER JOIN cart AS i ON i.product_id = p.id WHERE i.session_id = " & prepSQL(tConn, tSessionID); p.ship_status is either a "1" or a "0", which is just how the database was set up ages, ago. I am moving thes

Re: Optimal index for date range query with order by using index for sort???

2005-10-24 Thread sheeri kritzer
Is the DATE field a timestamp column? What's your schema? What's your primary key? I ask this because the real question is, "is it safe to assume that new entries are for the current day it is inserted?" If the answer to that question is yes, you can use an id field (or an existing one) to find

Optimal index for date range query with order by using index for sort???

2005-10-24 Thread Kevin Burton
OK. I need help with the following query: SELECT * FROM PRODUCT WHERE DATE > ? ORDER BY PRICE; Basically find products created since a given date and order by prices. I could put an index of DATE, PRICE but it will have to resort to a filesort since DATE isn't a constant value. I was thin

Map of MySQL Users

2005-10-24 Thread Claire McLister
Hi, We've developed an automatic email mapping capability from Google Maps API. To try it out, we mapped origins of emails to this group from October 3 through October 14th. The result of this map is at: http://www.zeesource.net/maps/map.do?group=460 Would like to hear what you think

RE: mysql command line error

2005-10-24 Thread Logan, David (SST - Adelaide)
Hi Dustin, If this is the actual syntax as you currently have it, the single quotes around the second occurrence of $DBPASS (in the function OLD_PASSWORD) will be causing lots of grief to bash. You are passing literally '$DBPASS' to the function rather than the value of the variable. Try using dou

Re: mysql command line error

2005-10-24 Thread SGreen
Dustin Krysak <[EMAIL PROTECTED]> wrote on 10/24/2005 03:14:02 PM: > Sorry - but to add to this, the command is actually in a bash script. > I suspect it is the single quotes and or the "()" characters > > Dustin > > > On 24-Oct-05, at 11:57 AM, Dustin Krysak wrote: > > > Hi there - I am

Re: mysql command line error

2005-10-24 Thread Dustin Krysak
Sorry - but to add to this, the command is actually in a bash script. I suspect it is the single quotes and or the "()" characters Dustin On 24-Oct-05, at 11:57 AM, Dustin Krysak wrote: Hi there - I am trying to issue the following command in a terminal window... I know my syntax is sl

mysql command line error

2005-10-24 Thread Dustin Krysak
Hi there - I am trying to issue the following command in a terminal window... I know my syntax is slightly off, however I can not see what... it seems to be due to the OLD_PASSWORD function... any pointers? mysql -u${DB_NAME} -p${DB_PASSWORD} -e"GRANT select, update, insert, delete ON $DB

Re: Temp table doesn't seem to work

2005-10-24 Thread SGreen
Brian Dunning <[EMAIL PROTECTED]> wrote on 10/24/2005 01:32:43 PM: > I got it to work - turns out it was a stupid typo on my part (hate it > when that happens - and hate wasting the list's time even more!). How > long does this temporary table persist for - just the execution of > the one page,

Re: Temp table doesn't seem to work

2005-10-24 Thread Brian Dunning
I got it to work - turns out it was a stupid typo on my part (hate it when that happens - and hate wasting the list's time even more!). How long does this temporary table persist for - just the execution of the one page, or will it live on the server (using resources) until I explicitly mak

Re: multiple commands to mysql from regular command line

2005-10-24 Thread sheeri kritzer
> If you just need to select a database, you can do it while connecting to > mysql: > > mysql -u${DB_USER} -p${DB_PASSWORD} ${DATABASE} -e 'update foo set bar=0' > > Although the other suggestions, of using semicolons or scripts, work > as well. If it's just a one-liner, though, the above will wo

Re: sum of time?

2005-10-24 Thread jabbott
On Mon, 24 Oct 2005 [EMAIL PROTECTED] wrote: > "Martijn Tonies" <[EMAIL PROTECTED]> wrote on 10/24/2005 10:16:21 AM: > > > > > > > > Michael Stassen wrote: > > > > > > > Second, no, it won't overflow: > > > > > > > > mysql> SELECT SEC_TO_TIME(60*60*24*5); > > > > +-

Re: sum of time?

2005-10-24 Thread SGreen
"Martijn Tonies" <[EMAIL PROTECTED]> wrote on 10/24/2005 10:16:21 AM: > > > > Michael Stassen wrote: > > > > > Second, no, it won't overflow: > > > > > > mysql> SELECT SEC_TO_TIME(60*60*24*5); > > > +-+ > > > | SEC_TO_TIME(60*60*24*5) | > > > +---

[ANN] DBManager Professional 3.1.2 Released

2005-10-24 Thread DBTools Software
We are pleased to announce the release of the new DBTools Manager Professional. This version is a bug fix with small new features, see below: - Fixed: Dialog Box Preferences for Data Options - Fixed: 'Invalid DateTime' on datetime columns with NULL values in Microsoft Access - Fixed: SetFieldNull

Re: sum of time?

2005-10-24 Thread Martijn Tonies
> Michael Stassen wrote: > > > Second, no, it won't overflow: > > > > mysql> SELECT SEC_TO_TIME(60*60*24*5); > > +-+ > > | SEC_TO_TIME(60*60*24*5) | > > +-+ > > | 120:00:00 | > > +-+ > > 1 row in

Re: sum of time?

2005-10-24 Thread Martijn Tonies
> >>This translated to SQL as: > >> > >>select SEC_to_time(SUM(unix_timestamp(TTendTime)) - > >>SUM(unix_timestamp(TTstartTime))) > >>as endtime > >>FROM TimeTracking > >>WHERE TTperson = 1 > >>and date(TTstartTime) = '2005-10-19' > > > > Won't this fail if it overflows 24 hours? > > > > Given

Re: sum of time?

2005-10-24 Thread Michael Stassen
Michael Stassen wrote: Second, no, it won't overflow: mysql> SELECT SEC_TO_TIME(60*60*24*5); +-+ | SEC_TO_TIME(60*60*24*5) | +-+ | 120:00:00 | +-+ 1 row in set (0.00 sec) mysql> SELECT SEC_TO_

Fw: column type problem

2005-10-24 Thread Szmutku Zoltán
Hi , More column type problem ...The MySql Text fields arrived as General (not readable) field in VFP via ODBC... By: Zoltan - Original Message - From: Szmutku Zoltán To: mysql@lists.mysql.com Sent: Monday, October 24, 2005 10:36 AM Subject: column type problem Hi , I using My

Re: Selecting more than one property (req help)

2005-10-24 Thread Jigal van Hemert
mem bob wrote: | id | model | service_id | ||---|| | 1 | 500 | 1 | | 2 | 500 | 3 | | 3 | 500 | 10 | | 4 | 600 | 1 | From this table i want to extract all distinct models which have service_id=1 *AND* service_id=3 The JOIN-construction is something like: SELECT `model` FR

Re: Selecting more than one property (req help)

2005-10-24 Thread SGreen
mem bob <[EMAIL PROTECTED]> wrote on 10/24/2005 09:45:30 AM: > Hi all, > > Can anyone throw some suggestions at me for this problem? > > | id | model | service_id | > ||---|| > | 1 | 500 | 1 | > | 2 | 500 | 3 | > | 3 | 500 | 10 | > | 4 | 600 | 1 | > > > From this table i wa

Re: sum of time?

2005-10-24 Thread Michael Stassen
Martijn Tonies wrote: I have a table doing time tracking. I don't use timestamps, I use datetime fields to record punch in times and punch out times. I have this query that computes the amount of time between a punch in and punch out: select SEC_to_time(unix_timestamp(TTendTime) - unix_times

MySQL 5.0.15 has been released

2005-10-24 Thread Joerg Bruehe
Hi, MySQL 5.0.15, a new version of the popular Open Source Database Management System, has been released. The Community Edition is now available in source and binary form for a number of platforms from our download pages at http://dev.mysql.com/downloads/ and mirror sites. Note that not all mi

Selecting more than one property (req help)

2005-10-24 Thread mem bob
Hi all, Can anyone throw some suggestions at me for this problem? | id | model | service_id | ||---|| | 1 | 500 | 1 | | 2 | 500 | 3 | | 3 | 500 | 10 | | 4 | 600 | 1 | >From this table i want to extract all distinct models which have service_id=1 *AND* service_id=3 What's th

Re: sum of time?

2005-10-24 Thread Martijn Tonies
> > I have a table doing time tracking. I don't use timestamps, I use > > datetime fields to record punch in times and punch out times. I > > have this query that computes the amount of time between a punch in > > and punch out: > > > > select SEC_to_time(unix_timestamp(TTendTime) - > unix_times

Re: sum of time?

2005-10-24 Thread SGreen
<[EMAIL PROTECTED]> wrote on 10/24/2005 12:48:32 AM: > > I have a table doing time tracking. I don't use timestamps, I use > datetime fields to record punch in times and punch out times. I > have this query that computes the amount of time between a punch in > and punch out: > > select SEC_

Re: sum of time?

2005-10-24 Thread Dobromir Velev
I think there should be no problem to use the SUM() function - did you tried it like this select SEC_to_time(SUM(unix_timestamp(TTendTime) - unix_timestamp(TTstartTime))) as endtime FROM TimeTracking WHERE TTperson = 1 and date(TTstartTime) = '2005-10-19' HTH -- Dobromir Velev [EMAIL PROTECT

Re: Not operator in Select statements

2005-10-24 Thread Dotan Cohen
On 10/24/05, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote: > On Mon, 2005-10-24 at 06:09 +0200, Dotan Cohen wrote: > > How do I use a not operator in the WHERE clause? The obvious != and > > NOT didn't work for me. Something along the lines of: > > $query = "SELECT album, year FROM albums WHERE y

Re: String insertion

2005-10-24 Thread Andreas Steichardt
On Monday 24 October 2005 12:00, Bruce Martin wrote: > Can you force it to keep the space by escaping the space? > Something like: > > mysql> insert into test_strings set foo_1=' test\ ',foo_2=' test\ > ',foo_3=' test\ > ',foo_4=' test\ '; no...doesn't work...guess i will have to use text :| Kin

How Can I upgrade TPC-C performance test result for mysql

2005-10-24 Thread yang george
dear sir: we develop a TPC-C test progrom,this program use mysql ODBC3.51 to connect mysql server, and use microsoft sqlserver odbc to connect sqlserver2000. we suppose you are know well the TPC-C. we use InnoDB as mysql's store engine. follow is the os and hardware information: os : Wind

Re: source rpm for mysql 4.1.15

2005-10-24 Thread Joerg Bruehe
Hi Stever, all! Stever wrote: Is there any reason why there isn't a source rpm for mysql 4.1.15? A tool problem we have not yet fixed - no intention. I am not sure whether I can look into this today. I need to compile my own version since (annoyingly), there doesn't seem to be a binary rpm

Re: String insertion

2005-10-24 Thread Bruce Martin
Can you force it to keep the space by escaping the space? Something like: mysql> insert into test_strings set foo_1=' test\ ',foo_2=' test\ ',foo_3=' test\ ',foo_4=' test\ '; On Oct 24, 2005, at 5:34 AM, Andreas Steichardt wrote: Hi! I just hit something really strange which is either a bu

Re: String insertion

2005-10-24 Thread Alec . Cawley
Andreas Steichardt <[EMAIL PROTECTED]> wrote on 24/10/2005 10:34:08: > Hi! > > I just hit something really strange which is either a bug in MySQL or a > dumbness bug of me. > > I am trying to insert a string ending with a simple space and i really want > this space at the end of my string ;).

RE: failure notice

2005-10-24 Thread Mevershosting.nl
unscubcribe - Scanned for virus and spam -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

String insertion

2005-10-24 Thread Andreas Steichardt
Hi! I just hit something really strange which is either a bug in MySQL or a dumbness bug of me. I am trying to insert a string ending with a simple space and i really want this space at the end of my string ;). Unfortunately MySQL kills this whitespace when inserting into normal (var)char colu

column type problem

2005-10-24 Thread Szmutku Zoltán
Hi , I using MySql from Visual Foxpro cross over ODBC 3.51 . When I run a SELECT statement then the DECIMAL 15,0 MySql field arrived to Foxpro as Currency type with 4 digits decimals! The data not lost (15 digits long) but ,the decimals set to 4 and column type is Currency . I must always