[SQL] still sorting and casting problems

2002-09-12 Thread juerg . rietmann
cast (log_date as date) desc select id, log_date from userlog order by date(log_date) desc Please help and thank's in advance ... jr __ PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Switzerland

[SQL] how to cast this ?

2002-09-12 Thread juerg . rietmann
(log_time as timestamp) is not working. Thank's in advance ... jr __ PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Switzerland internet : www.pup.ch phone : +4141 790 404

[SQL] how to use nextval()

2002-07-05 Thread juerg . rietmann
r any help ... jr __ PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Switzerland internet : www.pup.ch phone : +4141 790 4040 fax : +4141 790 2545 mobile: +417

[SQL] date_ge and time_ge

2002-06-21 Thread juerg . rietmann
userlog : (See attached file: userlog.htm) __ PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Switzerland internet : www.pup.ch phone : +4141 790 4040 fax : +4141 790 2545 mobile

[SQL] function text_ge(text, text), how to use on version 7.2

2002-06-18 Thread juerg . rietmann
datum, '01.01.2004') Thanks in advance ... Juerg Rietmann __ PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Switzerland internet : www.pup.ch phone : +4141 790 4040 fax : +4141

[SQL] function not running after upgrade from 7.03 to 7.2

2002-06-14 Thread juerg . rietmann
COMMENT ON FUNCTION "buildUmfang"("bpchar") IS 'Diese Funktion generiert einen String mit allen Umfängen zum übergebenen Zylindertyp\n\n'; Query : SELECT *, (SELECT rtrim(buildUmfang(zylinder.z_typ), ','::text) AS rtrim) AS umfang FROM zylinder; Thank'

[SQL] Function not running after upgrade 7.03 to 7.2

2002-06-14 Thread juerg . rietmann
NT ON FUNCTION "buildUmfang"("bpchar") IS 'Diese Funktion generiert einen String mit allen Umfängen zum übergebenen Zylindertyp\n\n'; Query : SELECT *, (SELECT rtrim(buildUmfang(zylinder.z_typ), ','::text) AS rtrim) AS umfang FROM zylinder; Thank's in advan

[SQL] select only the first record

2001-07-10 Thread juerg . rietmann
Hello there Is it possible to do a query and selecting only the first record in ad table ? e.g. select FIRST * from cars Tx in advance ... jr PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Switzerland

[SQL] how to add an new record from part of an old one

2001-05-17 Thread juerg . rietmann
help ... jr insert into auftrag (a_nr, a_kurzbez) values (123456789, 'testtext') (select a_bez from auftrag where a_nr='200113672732') PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Swit

[SQL] calling a function within a view causes problems doing a pg_dumpall

2001-05-07 Thread juerg . rietmann
r_z_typ)) AS r_z_alaenge_r, FROM rotation; Thanks for any help ... jr ==== PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Switzerland phone: +4141 790 4040 fax: +4141 790 2545 mobile: +4179 211 0315 =

[SQL] how to do this join ?

2001-04-06 Thread juerg . rietmann
orary store the kind of auftrag and then use it to get the definition (clear text) from another table. The query returns that typ is not known . How can I do it ? Thanks ... jr PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a

[SQL] Re: Still don't know how to build this string ?

2001-03-27 Thread juerg . rietmann
NEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Switzerland phone: +4141 790 4040 fax: +4141 790 2545 mobile: +4179 211 0315 ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, plea

[SQL] Re: Still don't know how to build this string ? how to concat ??

2001-03-27 Thread juerg . rietmann
NGUAGE 'plpgsql'; PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Switzerland phone: +4141 790 4040 fax: +4141 790 2545 mobile: +4179 211 0315 ---

[SQL] Still don't know how to build this string ?

2001-03-26 Thread juerg . rietmann
011120 02760 02780 02800 02900 031200 031234 031352 select diam from zylinder where typ='01' should produce the string "800,840,870,1120" PFISTER + PARTNER, SYSTEM -

[SQL] how to build this string ?

2001-03-22 Thread juerg . rietmann
031234 031352 select diam from zylinder where typ='01' should produce the string "800,840,870,1120" Thanks for any help ... jr PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreu

[SQL] postmaster not starting on my MS WIN NT

2001-03-20 Thread juerg . rietmann
semaphore stuff. Thanks for any help ... jr (See attached file: cygwin.gif) PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Switzerland phone: +4141 790 4040 fax: +4141 790 2545 mobile: +4179 211 0315

[SQL] postgres DB temporary on NT

2001-03-19 Thread juerg . rietmann
NT, all I need is the postgres DB or a 100% compatible on NT. Any ideas ?? Thanks in advance ... jr PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Switzerland phone: +4141 790 4040 fax: +4141 790 2545 mobile

[SQL] copy a record from one table to another (archive)

2001-03-13 Thread juerg . rietmann
Hello there Is it possible to move a record from one table to another to do a archive with a simple command like move ? Thanks jr PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Switzerland phone

[SQL] How to build this field

2001-03-08 Thread juerg . rietmann
PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Switzerland phone: +4141 790 4040 fax: +4141 790 2545 mobile: +4179 211 0315 ---(end of broadcast

[SQL] no value for numeric filed in SQL statement causes an error

2001-01-31 Thread juerg . rietmann
') The default for int/float fields is 0. Since I reuse the code of the referring page I don't like to have all fields assigned 0 at the beginning. Who can help ??? Thanks ... jr PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grund

[SQL] how to query this ??

2001-01-26 Thread juerg . rietmann
ISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Switzerland phone: +4141 790 4040 fax: +4141 790 2545 mobile: +4179 211 0315 queryDetails.doc

[SQL] monster query, how to make it smaller

2001-01-23 Thread juerg . rietmann
(See attached file: monsterQuery.txt) PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Switzerland phone: +4141 790 4040 fax: +4141 790 2545 mobile: +4179 211 0315

[SQL] how to store this record ?? pg_atoi

2001-01-09 Thread juerg . rietmann
=== PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Switzerland phone: +4141 790 4040 fax: +4141 790 2545 mobile: +4179 211 0315

[SQL] how to build this query ??? Please help !!!

2001-01-03 Thread juerg . rietmann
3 120dm PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Switzerland phone: +4141 790 4040 fax: +4141 790 2545 mobile: +4179 211 0315

[SQL] SQL query not working when GROUP BY / HAVING is used

2000-12-19 Thread juerg . rietmann
ylinder.Z_typ ANDZ_A_nr =NULL ANDZ_status = 'zcu' ORDER BY Zylinder_Typen.Z_durch_soll desc Whats wrong, according to the docs, the syntax is ok and it should be possible to use these keywords! PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Switzerland phone: +4141 790 4040 fax: +4141 790 2545 mobile: +4179 211 0315