which one is faster

2005-04-15 Thread DebugasRu
taken from the manual 3.6.2 The Row Holding the Maximum of a Certain Column which of the two queries will in general be faster: 1) SELECT article, dealer, price FROM shop WHERE price=(SELECT MAX(price) FROM shop); 2) SELECT article, dealer, price FROM shop ORDER BY price DESC LIMIT 1; or do

Re[2]: Optimising COUNT()

2005-03-16 Thread DebugasRu
-- Best regards, DebugasRumailto:[EMAIL PROTECTED] -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re[2]: wikipedia down, slashdot covering, mysql mentioned

2005-02-24 Thread DebugasRu
> At least this mailing list has progressed beyond "Why didn't they have > a UPS?", I suppose. :-) Yes that was my primary intend :) I'd really like people to care more about their data safety and more awareness about the problems involved. >> That didn't get rid of the race condition, it just mov

Re: wikipedia down, slashdot covering, mysql mentioned

2005-02-24 Thread DebugasRu
>> Many data centers do not allow customers to install their own UPS >> inside the rack. The questions is not whether they have (wish to have, can afford etc ) UPS or not, or if the OS is buggy ( fsync() function or others ), the problem is the database management system failed to ensure data int

Re: wikipedia down, slashdot covering, mysql mentioned

2005-02-22 Thread DebugasRu
SH> MySql is getting bashed pretty hard in some cases as apparently, in power SH> failures, you get database corruption. One can do a simple test start lengthy transaction and plug off the computer while the transaction is still in progress. Will your DBMS recover the errors after switching your c

Re[2]: Commercial Licensing Question

2004-10-20 Thread DebugasRu
Exactly: m> If you distribute an application (outside of the GPL) that requires MySQL to run m> then THE PERSON RECEIVING the application needs a commercial MySQL license. Whether the person in question gets the license from you or someone else is not your problem -- MySQL General Mailing List

Re[2]: Full Text Stopwords

2004-09-07 Thread DebugasRu
>> Sticking with the May example... I would like to be able to return >> results for only students named May or Maya, but not Mayra, Jessica-May, >> or Maylita. SELECT * FROM students WHERE first_name LIKE 'May_' _ in like means any single character % in like means arbitrary number of characters

Re: R: On the licensing once again

2004-08-11 Thread DebugasRu
LF> What if I sell a web site built using mysql? LF> Do I need a license on my web server? The conclusion i have made is that from end-user point of view his mySQL is running under multiple licencies simultaniously depending on what 3rd parties software makes request to it. To be more precise at a

On the licensing once again

2004-08-11 Thread DebugasRu
1) LM> If your software is licensed under either the GPL-compatible Free Software LM> License as defined by the Free Software Foundation or approved by OSI, then LM> use our GPL licensed version. 2) LM> If you distribute a proprietary application in any way, and you are not LM> licensing and distr

standard processing of metadata

2004-08-06 Thread DebugasRu
>> as far as i know, there is only 1 way to extract the foreign key relations >> from a table: "show create table ". >> Are there any others? MT> The "comments" column in SHOW TABLE STATUS is supposed MT> to list the FKs as well. since SQL89 standard lot of things got standartized but still the

Re[2]: updating table based on other table values

2004-08-05 Thread DebugasRu
PP> try: PP> update tmpISM,ta PP> set tmp.SUMA=tmp.SUMA-ta.SUMA PP> where (tmp.PID=ta.PID) and (tmp.PAJ=ta.PAJ) Does update work on more than one table ? thank you for your input but i've just resolved the problem as follows (i have had forgotten the EXISTS keyword for a moment): update tmp

updating table based on other table values

2004-08-05 Thread DebugasRu
Hello i can't figure out how to update the table tmpISM based on other table ta values. What i need i can intuitivly express as follows: update tmpISM set tmp.SUMA=tmp.SUMA-ta.SUMA where (tmp.PID=ta.PID) and (tmp.PAJ=ta.PAJ) index PID+PAJ is unique both for tmpISM and ta Any suggestions how the u

Re[2]: using mysql in commercial software

2004-08-03 Thread DebugasRu
since GPLed software can also be commercial i think the subject of the thread should probably read "using mysql in proprietary software." instead of "commercial" -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTEC

Re[2]: nested sets

2004-07-26 Thread DebugasRu
Hello Aman, Monday, July 26, 2004, 6:03:07 PM, you wrote: >> Hello, >> >> I have a question related to nested sets: >> >> On my website a user should be able to create subusers and give them the >> rights to add/change/delete subsites of the users website. If I remove one >> or more rights to a