Re: User variables + SUM + GROUP BY = strange behavior

2004-04-16 Thread Andrew Presley
Not sure on how exactly variables work in MySQL but I do know that according to ANSI SQL group bys are done before other things in the query. So your query would perform the group by then it would do the actual select. This could be one reason for strange results. Thanks, Andrew From: Vadim

RE: Learner Here Getting Frustraighted

2004-04-08 Thread Andrew Presley
For starters look at pet.petName=petcolor.petName Try changing it to. pet.petName=color.petName You are referencing the color table as petcolor. Thanks, Andrew From: Barry . [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Learner Here Getting Frustraighted Date: Thu, 08 Apr 2004 14:18:10 + Hi

RE: autoincrement column

2004-04-08 Thread Andrew Presley
Keep in mind you can't use truncate in a transaction though. I experienced this problem recently when wanting to delete an entire table and reset my auto increment values. While keeping it in a transaction. From: Dathan Vance Pattishall [EMAIL PROTECTED] To: 'Arthur Radulescu' [EMAIL