Skip site navigation (1) Skip section navigation (2)

Re: Postgresql function which compares values from both tables

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 (view raw or flat)
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."




In response to

pgsql-sql by date

Next:From: Bèrto ëd SèraDate: 2012-03-20 10:14:00
Subject: Setting the process title, or can I?
Previous:From: David JohnstonDate: 2012-03-19 22:14:53
Subject: Re: Postgresql function which compares values from both tables

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group