<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - MySQL Query Browser</title>
        <description>Forum for MySQL Query Browser</description>
        <link>http://forums.mysql.com/list.php?108</link>
        <lastBuildDate>Tue, 24 Nov 2009 20:27:54 +0000</lastBuildDate>
        <generator>Phorum 5.2.1-alpha</generator>
        <item>
            <guid>http://forums.mysql.com/read.php?108,292678,292678#msg-292678</guid>
            <title>auto increment by -1 (1 reply)</title>
            <link>http://forums.mysql.com/read.php?108,292678,292678#msg-292678</link>
            <description><![CDATA[ Hi Guys,<br />
<br />
How do you auto increment by -1 in MySQL?<br />
<br />
I'm trying to find MySql syntax of the following statement:<br />
<br />
GENERATED BY DEFAULT AS IDENTITY(START WITH -1, INCREMENT BY -1)<br />
<br />
<br />
I can do AUTO_INCREMENT=-1 in create statement, but how do I increment by -1. So the next number would be -2 instead of 0.<br />
<br />
BTW, I'm using MyISAM engine.<br />
<br />
Thanks,<br />
Jig]]></description>
            <dc:creator>Jig Sheth</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Tue, 24 Nov 2009 19:41:24 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,291798,291798#msg-291798</guid>
            <title>MySQL Workbench 5.2.8 (BETA 1): Upgrade from MySQL Administrator, MySQL Query Browser (no replies)</title>
            <link>http://forums.mysql.com/read.php?108,291798,291798#msg-291798</link>
            <description><![CDATA[ WB 5.2.8 includes: <br />
- Model (upgrade from DBDesigner) <br />
- Query (upgrade from MySQL Query Browser) <br />
- Admin (upgrade from MySQL Administrator) <br />
- SSH-Tunnel (new) <br />
<br />
Quick-Start Tutorial: <br />
<a rel="nofollow"  href="http://wb.mysql.com/?p=406">http://wb.mysql.com/?p=406</a> <br />
<br />
Download WB 5.2: <br />
<a rel="nofollow"  href="http://dev.mysql.com/downloads/workbench/">http://dev.mysql.com/downloads/workbench/</a>]]></description>
            <dc:creator>Edwin DeSouza</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Wed, 18 Nov 2009 19:47:23 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,291378,291378#msg-291378</guid>
            <title>MySQL join and delete (3 replies)</title>
            <link>http://forums.mysql.com/read.php?108,291378,291378#msg-291378</link>
            <description><![CDATA[ Completely new - so apologise in advance if I am in the wrong forum list! <br />
<br />
I have an issue where I have two tables and I need to delete all entries that are set to inactive (itStatus = 2) in one table and then delete its associating idProducts in another table (whether active or inactive). I have cobbled together something that I thought would at least select what I am after first. <br />
<br />
SELECT FROM table1 MerchantProduct INNER JOIN table2 Product ON idProduct = idProduct<br />
WHERE itStatus like 2<br />
<br />
Tips and advice for a confused queryer would be appreciated.]]></description>
            <dc:creator>David Hoffmann</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Tue, 17 Nov 2009 12:34:21 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,289969,289969#msg-289969</guid>
            <title>Is Query Browser secure accross the Internet? (1 reply)</title>
            <link>http://forums.mysql.com/read.php?108,289969,289969#msg-289969</link>
            <description><![CDATA[ I can't find anything in the docs about the protocol Query Browser uses to communicate.  I'd like to suggest it to hosting clients you want access to their databases, but only if its secure.  At the very least, is the log-in encrypted?]]></description>
            <dc:creator>Gary Cornelisse</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Sat, 07 Nov 2009 01:15:36 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,289630,289630#msg-289630</guid>
            <title>need help in dynamic table query (no replies)</title>
            <link>http://forums.mysql.com/read.php?108,289630,289630#msg-289630</link>
            <description><![CDATA[ Hi there,<br />
i need help in dynamic table query.<br />
The situation is as follows,<br />
<br />
There are two tables <br />
1.product_details<br />
2.attribute_set<br />
<br />
&quot;product_details&quot; structure:<br />
product_id<br />
attribute_set_id<br />
created_date<br />
is_active<br />
<br />
&quot;attribute_set&quot; structure:<br />
id<br />
name<br />
<br />
Example records of &quot;product_details&quot;:<br />
product_id = 1<br />
attribute_set_id = 1<br />
created_date = &quot;2009-10-30&quot;<br />
is_active = 1<br />
<br />
<br />
Example records of &quot;attribute_set&quot; :<br />
id = 1<br />
name = 'attribute_default&quot;  // this was another table name<br />
<br />
&quot;attribute_default&quot; is the another table name, the structure of the table is as follows,<br />
product_id = 1<br />
product_name = 'product1'<br />
price = '200'<br />
<br />
i want to fetch the records of product_id from the respective table (attribute_default) in attribute_set using attribute_set_id in main product_details table.<br />
<br />
i want query like this.<br />
SELECT p.* FROM `product_details` as p LEFT JOIN (select name from attribute_set as ats WHERE ats.attribute_set_id=1) as ctb ON ctb.product_id=p.product_id<br />
<br />
i am stuck here..please anybody help me..<br />
<br />
sorry for my bad english..<br />
<br />
thanks,<br />
Palanisamy]]></description>
            <dc:creator>Palanisamy E</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Thu, 05 Nov 2009 07:13:45 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,289502,289502#msg-289502</guid>
            <title>Stored procedure with strcmp (7 replies)</title>
            <link>http://forums.mysql.com/read.php?108,289502,289502#msg-289502</link>
            <description><![CDATA[ create procedure priya(in pa varchar(30))<br />
begin<br />
if((STRCMP(pa,'Detailed')) = 0)) then<br />
select product,weight from cg_production1 order by product;<br />
else<br />
select product,sum(weight) from cg_production1 group by product;<br />
end if;<br />
end<br />
<br />
What's wrong with this stored procedure?? giving error in line 3<br />
<br />
Thanks]]></description>
            <dc:creator>Shivapriya Nagaraj</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Thu, 05 Nov 2009 03:04:54 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,289498,289498#msg-289498</guid>
            <title>Keeping layout of a view I wote (no replies)</title>
            <link>http://forums.mysql.com/read.php?108,289498,289498#msg-289498</link>
            <description><![CDATA[ Hi there, <br />
<br />
I am new to MySQl but have a few years experience using SQL Server. Basically I am wondering if there is a way to save the layout that I write a view in. <br />
For example when I write: <br />
<br />
CREATE VIEW currentresources_erm<br />
AS<br />
SELECT r.TGI, r.Forename, r.Surname, r.StartDate, o.OrganisationName AS 'Organisation', d.Discipline, l.Location, t.ResourceType, r.EmployeeID<br />
FROM resources r INNER JOIN organisation o ON<br />
r.Organisation = o.OrgUId INNER JOIN disciplines d ON<br />
r.Discipline = d.DisciplineID INNER JOIN resourcelocation l ON<br />
r.Location = l.LocId INNER JOIN resourcetype t ON<br />
r.ResourceType = t.TypeID<br />
WHERE r.ERMUser = 'Y' AND r.CurrentEmployee = 'Y'<br />
<br />
This is accepted fine but if I go to edit this view it is shown as just one long line which has also added a lot of brackets which makes the query very hard to read. (see below) <br />
Surely this is possible because when I write a stored procedure it saves the layout I write it in. Does anyone know if this is possible?<br />
<br />
Thanks in Advance<br />
Neil<br />
<br />
This is the one line that it is turned into:<br />
CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=``@`localhost` SQL SECURITY DEFINER VIEW `currentresources_erm` AS select `r`.`TGI` AS `TGI`,`r`.`Forename` AS `Forename`,`r`.`Surname` AS `Surname`,`r`.`StartDate` AS `StartDate`,`o`.`OrganisationName` AS `Organisation`,`d`.`Discipline` AS `Discipline`,`l`.`Location` AS `Location`,`t`.`ResourceType` AS `ResourceType`,`r`.`EmployeeId` AS `EmployeeID` from ((((`resources` `r` join `organisation` `o` on((`r`.`Organisation` = `o`.`OrgUId`))) join `disciplines` `d` on((`r`.`Discipline` = `d`.`DisciplineID`))) join `resourcelocation` `l` on((`r`.`Location` = `l`.`LocId`))) join `resourcetype` `t` on((`r`.`ResourceType` = `t`.`TypeID`))) where ((`r`.`ERMUser` = 'Y') and (`r`.`CurrentEmployee` = 'Y'));]]></description>
            <dc:creator>Neil Sharkie</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Wed, 04 Nov 2009 16:06:07 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,289052,289052#msg-289052</guid>
            <title>advanced join if posible (no replies)</title>
            <link>http://forums.mysql.com/read.php?108,289052,289052#msg-289052</link>
            <description><![CDATA[ Hello all<br />
<br />
    I have a strange question, i don't think it could be done as far as i found googling...but it is worth asking :) .<br />
<br />
   Can you join 2 tables located in 2 difrent databases, that are located on 2 diferent servers (like Oracle &quot;database link&quot; concept <a rel="nofollow"  href="http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_5005.htm">http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_5005.htm</a>), not using replication.<br />
<br />
  Thank you]]></description>
            <dc:creator>Maris Radu</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Mon, 02 Nov 2009 10:15:11 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,288877,288877#msg-288877</guid>
            <title>Update on Char(1) is causing problem (1 reply)</title>
            <link>http://forums.mysql.com/read.php?108,288877,288877#msg-288877</link>
            <description><![CDATA[ Hi All,<br />
<br />
I have one table with few cols along with one ACTIVE_FLAG CHAR(1) NOT NULL.<br />
And I am trying to update above table as per below query.<br />
<br />
<br />
UPDATE TEST<br />
SET ACTIVE_FLAG = 'P'<br />
AND LAST_UPDATED_DT = CURRENT_TIMESTAMP<br />
WHERE (PRODUCT_ID,SEQ_NO,USER_ID) <br />
NOT IN (SELECT DISTINCT PRODUCT_ID,SEQ_NO,USER_ID FROM TEST_FCT WHERE ACTIVE_FLAG = 'Y') <br />
AND  TEST.AUTO_SEQ_NO IN (SELECT AUTO_SEQ_NO FROM TEMP GROUP BY PRODUCT_ID,SEQ_NO,USER_ID)<br />
AND ACTIVE_FLAG = 'Y'<br />
<br />
As per query active_flag should be 'P' if it satisfy my where clause.<br />
But this update is making ACTIVE_FLAG = '0'.<br />
<br />
Please suggest me that where I am doing wrong.<br />
<br />
And yes I am doing this from PHP Admin.<br />
<br />
<br />
Regards,<br />
Subhash]]></description>
            <dc:creator>Subhash Gander</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Sat, 31 Oct 2009 21:02:32 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,288383,288383#msg-288383</guid>
            <title>Export table data to another DB table using SP (no replies)</title>
            <link>http://forums.mysql.com/read.php?108,288383,288383#msg-288383</link>
            <description><![CDATA[ Hi All<br />
<br />
I need to export table data from on one DB Server (mysql on Linux) using SP to the destination DB Server (MySQL on Linux). This will run once in a day using cron job. Of course databse connectivity require with this set up. <br />
<br />
I am new for this and i need to do this using scripting rather any third party or GUI tool.<br />
<br />
<br />
Please help...Thanks in advance.<br />
<br />
sonny]]></description>
            <dc:creator>sonny singh</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Wed, 28 Oct 2009 18:58:37 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,288326,288326#msg-288326</guid>
            <title>Query Browser Shaded Input Box (2 replies)</title>
            <link>http://forums.mysql.com/read.php?108,288326,288326#msg-288326</link>
            <description><![CDATA[ Trying to run a query and the input box becomes shaded after pasting script. Why is this and how can I get rid of the shading? I know this is ridiculous but I can't figure it out. Somebody please help! I can't do a damn thing until this is cleared up.]]></description>
            <dc:creator>Frank Fox</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Wed, 28 Oct 2009 17:06:56 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,288290,288290#msg-288290</guid>
            <title>Non-committing commit! (2 replies)</title>
            <link>http://forums.mysql.com/read.php?108,288290,288290#msg-288290</link>
            <description><![CDATA[ Hi<br />
<br />
I'm hoping one of the gurus could please give me a free clue as to what I'm doing wrong.<br />
<br />
While I am new to MySQL I am not new to databases (dBIV -&gt; Oracle) but this is one of the oddest things I've seen. In fact, there's two of us here who are equally puzzled.<br />
<br />
Using Query Browser I am executing the following query:<br />
<br />
update bp_test.contacts c set company =<br />
  (select l.businessname from survey.leads l<br />
    where c.data_source_id = 3 and c.old_id = l.id);<br />
<br />
Nice simple update statement. I start a transaction, execute, then commit. If I run a query to view the changes I find that all has worked. I then change the c.data_source_id value to 7, start a transaction, run the update and commit. If I now view the table I find that the values for 7 have changed as expected, but the values for 3 have gone to 'null'.<br />
<br />
If I now change c.data_source_id back to 3 and execute again, then all the values for 7 have gone to null.<br />
<br />
I know I'm doing *something* wrong, but I can't for the life of me figure out what it is.<br />
<br />
All advice will be most gratefully received.<br />
<br />
TIA<br />
<br />
Ian]]></description>
            <dc:creator>Ian Jennings</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Wed, 28 Oct 2009 12:37:54 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,287341,287341#msg-287341</guid>
            <title>MySQL Workbench 5.2.6 (ALPHA): SSH-Tunnel, Administrator, Query Browser (no replies)</title>
            <link>http://forums.mysql.com/read.php?108,287341,287341#msg-287341</link>
            <description><![CDATA[ WB 5.2.6 now includes: <br />
- MySQL Query Browser (Feature Complete) <br />
- SSH-Tunnel (Feature Complete) <br />
- MySQL Administrator (Not Complete yet) <br />
<br />
We need your help, testing &amp; feedback! <br />
<br />
Download WB 5.2: <br />
<a rel="nofollow"  href="http://dev.mysql.com/downloads/workbench/">http://dev.mysql.com/downloads/workbench/</a> <br />
<br />
MySQLWorkbench: SSH-Tunnel <br />
<a rel="nofollow"  href="http://wb.mysql.com/?p=370">http://wb.mysql.com/?p=370</a> <br />
<br />
MySQL Workbench: Administrator <br />
<a rel="nofollow"  href="http://wb.mysql.com/?p=374">http://wb.mysql.com/?p=374</a> <br />
<br />
MySQL Workbench 5.2: Features of MySQL Query Browser <br />
<a rel="nofollow"  href="http://dev.mysql.com/workbench/?p=229">http://dev.mysql.com/workbench/?p=229</a> <br />
<br />
MySQL Workbench 5.2: QuickTour of Query Browser <br />
<a rel="nofollow"  href="http://dev.mysql.com/workbench/?p=230">http://dev.mysql.com/workbench/?p=230</a>]]></description>
            <dc:creator>Edwin DeSouza</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Wed, 21 Oct 2009 21:25:10 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,286570,286570#msg-286570</guid>
            <title>error in create table command (3 replies)</title>
            <link>http://forums.mysql.com/read.php?108,286570,286570#msg-286570</link>
            <description><![CDATA[ Hi all <br />
<br />
<br />
i am new to mysql ans linux .<br />
<br />
I am using mysql server on red hat 5.<br />
I want to create a table, and i am using mysql query browser 1.2.12 on red hat 5 OS.<br />
<br />
the query generated from query browse is <br />
<br />
CREATE TABLE `newdatabase`.`users` (<br />
  `id` VARCHAR  NOT NULL,<br />
  `userid` VARCHAR  NOT NULL DEFAULT NULL,<br />
  `password` VARCHAR  NOT NULL,<br />
  PRIMARY KEY (`id`)<br />
)<br />
ENGINE = MyISAM;<br />
<br />
<br />
when i tried to exucute this mmand i got the following error message<br />
<br />
<br />
<br />
Error executing SQL commands to create table.<br />
MySQL Error Nr. 1064<br />
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NOT NULL,<br />
  `userid` VARCHAR  NOT NULL DEFAULT NULL,<br />
  `password` VARCHAR  NOT N' at line 2<br />
<br />
<br />
<br />
plese help me ,<br />
<br />
i don't know what is problem<br />
<br />
<br />
Thanks]]></description>
            <dc:creator>Gunwant walbe</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Thu, 29 Oct 2009 12:27:53 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,286510,286510#msg-286510</guid>
            <title>Mysql Query (no replies)</title>
            <link>http://forums.mysql.com/read.php?108,286510,286510#msg-286510</link>
            <description><![CDATA[ Im bit confused with a query<br />
<br />
I have a database table as mentioned below<br />
<br />
  name stat date<br />
1) tom    1    2009-10-16 11:58:31<br />
2) tom    1    2009-10-16 11:59:31<br />
3 )tom    1    2009-10-16 13:05:11<br />
4) tom    0    2009-10-16 13:06:11<br />
5) tom    0    2009-10-16 13:07:11<br />
6) tom    2    2009-10-16 13:08:11<br />
7) tom    1    2009-10-16 13:09:11<br />
8) tom    0    2009-10-16 13:10:11<br />
9) tom    0    2009-10-16 13:11:11<br />
10) tom    1    2009-10-16 13:12:11<br />
11) tom    1   2009-10-16 13:13:11<br />
<br />
i like to obtain the rows like  1),4),6),7),8),10) in single query<br />
<br />
Result Should be <br />
<br />
1) tom    1    2009-10-16 11:58:31<br />
4) tom    0    2009-10-16 13:06:11<br />
6) tom    2    2009-10-16 13:08:11<br />
7) tom    1    2009-10-16 13:09:11<br />
8) tom    0    2009-10-16 13:10:11<br />
10) tom    1    2009-10-16 13:12:11<br />
<br />
if you look the rows i mentioned those are first row before stat is changed.<br />
<br />
i want to get the first occurence of datetime field  when a stat is changed<br />
Can any one help me.]]></description>
            <dc:creator>Thomas  Alexander</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Fri, 16 Oct 2009 10:05:04 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,286310,286310#msg-286310</guid>
            <title>how to show consecutive numbers from single query (5 replies)</title>
            <link>http://forums.mysql.com/read.php?108,286310,286310#msg-286310</link>
            <description><![CDATA[ Can some one explain me how to write MYSQL Query to display Consecutive Number.<br />
<br />
My table has the field &quot;id&quot;, &quot;Chap&quot;, &quot;date&quot; which contain data like:<br />
<br />
ID    Chap     Date<br />
1     1        01-sep-2009<br />
2     2        01-sep-2009<br />
3     3        01-sep-2009<br />
4     4        01-sep-2009<br />
5     7        01-sep-2009<br />
6     8        01-sep-2009<br />
7     10       02-sep-2009<br />
8     11       02-sep-2009<br />
9     12       02-sep-2009<br />
<br />
<br />
Desire output:<br />
1-4, 7, 8      01-sep-2009<br />
10-12          02-sep-2009<br />
<br />
<br />
Hyphen and comma is more important to generate.<br />
<br />
Thanks in Advance]]></description>
            <dc:creator>Bhavinder Singh</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Fri, 16 Oct 2009 10:51:30 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,285985,285985#msg-285985</guid>
            <title>GRANT acting up with stored routines (no replies)</title>
            <link>http://forums.mysql.com/read.php?108,285985,285985#msg-285985</link>
            <description><![CDATA[ Hi, All,<br />
<br />
It seems I have a problem either with QB or GRANT, so I'm not sure I'm posting in the right forum, but didn't find a more fitting place...<br />
<br />
I have a database with stored routines, which I created using 'root'@'localhost'. Then I decided to create a dedicated admin user for the db. I used CREATE USER to create 'db_admin'@'localhost', then granted it permission in the db using GRANT ALL ON db.* TO 'db_admin'@'localhost'.<br />
<br />
At first, everything seemed to be fine. I was able to access tables and use stored routines. However, I noticed that when I try to open a stored routine for editing from the Schemata column of QB, it will always open up an empty routine shell, which contains only this:<br />
<br />
DELIMITER $$<br />
<br />
DROP PROCEDURE IF EXISTS `dbname`.`RoutineName` $$<br />
 $$<br />
<br />
DELIMITER ;<br />
<br />
So the routine is not available. QB also fails to display routine parameters and return types in the Schemata column. It seems as if db_admin only had execute rights on routines.<br />
<br />
Any ideas how I can give it all rights? Isn't GRANT ALL supposed to grant those rights?]]></description>
            <dc:creator>András Lukács</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Tue, 13 Oct 2009 16:19:43 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,285809,285809#msg-285809</guid>
            <title>Query Browser slow after upgrading to 5.1 (no replies)</title>
            <link>http://forums.mysql.com/read.php?108,285809,285809#msg-285809</link>
            <description><![CDATA[ We upgraded one of our servers from 5.0.67 to 5.1.37 back in August and after that we have noticed that queries using the Query Browser are extremely slow if you run queries with more than just a few rows in result when running it on my workstation. Running on the server though, results are returned in normal speed. Have updated to 5.1.39 now but it didn't make any difference.<br />
<br />
The server is running Windows 2000 and I am using Windows Vista Home Premium 64-bit on my workstation, running over a 5 MBit Internet connection. (We have another server running Windows 2003 and 5.0.67 and I still get the normal response times from that one.)<br />
<br />
Any tips for what to do would be appreciated!]]></description>
            <dc:creator>Roland Jonsson</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Mon, 12 Oct 2009 15:59:27 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,285524,285524#msg-285524</guid>
            <title>Problem calculating query for team standings (3 replies)</title>
            <link>http://forums.mysql.com/read.php?108,285524,285524#msg-285524</link>
            <description><![CDATA[ I have a simple mySQL database for a pool league:<br />
TABLE name='standings'<br />
FIELD names='Team', 'Wins', 'Losses'<br />
There are 4 players on each team.  Round robin play of 16 games.  The scores are entered each week into a form on our website which posts the results to the database. So each team is listed in the database for every week the form is submitted. With 20 weeks of play, each Team and their Wins &amp; Losses will be in the database 20 times. That's the reason for the SUM's on the Wins &amp; Losses.<br />
The phrase games behind or games back (often abbreviated as GB in tables), is a common way to reflect the gap between a leading team and another team in a sports league, conference, or division. It is determined by adding the absolute difference in wins between a leading team and the team of interest to the absolute difference in losses between the two teams, and dividing by two. The leading team itself is always zero games behind. Usually this is indicated in tables by a dash rather than a zero.<br />
<br />
The code here creates what I want but with one problem; the GB (games behind) produces NULL for every row. What is wrong??<br />
SELECT TEAM,<br />
SUM(wins) AS W,<br />
SUM(losses) AS L,<br />
TRUNCATE (SUM(wins)/((SUM(wins)+SUM(losses))),3) AS PCT,<br />
IF (@WL_diff - (wins)-(losses) = 0,'-',(@WL_diff - (wins)-(losses))) /2 AS GB<br />
FROM standings<br />
GROUP BY TEAM<br />
ORDER BY SUM(wins)-SUM(losses) DESC, PCT DESC<br />
LIMIT 0,500<br />
-----------------------------------------------------------------------------------<br />
TEAM......................W....L....PCT.....GB<br />
Cedar Creek 2............24....8...0.750...NULL<br />
Cedar Creek 1............21...11...0.656...NULL<br />
Champs...................18...14...0.562...NULL<br />
Fondas...................15...17...0.468...NULL<br />
Sportsmans 2.............13...19...0.406...NULL<br />
Hueys....................12...20...0.375...NULL<br />
Sportsmans 1.............10...22...0.312...NULL<br />
Bristol Ridge Expansion...9...23...0.281...NULL<br />
Bristol Ridge 1...........6...26...0.187...NULL<br />
Bristol Ridge Maynards....3...29...0.093...NULL<br />
<br />
<br />
The GB column should look like this:<br />
<br />
GB<br />
 -<br />
 3<br />
 6<br />
 9<br />
11<br />
12<br />
14<br />
15<br />
18<br />
21]]></description>
            <dc:creator>Tom Gibson</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Fri, 09 Oct 2009 22:40:44 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,285199,285199#msg-285199</guid>
            <title>A bit complex for me.. (1 reply)</title>
            <link>http://forums.mysql.com/read.php?108,285199,285199#msg-285199</link>
            <description><![CDATA[ I have two tables in my db .<br />
<br />
articles<br />
--ARTICLE_ID<br />
--TITLE<br />
--DESCRIPTION<br />
--CONTENT<br />
<br />
galeries<br />
--ARTICLE_ID<br />
--GALLERY_ID<br />
--CONTENT<br />
<br />
I need to fulltext search these two tables. The ARTICLE_ID is the common key for both. The CONTENT in articles is empty when the article is a galery, so in that case for this ARTICLE_ID the content is stored in galeries table and can have multiple instances with the same ARTICLE_ID.<br />
The search keyword may be contained in TITLE,DESCRIPTION and CONTENT fields.<br />
<br />
I'm stack with this and I can't think a valid query.<br />
<br />
Any help will be apreciated.<br />
Thanks in advance.]]></description>
            <dc:creator>John M</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Tue, 13 Oct 2009 21:04:37 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,285107,285107#msg-285107</guid>
            <title>MySQL Workbench 5.2.4 (ALPHA): SSH-Tunnel, Administrator, Query Browser. (no replies)</title>
            <link>http://forums.mysql.com/read.php?108,285107,285107#msg-285107</link>
            <description><![CDATA[ WB 5.2.4 now includes: <br />
- MySQL Query Browser (Feature Complete) <br />
- SSH-Tunnel (Feature Complete) <br />
- MySQL Administrator (Not Complete yet) <br />
<br />
We need your help, testing &amp; feedback! <br />
<br />
Download WB 5.2.4: <br />
<a rel="nofollow"  href="http://dev.mysql.com/downloads/workbench/">http://dev.mysql.com/downloads/workbench/</a> <br />
<br />
MySQLWorkbench: SSH-Tunnel <br />
<a rel="nofollow"  href="http://wb.mysql.com/?p=370">http://wb.mysql.com/?p=370</a> <br />
<br />
MySQL Workbench: Administrator <br />
<a rel="nofollow"  href="http://wb.mysql.com/?p=374">http://wb.mysql.com/?p=374</a> <br />
<br />
MySQL Workbench 5.2: Features of MySQL Query Browser <br />
<a rel="nofollow"  href="http://dev.mysql.com/workbench/?p=229">http://dev.mysql.com/workbench/?p=229</a> <br />
<br />
MySQL Workbench 5.2: QuickTour of Query Browser <br />
<a rel="nofollow"  href="http://dev.mysql.com/workbench/?p=230">http://dev.mysql.com/workbench/?p=230</a>]]></description>
            <dc:creator>Edwin DeSouza</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Thu, 08 Oct 2009 00:26:03 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,284864,284864#msg-284864</guid>
            <title>How do I order items but place some always at the bottom? (2 replies)</title>
            <link>http://forums.mysql.com/read.php?108,284864,284864#msg-284864</link>
            <description><![CDATA[ I have the following items in my table...<br />
<br />
Bananas<br />
No fruit<br />
Peaches<br />
Pears<br />
Please select a fruit<br />
Watermelon<br />
<br />
I would like to order the items so they appear as follows, i.e I want 'Please select a fruit' at the top, and 'No fruit' right at the bottom. <br />
<br />
Please select a fruit<br />
Bananas<br />
Peaches<br />
Pears<br />
Watermelon<br />
No fruit<br />
<br />
How can I query my table so the order comes out in this order?<br />
<br />
Thanks]]></description>
            <dc:creator>Greg Quinn</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Wed, 07 Oct 2009 17:03:00 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,284691,284691#msg-284691</guid>
            <title>Not desired results (1 reply)</title>
            <link>http://forums.mysql.com/read.php?108,284691,284691#msg-284691</link>
            <description><![CDATA[ Okay I am trying to get a sum of numbers in one column but instead I am getting this.<br />
<br />
State | ZIP | ITEM | SALES<br />
'&quot;MA&quot;', '&quot;01082&quot;', '&quot;588&quot;', 4<br />
<br />
I should be getting this:<br />
<br />
State | ZIP | ITEM | SALES<br />
'&quot;MA&quot;', '&quot;01082&quot;', '&quot;588&quot;', 5823.8<br />
<br />
My MySQL Query<br />
<br />
SELECT d.`state`, d.`zip`, l.`item`, SUM(s.`sales`) FROM demo d, line l, sales s <br />
WHERE d.`invoice` = l.`invoice` AND <br />
d.`invoice` = s.`invoice` AND <br />
l.`item` LIKE '&quot;588%' AND <br />
l.`item` NOT LIKE '%-REC%' AND <br />
l.`item` NOT LIKE '%-USED%' <br />
GROUP BY d.`zip`;]]></description>
            <dc:creator>Ryan Crisman</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Tue, 06 Oct 2009 14:45:25 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,284248,284248#msg-284248</guid>
            <title>Can connect to mysql on localhost but not on remote host (1 reply)</title>
            <link>http://forums.mysql.com/read.php?108,284248,284248#msg-284248</link>
            <description><![CDATA[ Hi all,<br />
<br />
I can connect to mysql if it's on the same machine as where the app is running, but once I change the connection string to a remote machine, I get a &quot;can't connect to mysql on xx.xx.xx.xx, is there a server runnning...&quot; error. The IP, port, username and password are all correct and mysql is running on the remote machine. Using mysqladmin -h xx.xx.xx.xx -u -p version on the machine with the app, I get the reply perfectly from the remote machine. <br />
<br />
Any ideas? Am at my wits end.]]></description>
            <dc:creator>Jim McLaughlin</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Thu, 08 Oct 2009 15:34:01 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,283957,283957#msg-283957</guid>
            <title>Browser don´t show the value of Bit (2 replies)</title>
            <link>http://forums.mysql.com/read.php?108,283957,283957#msg-283957</link>
            <description><![CDATA[ Hello,<br />
<br />
the Query Browser normaly shows the value of a Bit field like b'1' or b'0' in a resultset.<br />
<br />
My Browser only shows b without the value.<br />
If i right click in a Bit fild and then click View Filed in Popup Editor it´s displayed the right way with value.<br />
<br />
Wath´s wrong?<br />
<br />
Some Infos:<br />
MySQL: 5.1.28-rc-community Windows 2003<br />
and 5.1.31-community Windows XP Prof (same on both Systems)<br />
MySQl Query Browser 1.12.17<br />
<br />
Thanks, Dirk]]></description>
            <dc:creator>Dirk 191</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Wed, 28 Oct 2009 21:53:32 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,283951,283951#msg-283951</guid>
            <title>conditions in cursor (no replies)</title>
            <link>http://forums.mysql.com/read.php?108,283951,283951#msg-283951</link>
            <description><![CDATA[ hi<br />
hi,my cursors definition is look like  in sp<br />
<br />
<br />
DECLARE cur1 CURSOR FOR select distinct(catag) from d_cacntrl<br />
                        where (termid, cycleid)=(SELECT max(termid), max(cycleid)  FROM `d_cacntrl`);<br />
<br />
<br />
DECLARE CUR2  CURSOR FOR SELECT MAX(TERMID) as v_termid,MAX(CYCLEID) as v_cycleid,<br />
                         MAX(YRMTH) as v_yrmth,catag,SUM(GROSSBAL) as varGRSBAL,SUM(SECVAL) as varSECVAL<br />
                         FROM `d_cawork`  GROUP BY CATAG;<br />
<br />
NOTE:- catag is a common(relational) field between two cursors.<br />
 <br />
Q:- i need to define link between CUR1 AND CUR2, how we can link ?<br />
<br />
<br />
Regards]]></description>
            <dc:creator>shiva reddy</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Wed, 30 Sep 2009 08:00:25 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,283848,283848#msg-283848</guid>
            <title>query to Calculate total (no replies)</title>
            <link>http://forums.mysql.com/read.php?108,283848,283848#msg-283848</link>
            <description><![CDATA[ if my database is designed as following:<br />
<br />
<br />
----------------------|<br />
product_table<br />
----------------------|<br />
item | cost<br />
----------------------|<br />
item1| 60<br />
----------------------|<br />
item2 | 52<br />
----------------------|<br />
=================================<br />
----------------------|<br />
item1_table<br />
----------------------|<br />
member | won<br />
----------------------|<br />
00235 | 5<br />
----------------------|<br />
00236 | 6<br />
----------------------|<br />
<br />
=================================<br />
<br />
----------------------|<br />
item2_table<br />
----------------------|<br />
member | won<br />
----------------------|<br />
00235 | 2<br />
----------------------|<br />
00236 | 6<br />
----------------------|<br />
<br />
<br />
I want to know the total cost of the items member(00235) won.]]></description>
            <dc:creator>SHUAHIL ALAM</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Tue, 29 Sep 2009 18:21:09 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,283779,283779#msg-283779</guid>
            <title>i can't connect to MySQl using a new user (no replies)</title>
            <link>http://forums.mysql.com/read.php?108,283779,283779#msg-283779</link>
            <description><![CDATA[ I've just created a new user using the MySQLAdministrator tool. There were no errors when i created the user(giving him total control over only one database) but now I can't connect to MySQL Query Browser using the username and password that I entered. Can anyone suggest why this is happening, and a solution to my problem?<br />
<br />
Thanks<br />
Grant]]></description>
            <dc:creator>Grant Walker</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Tue, 29 Sep 2009 07:25:17 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,282219,282219#msg-282219</guid>
            <title>Greek Encoding Problem (no replies)</title>
            <link>http://forums.mysql.com/read.php?108,282219,282219#msg-282219</link>
            <description><![CDATA[ I have a website that has the following in the &lt;head&gt; section:<br />
<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1253&quot;&gt;<br />
<br />
The database encoding is utf-8.<br />
<br />
In the website, the text appears fine. However, in MySQL Query Browser it is scrubbled.<br />
<br />
What is wrong?<br />
<br />
Thanks!]]></description>
            <dc:creator>elias elia</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Mon, 21 Sep 2009 07:30:07 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?108,282060,282060#msg-282060</guid>
            <title>Hey, Please help! (no replies)</title>
            <link>http://forums.mysql.com/read.php?108,282060,282060#msg-282060</link>
            <description><![CDATA[ Hey,<br />
I messed up my MySQL files (MySQL server 5.0 and MySQL tools for 5.0).<br />
I fixed MySQL server but MySQL Query Browser is messed up totally!<br />
I deleted the connections(in MySQL Query Browser) no idea why but it wasnt smart:(<br />
So now i can only log in with host name: 127.0.0.1 or localhost.<br />
An i need to log in with my WAN ip.<br />
So how can i fix it? Or How can i remove MySQL so i can download MySQL like i never had it on my computer?<br />
<br />
Hope you understand and Thanks for reading!<br />
<br />
Note: I wont use recovery DVD and delete all files !]]></description>
            <dc:creator>Tobbi opsahl</dc:creator>
            <category>MySQL Query Browser</category>
            <pubDate>Sat, 19 Sep 2009 13:39:42 +0000</pubDate>
        </item>
    </channel>
</rss>
