Re: Queries not in Cache

2010-05-07 Thread Johan De Meersman
What queries, precisely, I can't tell you, but you can have a good idea about how your cache performs using the stuff in "show global variables;" and the online manuals about what it all means :) Look at 'show global variables like %qcache%', for a start. On Fri, May 7, 2010 at 2:22 PM, Darvin De

Re: Queries not in Cache

2010-05-07 Thread Darvin Denmian
Can somebody help me with this? Thanks! On Thu, May 6, 2010 at 10:39 AM, Darvin Denmian wrote: > Hello, > > I've activated the query_cache in Mysql with the variable > "query_cache_limit" value to 1 MB. > My question is: > > How to know what queries wasn't cached because they have exceeded the >

Queries not in Cache

2010-05-06 Thread Darvin Denmian
Hello, I've activated the query_cache in Mysql with the variable "query_cache_limit" value to 1 MB. My question is: How to know what queries wasn't cached because they have exceeded the value of "query_cache_limit"? **Sorry for my Brazilian Englihs :( Thanks! -- MySQL General Mailing List For

Re: Better that `NOT IN`

2010-01-15 Thread Dan Nelson
s. > > > > > > And i need i clean on item_instance how this query: > > > > > > DELETE FROM `item_instance` WHERE guid NOT IN(SELECT item FROM > > > `character_inventory`) AND guid NOT IN(SELECT item_guid FROM > > > `guild_bank_item`) AND guid NOT

RE: Better that `NOT IN`

2010-01-15 Thread Daevid Vincent
> Sent: Thursday, January 14, 2010 11:00 PM > To: Junior Ortis > Cc: mysql@lists.mysql.com > Subject: Re: Better that `NOT IN` > > For alternatives, have a look at "The unbearable slowness of IN()" at > http://www.artfulsoftware.com/queries.php. > > PB

Re: Better that `NOT IN`

2010-01-15 Thread fsb
On 1/15/10 12:01 AM, "Junior Ortis" wrote: > Hi guys i have a problem, 3 big tables: item_instance about 15KK rows, > character_inventory 15KK rows, guild_bank_item 2KK rows. > > And i need i clean on item_instance how this query: > > DELETE FROM `item_instance` W

Re: Better that `NOT IN`

2010-01-14 Thread Peter Brawley
i clean on item_instance how this query: DELETE FROM `item_instance` WHERE guid NOT IN(SELECT item FROM `character_inventory`) AND guid NOT IN(SELECT item_guid FROM `guild_bank_item`) AND guid NOT IN(SELECT item_guid FROM `mail_items`) and guid NOT IN(SELECT itemguid FROM `auctionhouse`); W

Better that `NOT IN`

2010-01-14 Thread Junior Ortis
Hi guys i have a problem, 3 big tables: item_instance about 15KK rows, character_inventory 15KK rows, guild_bank_item 2KK rows. And i need i clean on item_instance how this query: DELETE FROM `item_instance` WHERE guid NOT IN(SELECT item FROM `character_inventory`) AND guid NOT IN(SELECT

date list including dates not in the list

2008-01-29 Thread Weston, Craig (OFT)
Hi there, I have a list of events that occur periodically: 1/1/2008Event 1/1/2008Event 1/1/2008Event 1/2/2008Event 1/2/2008Event 1/4/2008Event 1/4/2008Event I know how to count events per day, but on

Re: Not In join query.

2007-10-13 Thread Baron Schwartz
` What I need is query that will give me a list of names that are in the Q2 result but not in the Q1 result. This is easy enough if I am just doing the match on one filed I can do this SELECT Name FROM namelist WHERE `Date` AND Name NOT IN( SELECT Name FROM . . . . . . ) What I can't figure o

Not In join query.

2007-10-12 Thread Chris W
will give me a list of names that are in the Q2 result but not in the Q1 result. This is easy enough if I am just doing the match on one filed I can do this SELECT Name FROM namelist WHERE `Date` AND Name NOT IN( SELECT Name FROM . . . . . . ) What I can't figure out is how to do it if I wa

RE: help with query: select customers that ARO NOT in orders t

2006-10-23 Thread Waldemar Jankowski
20, 2006 1:53 PM To: [EMAIL PROTECTED] Cc: mysql@lists.mysql.com Subject: Re: help with query: select customers that ARO NOT in orders table On Fri, 20 Oct 2006, [EMAIL PROTECTED] wrote: hi to all, I have table customers (PK cust_id) I have table orders (PK order_id, FK cust_id) I need query t

RE: help with query: select customers that ARO NOT in orders table

2006-10-23 Thread Jerry Schwartz
, CT 06032 860.674.8796 / FAX: 860.674.8341 > -Original Message- > From: Waldemar Jankowski [mailto:[EMAIL PROTECTED] > Sent: Friday, October 20, 2006 1:53 PM > To: [EMAIL PROTECTED] > Cc: mysql@lists.mysql.com > Subject: Re: help with query: select customers that ARO NOT

Re: help with query: select customers that ARO NOT in orders table

2006-10-20 Thread Waldemar Jankowski
On Fri, 20 Oct 2006, [EMAIL PROTECTED] wrote: Ok. Just found I gave wrong info. To make my life easier, the person who created db named cust_id in 'orders' table as SoldTo [EMAIL PROTECTED] in this case, select cust_id from customers where cust_id not in (select Soldto from orde

Re: help with query: select customers that ARO NOT in orders table

2006-10-20 Thread afan
Ok. Just found I gave wrong info. To make my life easier, the person who created db named cust_id in 'orders' table as SoldTo [EMAIL PROTECTED] in this case, select cust_id from customers where cust_id not in (select Soldto from orders); will not work :( > On Fri, 20 Oct

Re: help with query: select customers that ARO NOT in orders table

2006-10-20 Thread Waldemar Jankowski
. couls somebody help me? thanks. -afan I think the most explicit way is with a sub select: select cust_id from customers where cust_id not in (select cust_id from orders); -w -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http

help with query: select customers that ARO NOT in orders table

2006-10-20 Thread afan
hi to all, I have table customers (PK cust_id) I have table orders (PK order_id, FK cust_id) I need query that will selecct all customers from 'customers' they don't have any order, there is not their cust_id in 'orders'. couls somebody help me? thanks. -afan -- MySQL General Mailing List For

Re: JOIN table where not in other table

2006-07-26 Thread Peter Brawley
2006 6:05 AM To: mysql@lists.mysql.com Subject: Re: JOIN table where not in other table On Wednesday 26 July 2006 11:00 am, Peter Lauri wrote: The query in full was exactly as you wrote it (but without the typo) :) Alright, yes, what is your version of MySQL? I'm

RE: JOIN table where not in other table

2006-07-26 Thread Peter Lauri
, 2006 6:43 AM To: mysql@lists.mysql.com Subject: Re: JOIN table where not in other table On Wednesday 26 July 2006 11:30 am, Peter Lauri wrote: > 4.0.27, so that is probably the reason. Any other way then with a sub > query? I solved it with my "stupid" solution, feels strange to J

Re: JOIN table where not in other table

2006-07-26 Thread Chris White
On Wednesday 26 July 2006 11:30 am, Peter Lauri wrote: > 4.0.27, so that is probably the reason. Any other way then with a sub > query? I solved it with my "stupid" solution, feels strange to JOIN tables > and choose rows where the join value is NULL (left outer join) :) Are you using phpMyAdmin?

RE: JOIN table where not in other table

2006-07-26 Thread Peter Lauri
: Thursday, July 27, 2006 6:05 AM To: mysql@lists.mysql.com Subject: Re: JOIN table where not in other table On Wednesday 26 July 2006 11:00 am, Peter Lauri wrote: > The query in full was exactly as you wrote it (but without the typo) :) Alright, yes, what is your version of MySQL? I'm in

Re: JOIN table where not in other table

2006-07-26 Thread Chris White
On Wednesday 26 July 2006 11:00 am, Peter Lauri wrote: > The query in full was exactly as you wrote it (but without the typo) :) Alright, yes, what is your version of MySQL? I'm in the 5.0.22 series here and that works just fine. -- Chris White PHP Programmer/DBackItUp Interfuel -- MySQL Gener

RE: JOIN table where not in other table

2006-07-26 Thread Peter Lauri
The query in full was exactly as you wrote it (but without the typo) :) -Original Message- From: Chris White [mailto:[EMAIL PROTECTED] Sent: Thursday, July 27, 2006 5:56 AM To: Peter Lauri Cc: mysql@lists.mysql.com Subject: Re: JOIN table where not in other table On Wednesday 26 July

Re: JOIN table where not in other table

2006-07-26 Thread Chris White
On Wednesday 26 July 2006 10:53 am, Peter Lauri wrote: > I tried that, but that generates: > > #1064 - 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 > 'SELECT id FROM table2) > LIMIT 0, 100' at line 1 What's

RE: JOIN table where not in other table

2006-07-26 Thread Peter Lauri
upport sub queries? /Peter -Original Message- From: Chris White [mailto:[EMAIL PROTECTED] Sent: Thursday, July 27, 2006 5:37 AM To: mysql@lists.mysql.com Subject: Re: JOIN table where not in other table On Wednesday 26 July 2006 10:31 am, Peter Lauri wrote: > Best group member, > >

Re: JOIN table where not in other table

2006-07-26 Thread Chris White
FROM table 1 WHERE id NOT IN (SELECT id FROM table2); -- Chris White PHP Programmer/DBacardi Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

JOIN table where not in other table

2006-07-26 Thread Peter Lauri
Best group member, I just made up this query, but let us work from this: SELECT * FROM table1 LEFT OUTER JOIN table2 ON (table1.id=table2.id) WHERE table2.prop IS NULL; This selects all rows from table1 where the id is not also in the table2. Is there any more logic way to do this, this is what

Re: where more than 2 column not in a table

2006-05-31 Thread Peter Brawley
[EMAIL PROTECTED] wrote: >I want to select a list, where it was registered in tbl club_get_match with Id- >Member in tbl detail_club_member, but it's not registered in tbl wager. Your schema has a problem: wagers.name_club is too short. If no club_get_match.name_club value is longer than 20 c

Re: where more than 2 column not in a table

2006-05-29 Thread if04029
CREATE TABLE `club_get_match` ( `id_match` bigint(100) NOT NULL default '0', `name_club` varchar(30) NOT NULL default '', `status` varchar(30) default NULL, `prediction_match` varchar(5) NOT NULL default '', `equal_match` char(3) NOT NULL default '', `score` varchar(50) default NULL,

Re: where more than 2 column not in a table

2006-05-29 Thread Peter Brawley
[EMAIL PROTECTED] wrote: Sory if my question makes you confused I've a problem with my sintax, I don't know how to select a list, whether it's not registered in another table, but it have 2 IDs. Not enough info. Show the Create Table statements, a bit of data, and the desired result. PB I

where more than 2 column not in a table

2006-05-28 Thread if04029
Sory if my question makes you confused I've a problem with my sintax, I don't know how to select a list, whether it's not registered in another table, but it have 2 IDs. I hope you will help me because I really need it for my study. Thank you in advance, regards, Eva Panjaitan 11104029 Stu

Re: Find ids that are NOT in other two tables.

2006-05-22 Thread Ben Liu
Uh, I don't have anything to add to this thread except that this was the *exact* problem I was trying to solve and this really helped me a lot. Thanks guys. -BL On 5/22/06, Jay Pipes <[EMAIL PROTECTED]> wrote: Yesmin Patwary wrote: > Hi, > > Greatly appreciated your kind help. Would it wor

Re: Find ids that are NOT in other two tables.

2006-05-22 Thread Jay Pipes
T * FROM t3; ++ | id | ++ | 3 | | 5 | | 7 | | 9 | | 11 | ++ 5 rows in set (0.00 sec) Hope this answers your questions! Cheers, -jay Jay Pipes <[EMAIL PROTECTED]> wrote: Yesmin Patwary wrote: Dear All, Need to find ids that are NOT in other two tables. With the help of

Re: Find ids that are NOT in other two tables.

2006-05-19 Thread Yesmin Patwary
cu ON c.company_id = cu.company_id WHERE p.company_id IS NULL AND cu.company_id IS NULL; I am not sure if this join query will remove records from other tables. Jay Pipes <[EMAIL PROTECTED]> wrote: Yesmin Patwary wrote: > Dear All, > > Need to find ids that are NOT in ot

Re: Find ids that are NOT in other two tables.

2006-05-19 Thread Jay Pipes
Yesmin Patwary wrote: Dear All, Need to find ids that are NOT in other two tables. With the help of PHP scripting and three queries I am able to do the task. Can this be done with one mysql query? Below are current quires: SELECT DISTINCT company_id FROM company_db SELECT

Find ids that are NOT in other two tables.

2006-05-19 Thread Yesmin Patwary
Dear All, Need to find ids that are NOT in other two tables. With the help of PHP scripting and three queries I am able to do the task. Can this be done with one mysql query? Below are current quires: SELECT DISTINCT company_id FROM company_db SELECT company_id FROM

Re: GROUP BY *column* when *column* is NOT in SELECT list?

2006-05-11 Thread Paul DuBois
At 18:28 -0400 5/11/06, Fan, Wellington wrote: Hello all, I have inherited this query: SELECT events.eventID AS id, attribute_master.attributeID AS attrib_id FROM events, attribute_master WHERE events.status='8' AND events.eventReview!='' AND

GROUP BY *column* when *column* is NOT in SELECT list?

2006-05-11 Thread Fan, Wellington
Hello all, I have inherited this query: SELECT events.eventID AS id, attribute_master.attributeID AS attrib_id FROM events, attribute_master WHERE events.status='8' AND events.eventReview!='' AND events.modlast > 1146470445 AND event

Re: select records not in a *particular* many-to-many relationship

2006-04-18 Thread Marco Carbone
gerald_clark wrote: I've checked the archives and found an explanation as to how the check if a record is not in a many-to-many table. The answer to that is somewhat simple and clear to me. But here's my problem: how do you check if a record doesn't have a *particula

Re: select records not in a *particular* many-to-many relationship

2006-04-18 Thread gerald_clark
I've checked the archives and found an explanation as to how the check if a record is not in a many-to-many table. The answer to that is somewhat simple and clear to me. But here's my problem: how do you check if a record doesn't have a *particular* many-to-many relat

Re: select records not in a *particular* many-to-many relationship

2006-04-18 Thread Peter Brawley
Marco, I've checked the archives and found an explanation as to how the check if a record is not in a many-to-many table. The answer to that is somewhat simple and clear to me. But here's my problem: how do you check if a record doesn't have a *particular* many-to-many relat

select records not in a *particular* many-to-many relationship

2006-04-18 Thread Marco Carbone
Hey all, I've checked the archives and found an explanation as to how the check if a record is not in a many-to-many table. The answer to that is somewhat simple and clear to me. But here's my problem: how do you check if a record doesn't have a *particular* many-to-many re

Re: Find records not in many-to-many table?

2006-03-27 Thread sheeri kritzer
Your question seems to have been answered already, so let me add one cautionary note -- use a LIMIT clause when testing out a new query! Especially with a join. A simple mistake can lead to a Cartesian product of 2 tables -- I always do limit 100 or something so that I can then check to see that

Re: Find records not in many-to-many table?

2006-03-26 Thread Stefan Kuhn
Obviously you can do a join when the names of id columns are different as well. Look in the doc for that. This has nothing to do with your problem of finding rows not in another table - it is a basic sql thing. Stefan Am Sunday 26 March 2006 00:47 schrieb barney: > Thanks, Stefan, > >

Re: Find records not in many-to-many table?

2006-03-25 Thread barney
I wish! That's the first thing that occurred to me ... unfortunately, this must be done by query ... I'm not allowed to create tables . Seems the guy I'm doin' this for doesn't trust me that far ... he got burned pretty badly a few years ago by a developer building in back-door access to his s

Re: Find records not in many-to-many table?

2006-03-25 Thread Michael Stassen
barney wrote: Thanks, Stefan, But that only works if both tables have the same field name, doesn't it? If I use select FileKey from dl_files left join dl_merges using (FileID) where FileID is null MySQL returns Unknown column 'articles.dl_files.FileID' in 'on clause'. Correct me if I'm wrong,

Re: Find records not in many-to-many table?

2006-03-25 Thread Peter Brawley
barney Correct me if I'm wrong, but wouldn't I have to modify the column name in one of the tables in order for that to work? Or is there a syntax in the join lexicon that I can use to alias one of the column names within the query? I can't modify the existing table structure(s). If the jo

Re: Find records not in many-to-many table?

2006-03-25 Thread barney
Thanks, Stefan, But that only works if both tables have the same field name, doesn't it? If I use select FileKey from dl_files left join dl_merges using (FileID) where FileID is null MySQL returns Unknown column 'articles.dl_files.FileID' in 'on clause'. Correct me if I'm wrong, but wouldn't I

Re: Find records not in many-to-many table?

2006-03-25 Thread Stefan Kuhn
Use select first_table.id from first_table left join second_table using (id) where second_table.id is null Stefan Am Saturday 25 March 2006 19:10 schrieb barney: > Folk, > > This may be off-base for this list, but I've run out of places to look, > sorry. I can't seem to find this anywhere, al

Find records not in many-to-many table?

2006-03-25 Thread barney
Folk, This may be off-base for this list, but I've run out of places to look, sorry. I can't seem to find this anywhere, although I'm certain I've seen it before. How can I identify all the records in a table that are not referenced in a many-to-many table? I have a [unique] table of files an

Re: How to select data if not in both tables?

2006-02-12 Thread Peter Brawley
Bob, There's some discussion of it at http://dev.mysql.com/doc/refman/5.0/en/rewriting-subqueries.html. PB - Bob Gailer wrote: Michael Stassen wrote: Bob Gailer wrote: Peter Brawley wrote: Grant, >If I want to select all the products that are in the product_table, >but

Re: How to select data if not in both tables?

2006-02-12 Thread Bob Gailer
Michael Stassen wrote: Bob Gailer wrote: Peter Brawley wrote: Grant, >If I want to select all the products that are in the product_table, >but not in the sale_table, how to make the query? The product_table >has all the products, but the sale table is a subset of the prod

Re: How to select data if not in both tables?

2006-02-12 Thread Grant Giddens
Thanks, This worked exactly like I had hoped. Grant Peter Brawley <[EMAIL PROTECTED]> wrote:Grant, >If I want to select all the products that are in the product_table, >but not in the sale_table, how to make the query? The product_table >has all the products, but

Re: How to select data if not in both tables?

2006-02-11 Thread Peter Brawley
Bob, >> SELECT * FROM product_table p >>LEFT JOIN sale_table s USING (prod_id) >>WHERE s.prod_id IS NULL; >I have not tested that but I don't think it will work. Try: >SELECT item_name >FROM product_table >WHERE prod_id not in (select prod_id from sale_table

Re: How to select data if not in both tables?

2006-02-11 Thread Michael Stassen
Bob Gailer wrote: Peter Brawley wrote: Grant, >If I want to select all the products that are in the product_table, >but not in the sale_table, how to make the query? The product_table >has all the products, but the sale table is a subset of the product_table. SELECT * FROM prod

Re: How to select data if not in both tables?

2006-02-11 Thread Bob Gailer
Peter Brawley wrote: Grant, >If I want to select all the products that are in the product_table, >but not in the sale_table, how to make the query? The product_table >has all the products, but the sale table is a subset of the product_table. SELECT * FROM product_table p

Re: How to select data if not in both tables?

2006-02-11 Thread Peter Brawley
Grant, >If I want to select all the products that are in the product_table, >but not in the sale_table, how to make the query? The product_table >has all the products, but the sale table is a subset of the product_table. SELECT * FROM product_table p LEFT JOIN sale_table s USING

How to select data if not in both tables?

2006-02-11 Thread Grant Giddens
Hi, I have 2 tables like: product_table: prod_id item_name price data data etc sale_table: prod_id sale_price If I want to select all the products that are in the product_table, but not in the sale_table, how to make the query? The product_table has all the products, but the sale table is

Re: NOT IN vs IS NULL

2006-02-02 Thread Devananda
Shawn, I've just found out that most of my emails during this discussion were NOT posted to the list because I was sending mail in HTML format and Yahoo was not delivering the bounce notices to me. That explains why you believed I was not listening to Peter's input - only _his_ messages were

Re: NOT IN vs IS NULL

2006-02-01 Thread SGreen
---+---++-------+- > +-+---+- > ++ > > &

Re: NOT IN vs IS NULL

2006-02-01 Thread Devananda
nct | ++-+---++---+-+-+---+-++ d1 mysql> explain SELECT offer_id FROM paytable WHERE login_id=1 AND offer_id NOT IN ( SELECT offer_id FROM offers LEFT JOIN publisher_advertiser_blocks AS pab

Re: NOT IN vs IS NULL

2006-02-01 Thread SGreen
[EMAIL PROTECTED]> wrote on 02/01/2006 12:25:01 AM: > Devananda, > > >Definitely not. The first LEFT JOIN, with the clauses > >"ON pt.login_id=pab1.login_id ... WHERE pab1.login_id IS NULL", > > does not make sense. > > ?!? It's a standard JOIN

Re: NOT IN vs IS NULL

2006-01-31 Thread Peter Brawley
Devananda, >Definitely not. The first LEFT JOIN, with the clauses >"ON pt.login_id=pab1.login_id ... WHERE pab1.login_id IS NULL", > does not make sense. ?!? It's a standard JOIN replacement for NOT IN (...). >There is not a 1to1 relationship, These joins

Re: NOT IN vs IS NULL

2006-01-31 Thread Peter Brawley
Devananda, OK, get the diescription in ordinary language right, and the query ought to write itself. Your schema is like this? ... and you want the paytable rows   (i) for which there is an offers row matching paytable.offer_id, and   (ii) for which there is no pab row where pab.login_

Re: NOT IN vs IS NULL

2006-01-27 Thread Peter Brawley
m crowding the screen. The two queries have about the same execution time but very different EXPLAIN results... without further ado, here they are: explain select count(*) from paytable where login_id=# and offer_id NOT IN ( select distinct offer_id

NOT IN vs IS NULL

2006-01-26 Thread Devananda
from that offer_id. While testing I simply selected count(*) to keep my result set from crowding the screen. The two queries have about the same execution time but very different EXPLAIN results... without further ado, here they are: explain select count(*) from paytable where

Re: "left join" record in one joined table and not in another

2006-01-12 Thread SGreen
Vincente Aggrippino <[EMAIL PROTECTED]> wrote on 01/12/2006 12:47:31 AM: > On 1/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > > > Vincente Aggrippino <[EMAIL PROTECTED]> wrote on 01/11/2006 11:33:38 > > PM: > > > > > I have three tables joined on key fields: delivery is joined

Re: "left join" record in one joined table and not in another

2006-01-12 Thread Pooly
Hi, 2006/1/12, Vincente Aggrippino <[EMAIL PROTECTED]>: > On 1/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > That fixed it... Thank you! But I don't understand how. Isn't my implicit > inner join the same as the explicit one you used? > > I read Join Syntax in the ref. manual. Is it

Re: "left join" record in one joined table and not in another

2006-01-11 Thread Vincente Aggrippino
On 1/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > Vincente Aggrippino <[EMAIL PROTECTED]> wrote on 01/11/2006 11:33:38 > PM: > > > I have three tables joined on key fields: delivery is joined with > > invoice_detail on delivery_id and with location on loc_id. I want to > return > >

Re: "left join" record in one joined table and not in another

2006-01-11 Thread SGreen
Vincente Aggrippino <[EMAIL PROTECTED]> wrote on 01/11/2006 11:33:38 PM: > I have three tables joined on key fields: delivery is joined with > invoice_detail on delivery_id and with location on loc_id. I want to return > records of deliveries that have corresponding records in the location tab

"left join" record in one joined table and not in another

2006-01-11 Thread Vincente Aggrippino
I have three tables joined on key fields: delivery is joined with invoice_detail on delivery_id and with location on loc_id. I want to return records of deliveries that have corresponding records in the location table, but have no corresponding records in the invoice table. Here's the query I'm a

vcc options not in documentation?

2005-05-23 Thread matt_lists
Ooops, it would help if I put in the error message Configuration: mysql - Win32 Debug Linking... mysqlclient.lib(mf_pack.obj) : error LNK2001: unresolved external symbol _my_access ../client_debug/mysql.exe : fatal error LNK1120: 1 unresolved externals E

vcc options not in documentation?

2005-05-23 Thread matt_lists
Having trouble building 5.0.x, 4.1.12 builds fine The very first program to link bombs, I'm thinking some dll is not registered, or a change in build directions between 4.1.x and 5.0.x the error is less than helpful, as I'm a dba not a programmer. Any sugestions? I can build 5.0.3, but not 5.

Re: Group By - Is there a way to set which rows values are used for the fields not in the Group By clause?

2005-04-19 Thread Rich Carr
lcount, itemname from viewvisitor where ownerid = 2 GROUP BY concat( app, itemid ) ORDER BY totalcount; Rich Carr wrote: >Is there a way to set which rows values are used by the GROUP BY clause for >the fields that are not in the GROUP BY clause? > >In this following select statement the

Re: Group By - Is there a way to set which rows values are used for the fields not in the Group By clause?

2005-04-18 Thread Vivian Wang
BY clause for the fields that are not in the GROUP BY clause? In this following select statement the group by and order work but the value of the lastviewtime field is not the value of the most recent datetime row. Is there any way to modify the select statement so that the returned lastviewtime

Re: Group By - Is there a way to set which rows values are used for the fields not in the Group By clause?

2005-04-12 Thread Rich Carr
| >+--++--+ > >or GROUP_ROW(cols,sortby=) > >-- More sillyness >SELECT id, group_row(child_id,type,sortby=rand()) >FROM chi2 GROUP BY id; > >Just an idea. > >Dan. > >On Mon, 11 Apr 2005, Rich Carr wrote: > >>Is there a way to set which ro

Re: Group By - Is there a way to set which rows values are used for the fields not in the Group By clause?

2005-04-12 Thread Dan Bolser
t;+--++--+ >| 1 | 1 | 0 | >| 5 | 2 | 2 | >+--++--+ > >or GROUP_ROW(cols,sortby=) > >-- More sillyness >SELECT id, group_row(child_id,type,sortby=rand()) >FROM chi2 GROUP BY id; > >Just an idea. > >Dan. > >On Mon, 11 Apr

Re: Group By - Is there a way to set which rows values are used for the fields not in the Group By clause?

2005-04-12 Thread Dan Bolser
id, group_row(child_id,type,sortby=rand()) FROM chi2 GROUP BY id; Just an idea. Dan. On Mon, 11 Apr 2005, Rich Carr wrote: >Is there a way to set which rows values are used by the GROUP BY clause >for the fields that are not in the GROUP BY clause? > In this following select statement

Group By - Is there a way to set which rows values are used for the fields not in the Group By clause?

2005-04-11 Thread Rich Carr
Is there a way to set which rows values are used by the GROUP BY clause for the fields that are not in the GROUP BY clause? In this following select statement the group by and order work but the value of the lastviewtime field is not the value of the most recent datetime row. Is there any

Re: subquery fails when a NOT IN operator tests a subset with NULL valu

2005-03-16 Thread Giuseppe Maxia
Peter Brawley wrote: Giuseppe, >mysql> select 2 not in (1,null,3); >+-+ >| 2 not in (1,null,3) | >+-+ >|NULL | >+-+ >1 row in set (0.00 sec) ># NOT OK Isn't that standard SQL b

Re: subquery fails when a NOT IN operator tests a subset with NULL valu

2005-03-16 Thread Peter Brawley
Giuseppe, >mysql> select 2 not in (1,null,3); >+-----+ >| 2 not in (1,null,3) | >+-+ >|NULL | >+-+ >1 row in set (0.00 sec) ># NOT OK Isn't that standard SQL behaviour? NULL is not a value. N

Re: subquery fails when a NOT IN operator tests a subset with NULL valu

2005-03-16 Thread Harald Fuchs
In article <[EMAIL PROTECTED]>, Giuseppe Maxia <[EMAIL PROTECTED]> writes: > The whole point is actually in subqueries, not when using IN or NOT IN in a > normal query. > The bug occurs when a NOT IN is used in a subquery as a LEFT JOIN replacement. > SELECT something f

Re: subquery fails when a NOT IN operator tests a subset with NULL valu

2005-03-16 Thread Giuseppe Maxia
Dan Nelson wrote: In the last episode (Mar 16), Giuseppe Maxia said: Here is a description of what looks like a serious bug. This is related to bugs #7294 and #6247 Tested against mysql 4.1.9 and 4.1.10. Description: operator NOT IN fails when a subquery returns one or more NULL values. How

Re: subquery fails when a NOT IN operator tests a subset with NULL valu

2005-03-16 Thread Dan Nelson
In the last episode (Mar 16), Giuseppe Maxia said: > Here is a description of what looks like a serious bug. This is > related to bugs #7294 and #6247 > > Tested against mysql 4.1.9 and 4.1.10. > > >Description: > operator NOT IN fails when a subquery

subquery fails when a NOT IN operator tests a subset with NULL valu

2005-03-15 Thread Giuseppe Maxia
Hi. Here is a description of what looks like a serious bug. This is related to bugs #7294 and #6247 Tested against mysql 4.1.9 and 4.1.10. Cheers Giuseppe Maxia >Description: operator NOT IN fails when a subquery returns one or more NULL values. >How-To-Repeat: simple pr

Is there something broken with IN()? WAS: How can I find the records that are NOT IN the list

2005-02-24 Thread Daevid Vincent
SQL: SELECT scan_id FROM V2_Data.pluginlist_view WHERE scan_id = 10539 LIMIT 1 total = 110 > -Original Message- > From: Daevid Vincent [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 24, 2005 4:20 PM > To: mysql@lists.mysql.com > Subject: How can I find the records

How can I find the records that are NOT IN the list

2005-02-24 Thread Daevid Vincent
I have an "IN()" list of 107 IDs (PK) out of about 6000 possible. I do this query and I get 105 rows back. I want to know which two [107 - 105 = 2] of the IDs in the "IN()" list are absent? # 105 rows SELECT count(*) FROM mytable WHERE id IN (11704, 10144, 11842, 11299, 11192, 11563, 11378,

RE: Finding records not in a set

2004-10-10 Thread Bartis, Robert M (Bob)
lto:[EMAIL PROTECTED] Sent: Saturday, October 09, 2004 9:30 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Finding records not in a set Keep in mind EXISTS/NOT EXISTS are for SQL (Parent) Heavy queries Otherwise you should use IN/NOT IN Martin Gainty 617-852-7822 Man1: In my next life I w

RE: Finding records not in a set

2004-10-09 Thread Bartis, Robert M (Bob)
- From: Bartis, Robert M (Bob) [mailto:[EMAIL PROTECTED] Sent: Saturday, October 09, 2004 8:48 AM To: [EMAIL PROTECTED] Subject: Finding records not in a set I have a query, call qry_AssociatedFeatures, that finds all features associated with a given plan SELECT functionalsubgroup.Functional

Finding records not in a set

2004-10-09 Thread Bartis, Robert M (Bob)
I have a query, call qry_AssociatedFeatures, that finds all features associated with a given plan SELECT functionalsubgroup.Functional, functionalsubgroup.SubGroup, main_db.Feature, main_db.FeatureKey, functionalsubgroup.FSKey, featureenable.PlanName FROM featureenable INNER JOIN (main_db INNER

Re: Finding the records in one table that are not in another table

2004-07-10 Thread mos
ex on 'id' in both tables so the join can use an index. Mike http://dev.mysql.com/doc/mysql/en/JOIN.html At 11:03 AM 7/10/2004, you wrote: I have 2 tables - ProductsOLD and ProductsNEW. I need to find the records that are in the ProductsOLD table and are NOT in ProductsNEW (this will

Re: Finding the records in one table that are not in another table

2004-07-10 Thread Rory McKinley
Jeff Gannaway wrote: I have 2 tables - ProductsOLD and ProductsNEW. I need to find the records that are in the ProductsOLD table and are NOT in ProductsNEW (this will tell me which products have been discontinued). Here's some sample data: +==+ | Produc

Finding the records in one table that are not in another table

2004-07-10 Thread Jeff Gannaway
I have 2 tables - ProductsOLD and ProductsNEW. I need to find the records that are in the ProductsOLD table and are NOT in ProductsNEW (this will tell me which products have been discontinued). Here's some sample data: +==+ | ProductsOLD | +==+ + Vendor

Re: Spatial not in current 4.1.3 build?

2004-07-06 Thread Sergei Golubchik
Hi! On Jul 06, Barend K?bben wrote: > It seems the Spatial Extension is not in the 4.1.3 binary (for Win)...? You're right :( Sorry for this. We recently made GIS features optional, but ON by default. Unfortunately, this "default" is the value of ./configure switch and does no

Spatial not in current 4.1.3 build?

2004-07-06 Thread Barend Köbben
It seems the Spatial Extension is not in the 4.1.3 binary (for Win)...? This is frustating, as I am a GIS/Spatial database developer using until now succesfully the earlier alpha in my projects. I am not a programmer and certainly do not want to go into building my own binaries. Why this

Re: selecting what NOT in the table..

2004-05-28 Thread Brent Baisley
Why not search on if it's there, if no results are returned, you know it's not there. SELECT count(*) as langcount from db where lang=$lang; If you want to check for multiple items at once: SELECT count(*) as langcount from db where lang in ('lang1', 'lang2', ...) Since you don't want to actual

selecting what NOT in the table..

2004-05-28 Thread LR Sieting
Hello, I have several tables that have a common column. I need to check those tables for 1 of 4 items. If that item does not exist, I jump to a page saying it is coming soon... I am passing a variable ($lang) around using php to select info based on that column. what would be a suggested sel

Re: Sintax - Where xx not in (another Select structure)

2004-03-04 Thread Egor Egorov
Gabriel Alessandria <[EMAIL PROTECTED]> wrote: > There exists the possibility of doing a SELECT where the list of IN() clause > is the result of another select ? > > Like this for example > > > Select Number from Phone where Number not in > ( > SELECT Nu

Re: Sintax - Where xx not in (another Select structure)

2004-03-04 Thread vpendleton
This functionality exists in 4.1.x versions of MySQL >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< On 3/4/04, 8:07:15 AM, Gabriel Alessandria <[EMAIL PROTECTED]> wrote

Re: Sintax - Where xx not in (another Select structure)

2004-03-04 Thread Victor Medina
ult of another select ? > > Like this for example > > > Select Number from Phone where Number not in > ( > SELECT Number from Vendor, Clients > where Vendor.Number=Clients.Numbe

  1   2   3   >