Re: [SQL] Restore deleted records

2003-08-26 Thread CoL
Hi, Konstantin Petrenko wrote, On 8/26/2003 11:37 AM: Hello. I accidentally deleted some recordes from my table. How can I restore them? Is it possible in 7.3.3? if you have a dump, or you are still in a transaction, you can rollback. C. ---(end of broadcast)---

[SQL] regarding the same in db2 - fetch tuples

2003-08-26 Thread shyamperi
August 26th 2003 12:31p Thank you for the quick response.., can u plz tell me how can I do that in db2 also.. Have a grate day - Warm Regards Shÿam Peri II Floor, Punja Building, M.G.Road, Ballalbagh, Mangalore-575003 Ph : 91-824-2451001/5 Fax : 91-824-2451050 DISCLAIMER: This message c

Re: [SQL] Fetch the required rows

2003-08-26 Thread Bruno Wolff III
On Tue, Aug 26, 2003 at 23:15:48 +0530, [EMAIL PROTECTED] wrote: > August 26th 2003 > 11:30p > How do I get the required number of rows thru a query.. > I mean...If I want to show 10 tuples per page.. instead of getting all the tuples > from the relation and do some front end manipulation, is th

[SQL] Fetch the required rows

2003-08-26 Thread shyamperi
August 26th 2003 11:30p How do I get the required number of rows thru a query.. I mean...If I want to show 10 tuples per page.. instead of getting all the tuples from the relation and do some front end manipulation, is there any way by which I can get only 10 required tuples from the relation Ha

[SQL] Restore deleted records

2003-08-26 Thread Konstantin Petrenko
Hello.I accidentally deleted some recordes from my table. How can I restorethem? Is it possible in 7.3.3?ThanksKonstantin Petrenko.

[SQL] Eliminating duplicate lists

2003-08-26 Thread Richard Huxton
TIA all... Four tables: content: content_id, content_name, ... content_features: content_id, feature_id device_features: device_id, feature_id device: device_id, device_name, ... One item of content can run on many devices, providing all the required features in "content_features" corres

Re: [SQL] Strange behavior with timestamptz

2003-08-26 Thread George Weaver
Hi Tom, Not believing that PostgreSQL would be less consistent than Microsoft :-), I spent some time looking at how the application actually was transferring the date to the database procedure. When the datereceived parameter was defined as type Date, it was actually arriving at the procedure as

Re: [SQL] Strange behavior with timestamptz

2003-08-26 Thread Tom Lane
> ... When the datereceived parameter was defined > as type Date, it was actually arriving at the procedure as "11-08-2003" and > "25-08-2003" in spite of showing up as indicated below. When I redefined > the datereceived parameter as type OdbcDate, it arrived correctly at the > procedure as "2003

Re: [SQL] postgres 7.1.3: why does the query plan ignore indexes?

2003-08-26 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Should we consider adding some warning when someone creates an index on > an int2 column? I don't think so. Better to expend our energy on solving the fundamental problem. regards, tom lane ---(end of br

[SQL] One-2-many relation - need distinct counts

2003-08-26 Thread PS PS
Hi gurus, I have table A, B and need a distinct count of Accounts from A. There is a one-2-many relation between A and B. Accounts # in A are all unique. However, in B there will be duplicates. So the problem I have is, when I join as follows: Select Count(Distinct(account_no)) from A, B whe

Re: [SQL] [ZODB-Dev] What are the ZopeDB limit?

2003-08-26 Thread Michele Bendazzoli
On Tue, 2003-08-26 at 08:50, BenLaKnet wrote: > just one question > > You use zope with postgresql ?? yes. > No problem of connection ? Until now no. I use debian unstable. ciao, Michele ---(end of broadcast)--- TIP 1: subscribe and unsubscribe

Re: [SQL] [ZODB-Dev] What are the ZopeDB limit?

2003-08-26 Thread BenLaKnet
just one question You use zope with postgresql ?? No problem of connection ? Michele Bendazzoli wrote: On Mon, 2003-08-25 at 09:12, Michele Bendazzoli wrote: ops ... apologies for the message. Michele ---(end of broadcast)--- TIP 7: don't fo

Re: [SQL] Strange behavior with timestamptz

2003-08-26 Thread Tom Lane
"George Weaver" <[EMAIL PROTECTED]> writes: > Does anyone have any idea why the default for seedlot recorded the time wit= > h the day and month switched, resulting in the seedlot record being stamped= > Nov 8, 2003 while the transaction was stamped correctly as Aug 11, 2003? It's really not poss

Re: [SQL] Strange behavior with timestamptz

2003-08-26 Thread George Weaver
Hi Tom, I have written both the application and the PostgreSQL procedures (still in development). All the timestamps I referred to are created by default when the stored procedure is invoked. The problem may be due to some inconsistency in how PostgreSQL is interpreting what the operating system

Re: [SQL] How to join from two tables at once?

2003-08-26 Thread Stephan Szabo
On Mon, 25 Aug 2003, Joseph Shraibman wrote: > How can I join on one table with join conditions refering to two tables? In this > example > p is missing an entry that corresponds to u. I want to select from u and p, but have > entries in u that don't have an entry in p. The problem is I need t

Re: [SQL] postgres 7.1.3: why does the query plan ignore indexes?

2003-08-26 Thread Bruce Momjian
Should we consider adding some warning when someone creates an index on an int2 column? --- Tom Lane wrote: > Marco Vezzoli <[EMAIL PROTECTED]> writes: > > ewsweb_test=> \d measures_product > > Index "measures_product" > >

Re: [SQL] How to join from two tables at once?

2003-08-26 Thread Ian Barwick
On Tuesday 26 August 2003 02:58, Joseph Shraibman wrote: > How can I join on one table with join conditions refering to two tables? > In this example p is missing an entry that corresponds to u. I want to > select from u and p, but have entries in u that don't have an entry in p. > The problem i

[SQL] How to join from two tables at once?

2003-08-26 Thread Joseph Shraibman
How can I join on one table with join conditions refering to two tables? In this example p is missing an entry that corresponds to u. I want to select from u and p, but have entries in u that don't have an entry in p. The problem is I need to go through table a to get the corresponding value