displaying a specific row within a group by

2009-04-09 Thread Andy Sy
Consider the ff. table: ++--+--+ | game | rank | date | ++--+--+ | GTA| 11 | 20081001 | ++--+--+ | SPORE | 1 | 20081103 | ++--+--+ | SPORE | 2 | 20091001 | ++--+--+ | SINSOL |

Index effectivity for a 2-valued field (was Re: Should I use an index in this case?)

2006-11-28 Thread Andy Sy
[EMAIL PROTECTED] wrote: Hi Andy, Two questions for you: 1) Why store so many repeatable data in the same table? I mean you needn't to store purchases/previews for all records. You can choose MySql SET datatype, or you can choose another table to store the action types and let the original

Should I use an index in this case?

2006-11-27 Thread Andy Sy
I have a table that is roughly like the below: id - PK, autoincremented integer name - varchar visit- timestamp action - char(10) Now, 'action', while a char(10), is only ever intended to contain two possible values, purchase and preview. The table might end up containing tens

Is the general MySQL list available via NNTP?

2002-06-13 Thread Andy Sy
The volume on this list is so big that it desperately needs to be available as a newsgroup. I was able to find one on Google groups as mailing.database.mysql but does anyone know of a publicly available NNTP server which carries this?

Why does Key==Mul in DESCRIBE TABLE for unique key?

2002-06-13 Thread Andy Sy
mysql CREATE TABLE X (FLD1 INT UNIQUE); Query OK, 0 rows affected (0.05 sec) mysql DESCRIBE X; +---+-+--+-+-+---+ | Field | Type| Null | Key | Default | Extra | +---+-+--+-+-+---+ | FLD1 | int(11) | YES | MUL | NULL|

Re: Why does Key==Mul in DESCRIBE TABLE for unique key?

2002-06-13 Thread Andy Sy
- Original Message - From: Paul DuBois [EMAIL PROTECTED] To: Andy Sy [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, June 14, 2002 2:45 AM Subject: Re: Why does Key==Mul in DESCRIBE TABLE for unique key? At 2:03 +0800 6/14/02, Andy Sy wrote: mysql CREATE TABLE X (FLD1 INT UNIQUE

Re: Help needed with JOIN on 3 tables

2002-06-13 Thread Andy Sy
Strange, there shouldn't be any difference between MySQL query behaviour under Win2K or Linux or BSD or Win98. It could be more to do with the version of MySQL you are using. - Original Message - From: bob [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 14, 2002 3:18 AM

Re: auto-increment across multiple tables / Atomicity of update statements

2002-06-12 Thread Andy Sy
In MySQL, I want to use an auto-incrementing value that works across multiple tables. For example I have 3 tables forumA, forumB, forumC, each of which has a primary key field called 'msgnum'. However, if I declare 'msgnum' auto_increment, 'msgnum' will not be unique across the 3 tables.

Auto-increment across multiple tables / Atomicity of update statements

2002-06-12 Thread Andy Sy
In MySQL, I want to use an auto-incrementing value that works across multiple tables. For example I have 3 tables forumA, forumB, forumC, each of which has a primary key field called 'msgnum'. However, if I declare 'msgnum' auto_increment, 'msgnum' will not be unique across the 3 tables.