From: | Jayadevan M <Jayadevan(dot)Maymala(at)ibsplc(dot)com> |
---|---|
To: | "'Rehan Saleem'" <pk_rehan(at)yahoo(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org, pgsql-sql-owner(at)postgresql(dot)org |
Subject: | Re: Postgresql function which compares values from both tables |
Date: | 2012-03-20 03:21:10 |
Message-ID: | OFABE068CC.D9FD08D9-ON652579C7.0012372D-652579C7.00126B68@ibsplc.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Hi,
> To: pgsql-sql(at)postgresql(dot)org
> Subject: [SQL] Postgresql function which compares values from both
tables
>
> hi ,
> how to write a function which should read data from 2 tables having
> same number of columns and should show the common values from those
tables.
If you want to compare and ensure that the values are same for all
columns, please have a look at INTERSECT
http://www.postgresql.org/docs/9.1/static/sql-select.html
Regards,
Jayadevan
DISCLAIMER:
"The information in this e-mail and any attachment is intended only for
the person to whom it is addressed and may contain confidential and/or
privileged material. If you have received this e-mail in error, kindly
contact the sender and destroy all copies of the original communication.
IBS makes no warranty, express or implied, nor guarantees the accuracy,
adequacy or completeness of the information contained in this email or any
attachment and is not liable for any errors, defects, omissions, viruses
or for resultant loss or damage, if any, direct or indirect."
From | Date | Subject | |
---|---|---|---|
Next Message | Bèrto ëd Sèra | 2012-03-20 10:14:00 | Setting the process title, or can I? |
Previous Message | David Johnston | 2012-03-19 22:14:53 | Re: Postgresql function which compares values from both tables |