Re: [SQL] why these results?

2011-08-01 Thread Reinoud van Leeuwen
uot; in column "col" so the !~~* should return 99 rows. ?? Wild guess: select count (*) from table where col is null; count ------ 1 (1 row) ";-) Reinoud -- __ "Nothing is as subjective as reality" Reinoud van Leeuwen

Re: [SQL] Max column number.

2011-07-13 Thread Reinoud van Leeuwen
row. Still, you could normalize the data in a better way, and present it to users or an application with views or stored procedures... Reinoud -- __ "Nothing is as subjective as reality" Reinoud van Leeuwenreinou...@n.leeuwen.

Re: [SQL] Max column number.

2011-07-12 Thread Reinoud van Leeuwen
_ "Nothing is as subjective as reality" Reinoud van Leeuwenreinou...@n.leeuwen.net http://reinoud.van.leeuwen.net kvk 27320762 __ -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.pos

Re: [SQL] Max column number.

2011-07-12 Thread Reinoud van Leeuwen
t datamodel? Reinoud -- __ "Nothing is as subjective as reality" Reinoud van Leeuwenreinou...@n.leeuwen.net http://reinoud.van.leeuwen.net kvk 27320762 __ -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To ma

Re: [SQL] Issue with postgres connectivity

2011-01-21 Thread Reinoud van Leeuwen
e. > > Please provide me with some guidelines. Ask me any queries. this smells like DNS resolving... Reinoud -- __ "Nothing is as subjective as reality" Reinoud van Leeuwenreinou...@n.leeu

Re: [SQL] backup and document views and user functions

2010-08-30 Thread Reinoud van Leeuwen
rting mechanism. psql shell command for such report will be just fine. pg_dump? -- __ "Nothing is as subjective as reality" Reinoud van Leeuwenreinou...@n.leeuwen.net http://reino

Re: [SQL] Question on COUNT performance

2010-07-14 Thread Reinoud van Leeuwen
ble does not have to be read at all). Reinoud -- ______ "Nothing is as subjective as reality" Reinoud van Leeuwenreinou...@n.leeuwen.net http://reinoud.van.leeuwen.net kvk 27320762 __ -- Sent via pgsql-sql mailing list (pgsql-

Re: [SQL] Question on COUNT performance

2010-07-14 Thread Reinoud van Leeuwen
gt; What can I do to improve the performance? Have you tried 'select count (1)..."? Reinoud -- ______________ "Nothing is as subjective as reality" Reinoud van Leeuwenreinou...@n.leeuwen.net http://reinoud.van.leeuwen.net kvk 27320762

Re: [SQL] oracle to postgres migration question

2010-06-15 Thread Reinoud van Leeuwen
server or the client? This sounds like a client issue to me.. Reinoud -- ______________ "Nothing is as subjective as reality" Reinoud van Leeuwenreinou...@n.leeuwen.net http://reinoud.van.leeuwen.net kvk 27320762 __ -- Sent via pgsql-sql m

Re: [SQL] Support for SQL TOP clause?

2008-01-10 Thread Reinoud van Leeuwen
ng is as subjective as reality" Reinoud van Leeuwen[EMAIL PROTECTED] http://www.xs4all.nl/~reinoud __ ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to

[SQL] record fields as columns in reports

2007-06-28 Thread Reinoud van Leeuwen
(some errors might not have entries on some dates) Has somebody ever made a generic solution for something like this? (or do I need a reporting tool?) Thanks in advance, Reinoud -- __ "Nothing is as subjective as reality" Reinoud v

Re: [SQL] workday function

2007-05-15 Thread Reinoud van Leeuwen
o account? (and wich ones?) -- __ "Nothing is as subjective as reality" Reinoud van Leeuwen[EMAIL PROTECTED] http://www.xs4all.nl/~reinoud __ ---(end of broadcast)--- TIP 1: if posting/rea

Re: [SQL] [ADMIN] Deadlock on transaction

2007-02-12 Thread Reinoud van Leeuwen
database in the same order. Alphabetically is easiest to remember... -- __ "Nothing is as subjective as reality" Reinoud van Leeuwen[EMAIL PROTECTED] http://www.xs4all.nl/~reinoud __ ---

