Re: alias problem and odd warnings

2010-06-15 Thread Joerg Bruehe
Hi Brian, all! brian wrote: On 10-06-14 09:13 PM, brian wrote: [[...]] This not only gives an empty set, but also throws 171 warnings (more on that below). I've remove both the WHERE and GROUP BY clauses with no success. I've been staring at this for an hour now and can't see what the

Re: normalization

2010-06-15 Thread Peter Brawley
can u please tell me , 5NF with example, There's one in http://www.artfulsoftware.com/mysqlbook/sampler/mysqled1ch01.html PB - On 6/14/2010 10:51 PM, bharani kumar wrote: Frankly speaking , Am looking very simple example for 5NF , Even i looked the lot of site , in most of the site

query help

2010-06-15 Thread Richard Reina
I have a table similar to this: - |transactions | |ID |DATE |EMPLOYEE| |234 |2010-01-05| 345| |328 |2010-04-05| 344| |239 |2010-01-10| 344| Is there a way to query such a table to give the days of the year that employee 344 did not

RE: query help

2010-06-15 Thread Gavin Towey
Hi Richard, This is a LEFT JOIN, but with only one table you may be wondering what to join. Typically you'll have to create a new table that contains all the dates in the range you want to check. Then you left join your transaction table, and all the rows from your dates table that don't

RE: query help

2010-06-15 Thread Jay Blanchard
[snip] I have a table similar to this: - |transactions | |ID |DATE |EMPLOYEE| |234 |2010-01-05| 345| |328 |2010-04-05| 344| |239 |2010-01-10| 344| Is there a way to query such a table to give the days of the year that employee 344 did

Re: Strange GREATEST() result in 5.0.32

2010-06-15 Thread Baron Schwartz
Steven, On Tue, Jun 1, 2010 at 11:15 AM, Steven Staples sstap...@mnsi.net wrote: Hello all I have a stored procedure that probably does a lot more than it should, but it works fine on my test server (which is running 5.0.67).   When I moved it over to the production server, (which is running

Re: [PHP] SQL Syntax

2010-06-15 Thread Daniel Brown
[Top-post.] You'll probably have much better luck on the MySQL General list. CC'ed on this email. On Tue, Jun 15, 2010 at 20:58, Jan Reiter the-fal...@gmx.net wrote: Hi folks! I'm kind of ashamed to ask a question, as I haven't followed this list very much lately. This isn't