pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
-query sql
2+ messages / 2 participants
[nested] [flat]

* -query sql
@ 2000-10-03 08:16  Nema, Vivek <nema@softlink.ch>
  0 siblings, 1 reply; 2+ messages in thread

From: Nema, Vivek @ 2000-10-03 08:16 UTC (permalink / raw)
  To: pgsql-sql

Hi!
   a small query may be u can help me.
 i just wanted to compare 2 columns in 2 tables.how can i do it in sql
statement.i know it is possible somehow i am not able to write my query.
i am using RDB 6.0

Any pointer or help will be highly appreciated.

Thanx
-vivek



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: -query sql
@ 2000-10-10 00:17  John McKown <joarmc@swbell.net>
  parent: Nema, Vivek <nema@softlink.ch>
  0 siblings, 0 replies; 2+ messages in thread

From: John McKown @ 2000-10-10 00:17 UTC (permalink / raw)
  To: Nema, Vivek <nema@softlink.ch>; +Cc: pgsql-sql

On Tue, 3 Oct 2000, Nema, Vivek wrote:

> Hi!
>    a small query may be u can help me.
>  i just wanted to compare 2 columns in 2 tables.how can i do it in sql
> statement.i know it is possible somehow i am not able to write my query.
> i am using RDB 6.0
> 
> Any pointer or help will be highly appreciated.
> 

What is RDB? This list is for PostgreSQL. However, in general, suppose you
have column1 in table1 and column2 in table2, you can select rows where
they are equal by doing something like:

SELECT table1.column1, table1.another, table2.thisone,
FROM table1, table2
WHERE table1.column1=table2.column2;

Change the information you want in the first line of the SELECT. I just
made up some names.

Hope this helps,
John




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2000-10-10 00:17 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-10-03 08:16 -query sql Nema, Vivek <nema@softlink.ch>
2000-10-10 00:17 ` John McKown <joarmc@swbell.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox