Re: Problem with query

2007-09-14 Thread Peter Brawley
Naz, That query logic runs without a error on the server I have to hand (5.0.37), but it has three issues: (i) unless there is an exceptionless 1:1 relationship between group_post_mod_option.option_id and group_post_mod_option.option_name, results for the latter column will be meaningless be

Problem with query

2007-09-14 Thread Naz Gassiep
I am running this query: SELECT group_post_mod_option.option_id, group_post_mod_option.option_name, COUNT(group_post_moderation.group_post_moderation_option) AS count FROM group_post_mod_option LEFT OUTER JOIN group_post_moderation ON (group_post_mod_option.option_id =

RE: Problem with query on 5.11

2006-10-20 Thread Don O'Neil
, October 19, 2006 11:47 PM To: Don O'Neil Cc: mysql@lists.mysql.com Subject: Re: Problem with query on 5.11 Don O'Neil wrote: > Why does this query return no results: > > SELECT * FROM FileList WHERE MATCH Filename AGAINST ("9640") > > When there are entries in the F

RE: Problem with query on 5.11

2006-10-20 Thread Don O'Neil
Yes, there is a full text index, there are about 12,000 rows or so. Don -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Thursday, October 19, 2006 11:47 PM To: Don O'Neil Cc: mysql@lists.mysql.com Subject: Re: Problem with query on 5.11 Don O'Neil wrote:

Re: Problem with query on 5.11

2006-10-20 Thread Philip Mather
Jerry, Is "9640" a word by itself? A full-text search wouldn't find "abc9640", No a full text search would find numbers pretending to be a "word", the full text search has a fairly high level definition of a "word". Try searching for "1960" over at http://ftvdb.bfi.org.uk/search.php. Regar

Re: Problem with query on 5.11

2006-10-20 Thread Philip Mather
Jerry, Is "9640" a word by itself? A full-text search wouldn't find "abc9640", No a full text search would find numbers pretending to be a "word", the full text search has a fairly high level definition of a "word". Try searching for "1960" over at http://ftvdb.bfi.org.uk/search.php. Regar

RE: Problem with query on 5.11

2006-10-20 Thread Jerry Schwartz
e- > From: Don O'Neil [mailto:[EMAIL PROTECTED] > Sent: Friday, October 20, 2006 2:44 AM > To: mysql@lists.mysql.com > Subject: Problem with query on 5.11 > > Why does this query return no results: > > SELECT * FROM FileList WHERE MATCH Filename AGAINST ("9640&

Re: Problem with query on 5.11

2006-10-19 Thread Chris
Don O'Neil wrote: Why does this query return no results: SELECT * FROM FileList WHERE MATCH Filename AGAINST ("9640") When there are entries in the Filename list that have 9640 in them? How many rows are in the table? Full text won't work with only a couple of rows. And you do have a full

Problem with query on 5.11

2006-10-19 Thread Don O'Neil
Why does this query return no results: SELECT * FROM FileList WHERE MATCH Filename AGAINST ("9640") When there are entries in the Filename list that have 9640 in them? I'm using MySQL 5.1.11. Thanks! -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe

RE: Problem with query

2005-05-24 Thread shaun thornburgh
From: "Jon Miller" <[EMAIL PROTECTED]> To: Subject: Problem with query Date: Tue, 24 May 2005 19:40:32 +0800 Quite new to MySQl and queries in general and would like some help in the following query: select prDate, prName, prLEmployee, prDescription, prTotalHours, prLStatus,

Problem with query

2005-05-24 Thread Jon Miller
Quite new to MySQl and queries in general and would like some help in the following query: select prDate, prName, prLEmployee, prDescription, prTotalHours, prLStatus, prCompletionDate, prActive from tProject where prDate >=2005-05-09 It generates a listing that has years from 2001 to present. A

Re: Problem with query and password

2005-01-31 Thread Gleb Paharenko
Hello. Looks like passwords in your table are stored in old short format. Use old_password() instead of password(). See: http://dev.mysql.com/doc/mysql/en/password-hashing.html Lancer Emotion 16 <[EMAIL PROTECTED]> wrote: > Hello everbody,i have a problem with mysql and i wish you could

Re: Problem with query and password

2005-01-29 Thread Hassan Schroeder
Lancer Emotion 16 wrote: I have this table named users : + | ID | user | pass | thegroup | firstname | surname | enabled +++--+--+---+-+- | 1 | Admin | *4ACFE3202A5FF5CF467 | 1 | Mr| Admin | 1 The pas

Problem with query and password

2005-01-29 Thread Lancer Emotion 16
Hello everbody,i have a problem with mysql and i wish you could help me. I have this table named users : +++--+--+---+-+- + | ID | user | pass | thegroup | firstname | surname | enabled | +++-

Re: MySQL and VBquestion - problem with query that returns 100000+ records

2004-07-01 Thread Greg Zimmermack
bject: Re: MySQL and VBquestion - problem with query that returns 10+ records Date: Wed, 30 Jun 2004 12:37:16 -0400 Greg, I think what you are calling "hung" may really be a "blocked" condition. Using ADO, you have the option of your queries being synchronous or asynchro

Re: MySQL and VBquestion - problem with query that returns 100000+ records

2004-06-30 Thread Brent Baisley
I have to ask, why would you even want to pull that many records at once? No user would want to sift through that many records. I always add a limit clause to all my queries. There is no harm in having a limit 500 when you are just receiving 10 records. But it's good to have the limit there in

RE: MySQL and VBquestion - problem with query that returns 100000 + records

2004-06-30 Thread Victor Pendleton
ubject: RE: MySQL and VBquestion - problem with query that returns 10+ records Victor Thanks for your reply. I checked the processlist and it continues to execute even after the VB application is hung. I know the application is hung by checking its status in the Windows Task manager. The &#x

RE: MySQL and VBquestion - problem with query that returns 100000+ records

2004-06-30 Thread Greg Zimmermack
ECTED] '" <[EMAIL PROTECTED]> Subject: RE: MySQL and VBquestion - problem with query that returns 10+ records Date: Wed, 30 Jun 2004 09:19:11 -0500 While the Visual Basic application is querying the database can you log into the MySQL via the mysql monitor and do a show processlis

