Re: [SQL] Newbie ex-Oracle person's question: Oracle ROWID = PSQL OID, Orac le ROWNUM = PSQL ???

2001-05-11 Thread Cliff Crawford
the ORDER BY, which is not of much use as adding an ORDER > BY jumbles them up. Duh! LIMIT in PostgreSQL applies *after* ORDER BY, so you won't have this problem :) -- Cliff Crawford http://www.sowrong.org/ birthday party cheesecake jellybean BOOM ---(e

Re: [SQL] Dateadd

2001-05-04 Thread Cliff Crawford
:date + '2 months 10 days'::interval; ?column? 2000-03-11 00:00:00-05 (1 row) -- Cliff Crawford http://www.sowrong.org/ birthday party cheesecake jellybean BOOM ---(end of broadcast)--- TIP 5: Have y

Re: [SQL] SQL Dummy Needs Help

2001-03-12 Thread Cliff Crawford
* Cliff Crawford <[EMAIL PROTECTED]> menulis: > > SELECT table2.title_no, table2.paidto_date > FROM table1, table2 > WHERE table1.title_no=table2.title_no > AND (date_part('month', table1.effect_date) != > date_part('month',

Re: [SQL] SQL Dummy Needs Help

2001-03-12 Thread Cliff Crawford
27;month', table1.effect_date) != date_part('month', table2.paidto_date) OR date_part('day', table1.effect_date) != date_part('day', table2.paidto_date)); (At least, I think that will work, but I never trust any SQL I write without thorou