Re: [SQL] Re: [BUGS] "ORDER BY" issue - is this a bug?

2000-09-11 Thread Max Pyziur
On Mon, 11 Sep 2000, Lamar Owen wrote: > Max Pyziur wrote: > > I dropped my databases, uninstalled the 7.0.2-2 rpms and installed 6.5.3 rpms on > > my development RH6.2 Linux 2.2.14-5.0 system and I still get the anomalous query > > result on that box. > > This is a RedHat 6.2 locale problem.

Re: [SQL] How can I select all of the tables with field name 'area'?

2000-09-11 Thread G. Anthony Reina
Thanks Darrin and Stuart. -Tony Darrin Ladd wrote: > Here's what you are looking for: > > SELECT pg_class.relname > FROM pg_class, pg_attribute > WHERE pg_attribute.attname = 'area' > AND pg_attribute.attrelid = pg_class.oid; > > This should give you all of the classes (tables) which have th

Re: [SQL] How can I select all of the tables with field name 'area'?

2000-09-11 Thread Darrin Ladd
Here's what you are looking for: SELECT pg_class.relname FROM pg_class, pg_attribute WHERE pg_attribute.attname = 'area' AND pg_attribute.attrelid = pg_class.oid; This should give you all of the classes (tables) which have the attribute (field) 'area'. Cheers, Darrin -Original Message-

RE: [SQL] How can I select all of the tables with field name 'area'?

2000-09-11 Thread Stuart Foster
You should be able to query the system table that holds that column names. Not sure which it is tho. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of G. Anthony Reina Sent: Monday, September 11, 2000 4:38 PM To: [EMAIL PROTECTED] Subject: [SQL] How can I s

[SQL] How can I select all of the tables with field name 'area'?

2000-09-11 Thread G. Anthony Reina
I have a database with several tables. I'd like to pull out a list of names for the tables that contain the field (class) name 'area'. Can this be done? -Tony

Re: [SQL] Tree structure

2000-09-11 Thread Zeljko Trogrlic
Normally it's done with self-relation. You need a table with "ID" and "PARENT_ID". PARENT_ID will contain null for root level and other row's ID for children. One warning: going through such tree could be slow. I don't know is there anything PostgreSQL specific that might help. I know that Oracle

Re: [SQL] Isolation and Concurrency in PG functions?

2000-09-11 Thread Tom Lane
Roberto Mello <[EMAIL PROTECTED]> writes: > I am porting some VERY big functions to PG for a data warehousing system > (that is GPL'd BTW) and it seems that the results of one portion of the > function (e.g. a create table or a series of inserts) are invisible to > the other parts which obviously

Re: [SQL] need asap: bg_BG locale for FreeBSD

2000-09-11 Thread Oleg Bartunov
Palle, thanks for the message. I've created bulgarian locale from similar russian sources (I believe it's CP1251 charset). Hope it would be ok. Regards, Oleg On Mon, 11 Sep 2000, Palle Girgensohn wrote: > Date: Mon, 11 Sep 2000 15:51:23 +0200 > From: Palle Girgensohn <[

[SQL] Tree structure

2000-09-11 Thread Trewern, Ben
Title: Tree structure Anybody know how to make a tree structure using related tables using Postgres.  Something like a directory structure is what I'm aiming for.  I'm sure there is an easy way but I'm having probs. Any help would be appreciated. Ben.

Re: [SQL] need asap: bg_BG locale for FreeBSD

2000-09-11 Thread Palle Girgensohn
Oleg Bartunov wrote: > > Hi, > > I'm going to Bulgaria this week to setup FreeBSD server running > postgres and would like to know if somebody has an experience > with postgres and bulgarian locale. Actually, I need > bg_BG locale for FreeBSD. interesting that searching for > subject in internet

[SQL] making two columns out of one

2000-09-11 Thread Frank Bax
I've got a table containing some timesheet data. Fields are emp, earncode, lo_shift, hi_shift. SELECT emp, sum(hi_shift - lo_shift) as reghrs from timesheet where earncode in ('R', 'C', 'X') order by emp will give me all the regular hours SELECT emp, sum(hi_shift - lo_shift) as ovrhrs from tim

[SQL] need asap: bg_BG locale for FreeBSD

2000-09-11 Thread Oleg Bartunov
Hi, I'm going to Bulgaria this week to setup FreeBSD server running postgres and would like to know if somebody has an experience with postgres and bulgarian locale. Actually, I need bg_BG locale for FreeBSD. interesting that searching for subject in internet doesn't provide any information. The