Re: MySQL and VBquestion - problem with query that returns 100000+ records

2004-06-30 Thread SGreen
] ail.com> cc: Fax to: 06/30/2004 10:13 Subject: MySQL and VBquestion - problem

RE: MySQL and VBquestion - problem with query that returns 100000 + records

2004-06-30 Thread Victor Pendleton
. -Original Message- From: Greg Zimmermack To: [EMAIL PROTECTED] Sent: 6/30/04 9:13 AM Subject: MySQL and VBquestion - problem with query that returns 10+ records I have an SQL which looks something like: SELECT S.FirstName, T.CreateDateTime, T.TranDateTime, P.FirstName, P.LastName

MySQL and VBquestion - problem with query that returns 100000+ records

2004-06-30 Thread Greg Zimmermack
I have an SQL which looks something like: SELECT S.FirstName, T.CreateDateTime, T.TranDateTime, P.FirstName, P.LastName, D.DiagnosisIDString, T.CheckNumber, T.StmtDesc, T.ServPayAdjIDString, T.PatientAmt, T.InsuranceAmt, T.ClaimID, T.AuditDateTime, T.TransactionType, T.ProviderID, PR.FirstName,

Re: problem with query

2004-03-04 Thread Sasha Pachev
Luiz Rafael Culik Guimaraes wrote: Dear Friends Running the follow query select max( sr_recno) from test_table down work for re the error id returned by mysql_errno is 3731792 server is 4.1.1a-alpha Table structure is SR_DELETEC char(1) SR_RECNO bigint(15) PRI auto_increment VALUE double(18,6)

