pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Johnston <polobo@yahoo.com>
To: 'Rehan Saleem' <pk_rehan@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: Re: Postgresql function which compares values from both tables
Date: Mon, 19 Mar 2012 16:04:04 -0400
Message-ID: <00b101cd060b$6f87a560$4e96f020$@yahoo.com> (raw)
In-Reply-To: <1332186006.44650.YahooMailNeo@web121605.mail.ne1.yahoo.com>
References: <1332186006.44650.YahooMailNeo@web121605.mail.ne1.yahoo.com>

You would need to install the "HSTORE" extension to convert the record into
a key->value pair then perform the comparison on that.

 

Dave

 

 

From: pgsql-sql-owner@postgresql.org [mailto:pgsql-sql-owner@postgresql.org]
On Behalf Of Rehan Saleem
Sent: Monday, March 19, 2012 3:40 PM
To: pgsql-sql@postgresql.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.
thanks

view thread (5+ messages)  latest in thread

Message-ID: <00b101cd060b$6f87a560$4e96f020$@yahoo.com>
Permalink:  ../00b101cd060b$6f87a560$4e96f020$@yahoo.com/
Also on:    postgresql.org/message-id/00b101cd060b$6f87a560$4e96f020$@yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: polobo@yahoo.com, pk_rehan@yahoo.com
  Subject: Re: Postgresql function which compares values from both tables
  In-Reply-To: <00b101cd060b$6f87a560$4e96f020$@yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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