Re: [SQL] How to delete multiple records

2006-09-14 Thread Reinoud van Leeuwen
t test if some records exist. They allways do, so the where clause evaluates to true for every row -- ______________ "Nothing is as subjective as reality" Reinoud van Leeuwen[EMAIL PROTECTED] http://www.xs4all.nl/~reino

Re: [SQL] ORDER BY CASE ...

2006-02-13 Thread Reinoud van Leeuwen
does not contain any column to sort on. So I think it will evaluate to some constant value and not sorting is really done -- ______ "Nothing is as subjective as reality" Reinoud van Le

Re: [SQL] Query about SQL in PostgreSQL

2005-04-19 Thread Reinoud van Leeuwen
___________ "Nothing is as subjective as reality" Reinoud van Leeuwen[EMAIL PROTECTED] http://www.xs4all.nl/~reinoud __ ---(end of broadcast)--- TI

Re: [SQL] More efficient OR

2005-02-16 Thread Reinoud van Leeuwen
7;C' > > Is there a more efficient SQL statement that accomplishes the same limiting > functionality? I do not know wheter it is more efficient in terms of execution, but I can read this more efficiently: WHERE column1 in ('A', 'B', 'C') -- _______

Re: [SQL] UNIQUE columnt depdening on other column???

2004-06-02 Thread Reinoud van Leeuwen
rigger that sets the uniqueness column to 0 when the active column equals 'y'. This will result in: - unique num columns (or the index will fail) where active = 'y' - arbitrary num colums (index will always be unique) where active = 'n' --

Re: [SQL] problem porting MySQL SQL to Postgres

2004-04-15 Thread Reinoud van Leeuwen
an operator '=' for types 'character' and > 'boolean' You will have to retype this query using an explicit cast. can you post the output of '\d lu_dewey'? -- __ "Nothing is as

Re: [SQL] comparing nulls

2004-01-20 Thread Reinoud van Leeuwen
e IS operator: where field IS null -- __ "Nothing is as subjective as reality" Reinoud van Leeuwen[EMAIL PROTECTED] http://www.xs4all.nl/~reinoud __ ---(end of broadcast)--- TIP 7:

Re: [SQL] Copying rows between tables?

2004-01-13 Thread Reinoud van Leeuwen
file)? Without destroying existing > entries, of course... insert into desttable (col1, col2, col3) select col1, col2, col3 from sourcetable where somecol = somevalue; -- __ "Nothing is as subjective as reality" Reinoud van Leeuw

Re: [SQL] Insert a description while creating a table

2003-08-14 Thread Reinoud van Leeuwen
t_id), object_subobject_def_fk btree (subobject_def_id) Triggers: tdb_object, tiua_object, tiub_object -- __ "Nothing is as subjective as reality" Reinoud van Leeuwen[EMAIL PROTECTED] http://www.xs4all.nl/~reinoud

Re: [SQL] Database Design tool

2002-11-01 Thread Reinoud van Leeuwen
need a tool like this -- __ "Nothing is as subjective as reality" Reinoud van Leeuwen [EMAIL PROTECTED] http://www.xs4all.nl/~reinoud ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-no

Re: [SQL] stored procedures: sybase -> postgreSQL ?

2002-09-10 Thread Reinoud van Leeuwen
Sybase Powerdesigner. You can read the Sybase definition, and create a Postgresql definition from there. An evaluation version (fully functional for a limited time) is downloadable from the Sybase website -- ______________ "Nothing is a

[SQL] Re: Date manipulation

2001-06-05 Thread Reinoud van Leeuwen
unctions-formatting.html and http://www.postgresql.bit.nl/devel-corner/docs/user/functions-datetime.html -- __ "Nothing is as subjective as reality" Reinoud van Leeuwen [EMA

[SQL] Re: Stored Procedures?

2001-05-28 Thread Reinoud van Leeuwen
Is something like this posstible in PostgreSQL? -- __ "Nothing is as subjective as reality" Reinoud van Leeuwen [EMAIL PROTECTED] http://www.xs4all.nl/~reinoud __