problem with query

2004-03-04 Thread Luiz Rafael Culik Guimaraes
Dear Friends Running the follow query select max( sr_recno) from test_table down work for re the error id returned by mysql_errno is 3731792 server is 4.1.1a-alpha Table structure is SR_DELETEC char(1) SR_RECNO bigint(15) PRI auto_increment VALUE double(18,6) OBS text ENABLE tinyint(4) DATE_

problem with query (group, count)

2003-12-14 Thread Agachi Valentin
Hello to all, I searched this list's archive, but I couldn't find a solution to a problem I am currently facing. Any help would be appreciated. I have the next table configuration: session (an session id), weight (a counter), and other fields. When I add a new record and the session id I am tri

Re: Problem with query comparing to a DATE on Linux OpenOffice

2003-11-11 Thread Marc
On Tue, 2003-11-11 at 00:15, Alaios wrote: > what a front-end is? And what OO1.1.0 provides? MySQL is a database server and a front-end is another program that you use to get to that server and use the database. OpenOffice is a complete office software package (word processor, spreadsheet, ...) th

Re: Problem with query comparing to a DATE on Linux OpenOffice

2003-11-10 Thread Alaios
what a front-end is? And what OO1.1.0 provides? Marc <[EMAIL PROTECTED]> wrote:I'm using OpenOffice 1.1.0 as a front-end to MySQL 4.0.14 on Gentoo Linux and can't compare a field to CURDATE(). The error is, "The field cannot be compared with a date". The column is formatted as a DATE, and I can p

Problem with query comparing to a DATE on Linux OpenOffice

2003-11-10 Thread Marc
I'm using OpenOffice 1.1.0 as a front-end to MySQL 4.0.14 on Gentoo Linux and can't compare a field to CURDATE(). The error is, "The field cannot be compared with a date". The column is formatted as a DATE, and I can perform the compare fine using mysql. I realize this is probably related only to

Re: problem with query

2003-11-04 Thread gerald_clark
Leonardo Javier Bel? wrote: >Hi ALL! >I have a problem with this query, because it keeps failing and I dont >know why (it says that the concat statement is wrong but there is nothing on >the online docs...) > >select st.id, concat(st.required), st.name from states st, agenda ag left >outer j

problem with query

2003-11-04 Thread Leonardo Javier Belén
Hi ALL! I have a problem with this query, because it keeps failing and I dont know why (it says that the concat statement is wrong but there is nothing on the online docs...) select st.id, concat(st.required), st.name from states st, agenda ag left outer join ag.id=concat("AGE",st.required) w

having a problem with query using multiple sources

2003-03-02 Thread Sunfire
hi.. having a problem with a mysql query where 2 different sources use the same query.. the only problem is that in my where clause i.e.: where '$edit[company]'==$company the $edit[company] is not valid for one of the sources... is there a way to let both sources use the same query like that.. my

AW: Problem with query cache and comments

2003-01-13 Thread Christian Rabe
I may add, that it is always the same comment, so the query is exactly the same and SHOULD be cached. -Ursprungliche Nachricht- Von: Christian Rabe [mailto:[EMAIL PROTECTED]] Gesendet: Sonntag, 12. Januar 2003 01:41 An: [EMAIL PROTECTED] Betreff: Problem with query cache and comments Hi

Problem with query cache and comments

2003-01-11 Thread Christian Rabe
Hi, I've been testing the query cache with mysql 4.0.8 and ran into a problem. the query select * from tablename where x=1; is cached correctly and generates nice hits when run more than once but if I add a comment like /* any comment */ select * from tablename where x=1; the query is cached, bu

Re: Problem with Query based on HTML form values - Clarification

2002-12-18 Thread Bill Lovett
You have it right. But if the user searches for new power boats, and doesn't specify a make, make should not appear in your WHERE clause. The query has to be different depending on the criteria that have been chosen (or not chosen, as the case may be). Prior to executing the query, look at all

