Re: Advice on improving our current method

2003-06-02 Thread Becoming Digital
rd Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: "Daniel Crompton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, 01 June, 2003 14:00 Subject: Re: Advice on improving our current method > SET @rank:=5; > > UPDATE music SET

Re: Advice on improving our current method

2003-06-02 Thread Jeff Shapiro
er Make Chart # an Index > Martin > - Original Message - > From: "Don Read" <[EMAIL PROTECTED]> > To: "Daniel Crompton" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Sunday, June 01, 2003 1:54 PM > Subject: RE: Advice on im

Re: Advice on improving our current method

2003-06-02 Thread Martin Gainty
let the DB manage the sequencing before and after Make Chart # an Index Martin - Original Message - From: "Don Read" <[EMAIL PROTECTED]> To: "Daniel Crompton" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, June 01, 2003 1:54 PM Subject: RE:

Re: Advice on improving our current method

2003-06-02 Thread Jeff Shapiro
OK, here's a lengthy answer: I don't use MySQLCC, so I'm assuming that it has a way that you can enter and run SQL statements. Say our top 10 songs are: mysql [test]> SELECT * FROM musicchart ORDER BY chartnumber LIMIT 10; +-+--++

Re: Advice on improving our current method

2003-06-02 Thread Daniel Crompton
> SET @rank:=5; > > UPDATE music SET chart=0 WHERE [EMAIL PROTECTED]; > UPDATE music SET chart=chart+1 WHERE chart<@rank; > Thanks Don Unfortunately though i think we need to be able to make the changes in something we can see which is why we are using mysqlcc. With mysqlcc any of us can simply

RE: Advice on improving our current method

2003-06-02 Thread Don Read
On 01-Jun-2003 Daniel Crompton wrote: > > If for example we move song number 5 up to number 1, we then have to > manually change the > ' Chart Number' of all the ones below it, i.e. changing the old number > 1 to a number 2, > number 2 to a number 3, number 4 to a number 5 etc. > > Ideally

Re: Advice on improving our current method

2003-06-02 Thread Anthony Ward
Hi, I'm not to familiar with MySQL, but as far as I can seem, you might want to look at programming. I.e a program in C++ or Perl, or Visual Basic. Anthony -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Advice on improving our current method

2003-06-02 Thread Daniel Crompton
Can anyone advise how we should improve this method of updating our database. We have a Music chart it is a table with 3 columns Chart Number (ie, 1,2,3,4,5,6,7,8,9,10..) Artist (Artists Name) Title (Title of Song) Each week we login using mysql control center to make changes to the chart pos