Re: row not ordered by primary key in a general query

2009-11-10 Thread Bryan Pendleton
I know that i am not specifying any ORDER BY clause, but i saw, in general, that this is the default behaviour in other databases system This was just an example query but i was just wondering if the table may be corrupt or i can have some problems on the database or this is normal. It's totall

row not ordered by primary key in a general query

2009-11-10 Thread rob
Hi, i have a table and i noted that if i do a query like "select * from table" i get the data from this table not ordered by primary key (the primary key field is not auto increment). I know that i am not specifying any ORDER BY clause, but i saw, in general, that this is the default behaviour

Re: Re: Derby 10.5.3: subquery performance using "IN"

2009-11-10 Thread Andrew Alsup
> Is it possible to rewrite this as a top-level join, without using a subquery? > > Something along the lines of: > > SELECT em.end_item_meter_id > FROM end_item_meter em > inner join Meter_Reading mr > on em.end_Item_meter_id = mr.end_item_meter_id > INNER JOIN End_Ite

Re: Derby 10.5.3: subquery performance using "IN"

2009-11-10 Thread Bryan Pendleton
-- This is the real query (with subquery) SELECT em.end_item_meter_id FROM end_item_meter em WHERE em.end_Item_meter_id IN ( SELECT mr.end_item_meter_id FROM Meter_Reading mr

Re: Database in a jar starts from another dir

2009-11-10 Thread François
Hi Knut Thanks, that was the trick to use ! François

RE: How to connect derby by python

2009-11-10 Thread derby
> -Original Message- > From: kristian.waa...@sun.com [mailto:kristian.waa...@sun.com] > Sent: Tuesday, November 10, 2009 7:32 AM > To: Derby Discussion > Subject: Re: How to connect derby by python > > Zhang Qian wrote: > > Hi, > > > > I have to access derby DB with my python script, but

Re: How to connect derby by python

2009-11-10 Thread Kristian Waagan
Zhang Qian wrote: Hi, I have to access derby DB with my python script, but I do not know if there are any python modules for this purpose I can use. Any suggestions will be really appreciated! Hi Qian, What about using Jython :) There's an article describing how to connect to Python using

How to connect derby by python

2009-11-10 Thread Zhang Qian
Hi, I have to access derby DB with my python script, but I do not know if there are any python modules for this purpose I can use. Any suggestions will be really appreciated! Regards, Qian