Re: Problem with Query based on HTML form values - Clarification

2002-12-17 Thread web-dev
Bill Lovett wrote: Hello, You're getting all new boats + all sail boats + all boats of type x because you're using ORs. If you only want records that match all the criteria, use ANDs instead. If I use AND, wouldn't all conditions need to be true to return a result? In the case of the sear

Re: Problem with Query based on HTML form values

2002-12-17 Thread Bill Lovett
Hello, You're getting all new boats + all sail boats + all boats of type x because you're using ORs. If you only want records that match all the criteria, use ANDs instead. SELECT * FROM boat WHERE condition='$condition' AND type='$type' Or you might try SELECT * FROM boat WHERE (condition='n

Problem with Query based on HTML form values

2002-12-17 Thread web-dev
Hello, I am attempting to search a table based on information passed from a submitted form. The form contains details as follows: (radio buttons) Condition: O new O used Type: O powerO sail (textbox) Make: [ ] etc. etc. etc. ( it's a long list!) If I write

Re: Problem with query - join two tables - order by goes crazy

2002-10-14 Thread gerald_clark
Since it can't use an index, and has to sort the output, what exactly is unexpected? Norris, Joseph wrote: >Group, > >I have the following query: > >select phones.*, ops.plid, ops.box, ops.mac >from phones, ops where >(ops.box = 'Mcds') or (ops.box = 'Mn3300') and >(phones.suffix1 = ops.phone

Problem with query - join two tables - order by goes crazy

2002-10-12 Thread Norris, Joseph
Group, I have the following query: select phones.*, ops.plid, ops.box, ops.mac from phones, ops where (ops.box = 'Mcds') or (ops.box = 'Mn3300') and (phones.suffix1 = ops.phone) order by ops.mac When I change the order by to a field in the phones table - sorts just fine and produces results

Re: SV: Problem with query

2002-04-17 Thread Mark Dale
ou do this? > > >- Torkil :) > >- Opprinnelig melding - >Fra: Mark Dale <[EMAIL PROTECTED]> >Til: Torkil Johnsen <[EMAIL PROTECTED]> >Kopi: <[EMAIL PROTECTED]> >Sendt: 17. april 2002 11:17 >Emne: Re: Problem with query > > > >

Re: Problem with query

2002-04-17 Thread Pierre du Parte
Depends on how the fee paymnents are defined. At its simplest: SELECT Members..Name FROM Members WHERE NOT(Members.MemberID = FEE_PAYMENTS.MenmbersID) would select members that have no fee payment records. You could build on it from there... For the mySQL gurus, sorry about the syntax guys, I

Re: Problem with query

2002-04-17 Thread Mark Dale
select * from MEMBERS,FEE_PAYMENTS where FEE_PAYMENTS.PAID = '0' and MEMBERS. MemberID = FEE_PAYMENTS. MemberID; assuming you have a field PAID, with values 0 or 1,or even YES or NO cheers Mark >I am having a small problem with a small mysql query... > >I want to make a list of: >"WHO HAS NO

Problem with query

2002-04-17 Thread Torkil Johnsen
I am having a small problem with a small mysql query... I want to make a list of: "WHO HAS NOT PAID THEIR MEMBERSHIP FEE". I guess I could maybe solve this one myself, its not too hard ... I have one table with members MEMBERS -- | MemberID | Name | etc

Re: Problem with query

2002-02-01 Thread Paul DuBois
At 10:36 -0300 2/1/02, [EMAIL PROTECTED] wrote: >Hi, > > I Have a problem with transaction controls... runing the query >"begin; select * from table; commit;", this query run perfectly in the >shell, but in my code return error of sintax. If you're using some kind of MySQL API within a prog

Re: Problem with query

2002-02-01 Thread Kalok Lo
What kind of code ? I typically send each of those in as separate queries. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 01, 2002 8:36 AM Subject: Problem with query > Hi, > > I Have a problem with transaction c

Re: Problem with query

2002-02-01 Thread Gerald Clark
I don't see any code or errors. [EMAIL PROTECTED] wrote: >Hi, > > I Have a problem with transaction controls... runing the query >"begin; select * from table; commit;", this query run perfectly in the >shell, but in my code return error of sintax. > > Somebody help me? > > >--

Problem with query

2002-02-01 Thread daniel . cunha
Hi, I Have a problem with transaction controls... runing the query "begin; select * from table; commit;", this query run perfectly in the shell, but in my code return error of sintax. Somebody help me? -

RE: Problem with query

2001-10-29 Thread Andrew Murphy
=NULL" gives the same results as " WHERE xx IS NULL". Or would that be an unusual thing to request. Andrew Murphy -Original Message- From: jim barchuk [mailto:[EMAIL PROTECTED]] Sent: 27 October 2001 8:32 pm To: Paul DuBois Cc: [EMAIL PROTECTED] Subject: Re: Problem with quer

Re: Problem with query

2001-10-27 Thread jim barchuk
Hi Paul! On Sat, 27 Oct 2001, Paul DuBois wrote: > At 9:38 -0400 10/27/01, jim barchuk wrote: > >Hi Carl! > > > >> Paul DuBois writes: > >> > >> > NULL basically means "unknown value", so saying WHERE x = NULL cannot > >> > work, even if x is NULL. That means "where one unknown value = anoth

Re: Problem with query

2001-10-27 Thread Paul DuBois
At 9:38 -0400 10/27/01, jim barchuk wrote: >Hi Carl! > >> Paul DuBois writes: >> >> > NULL basically means "unknown value", so saying WHERE x = NULL cannot >> > work, even if x is NULL. That means "where one unknown value = another >> > unknown value", which cannot be evaluated with any certa

Re: Problem with query

2001-10-27 Thread jim barchuk
Hi Carl! > Paul DuBois writes: > > > NULL basically means "unknown value", so saying WHERE x = NULL cannot > > work, even if x is NULL. That means "where one unknown value = another > > unknown value", which cannot be evaluated with any certainty. :-) > > It is sort of odd, though, that x = NULL

