RE: trouble with perl

2012-08-08 Thread DaWiz
I can't find his phone number to call him. -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Wednesday, August 08, 2012 12:22 PM To: elim@gmail.com Cc: mysql@lists.mysql.com Subject: RE: trouble with perl I know I had the same problem with PHP when mysql.dll

Re: order by numeric value

2010-04-27 Thread DaWiz
Try order by CAST(Balance as decimal(8,2)) asc; Cast will work in the order by. Glenn Vaughn - Original Message - From: "Keith Clark" To: Sent: Tuesday, April 27, 2010 3:52 PM Subject: order by numeric value I have the following statement: select chart_of_accounts.accountname

Re: Weeks

2009-12-29 Thread DaWiz
If all you want is the current week then the query is simple: SELECT * FROM orders where WEEK(orders.order_date) = WEEK(NOW()) The default is thje day starts on Sunday so the second value is not needed. WEEK(NOW(),7) is equivalent to WEEK(NOW(),0) - the valid values are 0 - 6. As for performa

Re: Is there a better way than this?

2009-12-28 Thread DaWiz
This will work: select distinct X from a as a where Y in(25) and not exists (select X from a as b where a.X = b.X and b.Y in(24)) - Original Message - From: "Tim Molter" To: Sent: Sunday, December 27, 2009 4:04 PM Subject: Is there a better way than this? I'm new to MySQL and I'm

Re: Query help

2009-12-13 Thread DaWiz
SELECT count(distinct trans_no) from SEARCHES WHERE comp_id=675 and result='o'; - Original Message - From: "Richard Reina" To: Cc: Sent: Sunday, December 13, 2009 11:36 AM Subject: Query help I was wondering if someone could lend a hand with the following query. I have table.

Re: Distinct max() and separate unique value

2009-10-20 Thread DaWiz
- Original Message - From: "Eric Anderson" To: Sent: Tuesday, October 20, 2009 4:05 PM Subject: Re: Distinct max() and separate unique value I'm trying to formulate a query on a Wordpress database that will give me the highest 'object_id' with the highest 'term_taxonomy_id', somethi

Re: Distinct max() and separate unique value

2009-10-20 Thread DaWiz
I would try: select max(object_id), term_taxonomy_id group by term_taxonomy_id order by term_taxonomy_id; max(column) returns a single value so distinct is not needed. The group by and order by should only have columns thaqt are displayed and that are not aggregate columns. - Original Mes

Fw: Weird problem with mysql_query

2008-09-10 Thread DaWiz
o a count of a specific column . mysql> select count(*) as 'Count' from logins GROUP BY dawiz I found my problem - it turned out to be a misconception on my part; I was using sprintf(buf,"%d", row[i]) if it was a numeric field - this was printing the address rather than the