Re: [SQL] inserting values into types

2004-12-04 Thread Yasir Malik
CREATE TYPE qwerty_UDT AS (abc INT); CREATE TABLE t (col1 qwerty_UDT); INSERT INTO t (col1) VALUES (qwerty_UDT(123)); ERROR: function qwerty_udt(integer) does not exist HINT: No function matches the given name and argument types. You may need to add explicit type casts. It seems as though you wa

Re: [SQL] sum query

2004-12-04 Thread Kretschmer Andreas
am Sat, dem 04.12.2004, um 12:38:11 - mailte Andrew - Supernews folgendes: Thank you for the very good explanation. > Notice I haven't used either IN or UNION. Using IN in place of a join is > unwise (even though recent versions can sometimes plan it as though it were > a join); using UNION

Re: [SQL] sum query

2004-12-04 Thread Andrew - Supernews
[if replying, please do so to the list / newsgroup only, not to me] On 2004-12-03, "Keith Worthington" <[EMAIL PROTECTED]> wrote: > Hi All, > > I am trying to join three tables and sum the quantities. > > The first table contains all of the possible items. The second table > contains orders and t

Re: [despammed] [SQL] sum query

2004-12-04 Thread Andreas Kretschmer
am 03.12.2004, um 16:33:40 -0500 mailte Keith Worthington folgendes: > Hi All, > > I am trying to join three tables and sum the quantities. > > The first table contains all of the possible items. The second table contains > orders and the third table contains the items on each order. > > For a