Re: Problem with query

2001-10-27 Thread Carl Troein
Paul DuBois writes: > NULL basically means "unknown value", so saying WHERE x = NULL cannot > work, even if x is NULL. That means "where one unknown value = another > unknown value", which cannot be evaluated with any certainty. :-) It is sort of odd, though, that x = NULL returns something wh

RE: Problem with query

2001-10-26 Thread Paul DuBois
At 15:54 -0600 10/26/01, Brendin wrote: >Yours is the first and the winner! :) Thanks using is null worked in >the query... Do you know why = doesn't work? NULL basically means "unknown value", so saying WHERE x = NULL cannot work, even if x is NULL. That means "where one unknown value = anothe

RE: Problem with query

2001-10-26 Thread Brendin
Yours is the first and the winner! :) Thanks using is null worked in the query... Do you know why = doesn't work? -Original Message- From: Ravi Raman [mailto:[EMAIL PROTECTED]] Sent: Friday, October 26, 2001 4:00 PM To: Mysql; Brendin Subject: RE: Problem with query hi. first of

RE: Problem with query

2001-10-26 Thread Ravi Raman
ent: October 26, 2001 5:46 PM To: [EMAIL PROTECTED] Subject: Problem with query I am having a strange problem with a query... I have a table that contains 3 columns and 3,315,599 rows. One of the columns is a date time field. Out of 3,315,599 rows 1,555,157 contain an entry in the date time field

Problem with query

2001-10-26 Thread Brendin
I am having a strange problem with a query... I have a table that contains 3 columns and 3,315,599 rows. One of the columns is a date time field. Out of 3,315,599 rows 1,555,157 contain an entry in the date time field and the other 1,760,442 rows contain null in the date time field Here is t