Re: Mysql, Need extra Cash? - Get Paid in 48hrs - Home Reps Needed.Com home representatives are required!

2003-03-18 Thread John Klein
On Tue, 18 Feb 2003, Virdhagriswaran SHIBATA wrote: > Mysql, your immediate help is needed. We are a .com > corporation that is growing fast (over 1000% per year). We simply cannot > keep up with demand. Remind me again why we bother with a spam filter? -- John Klein

Re: Any way to make a "top ten" query?

2002-06-13 Thread John Klein
FROM mountain ORDER BY height desc LIMIT 10; -- John Klein, Database Applications Developer | Omnia Mutantur, Systems Group - Harvard Law School | Nihil Interit - Before posting, please check: http://www.mysql.com/ma

Re: time zones?

2002-04-12 Thread John Klein
cause it's more useful in Perl-land to have an epoch time value. It might be worthwile to have some way of retreiving a timestamp as an epoch value in addition to other fifty ways you can currently retrieve it. (If there already is a way, I'd be thrilled to hear about it.) -- John Klei

Re: A small SQL query problem

2002-04-12 Thread John Klein
d,a.title,a.date,a.summary,COUNT(c.id) AS comments FROM articles AS a LEFT JOIN article_comments AS c ON a.article_id = c.article_id GROUP BY a.article_id,a.title,a.date,a.summary ORDER BY a.date DESC LIMIT 3 -- John Klein, Database Applications Developer

Re: is there a MySQL 'field contains' function

2002-04-12 Thread John Klein
ram, processor etc...? Yes. You should do this anyway if you think you're going to be searching by those a lot, since it'll be more efficient that way. (In fact, you should make another table for computer types, colors, processor types, etc, and join the two together.) -- John Klein, D

Re: Char vs Varchar field types

2002-04-10 Thread John Klein
be exactly the same length. And it would be more appropriate to store the name of the hardware component as a varchar, since that would be a different length for each record. Also: query, query, sql. Blasted filter. -- John Klein, Database Applications Developer | Omnia Mutantur, Systems

Re: Running mysql on a certain IP

2002-04-08 Thread John Klein
to apply only to one server, put it in that server's data area (e.g. /usr/local/mysql/var/my.cnf). So basically you'd have an /etc/my.cnf for global options and then a couple of my.cnfs for the two seperate servers in the appropriate data areas. -- John Klein, Database Applications Develop

Re: Tricky Query...

2002-04-05 Thread John Klein
fake DB like yours and experiment with it. ... ... Here we go, this seems to work: SELECT t1.clientid, max(t1.revision) as maxrev, t2.revision, t2.name, t2.address FROM foobar t1, foobar t2 WHERE t1.clientid=t2.clientid GROUP BY clientid, revision HAVING maxrev=revision; See if that helps any. -- J

Re: MySQL Power ?

2002-04-05 Thread John Klein
irements. Is mySQL too basic > for these capabilities? > > Pros and Cons, please. This should help settle an internal debate that is > raging! Something from the MySQL front page: http://www.eweek.com/article/0,3658,s=708&a=23115,00.asp -- John Klein, Database Applications Dev

Re: Query help

2002-04-04 Thread John Klein
the current behavior, though, try: select [fields] from [table] where concat([firstname],[lastname]) is [value]; -- John Klein, Database Applications Developer | Omnia Mutantur, Systems Group - Harvard Law School | Nihil Interit

Re: Keeping MySQL Databases Heathly

2002-04-04 Thread John Klein
->[1]\""; } print STATFILE "\n"; close (STATFILE); $dbh->disconnect; ## END sub makeheader { my $outstring = '"Year","Month","Day","Hour","Minute"'; my $sth = $dbh->prepare('show status');

Redefining data area

2002-04-03 Thread John Klein
I don't have to worry about someone sneakily starting MySQL without safe_mysqld (with terrifying and sexy results). -- John Klein, Database Applications Developer | Omnia Mutantur, Systems Group - Harvard Law School