pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: srikkanth <srikkanth16081991@rediffmail.com>
To: pgsql-admin@postgresql.org
To: pgsql-general@postgresql.org
Subject: SQL Query Syntax help 
Date: 22 Jan 2020 11:00:45 -0000
Message-ID: <20200122110045.14705.qmail@f4mail-235-235.rediffmail.com> (raw)

Hi Team,Can you please help me in writing the syntax for the below mentioned table.Input :&nbsp;						ID 			Col A			Col B			Col C			Col D			Col E			Col F							1111			aaaa			bbbb			cccc			dddd			eeee			ffff							2222			bbbb			cccc			dddd			eeee			ffff			aaaa							3333			cccc			dddd			eeee			ffff			aaaa			bbbb							4444			dddd			eeee			ffff			aaaa			bbbb			cccc							5555			eeee			ffff			aaaa			bbbb			cccc			dddd							6666			ffff			aaaa			bbbb			cccc			dddd			eeee							7777			cccc			dddd			eeee			ffff			aaaa			bbbb							8888			dddd			eeee			ffff			aaaa			bbbb			cccc							9999			ffff			aaaa			bbbb			cccc			dddd			eeee			&nbsp;Required Output :						ID 			Col Name			Col Value							1111			Col A			aaaa							1111			Col B			bbbb							1111			Col C			cccc							1111			Col D			dddd							1111			Col E			eeee							1111			Col F			ffff							2222			Col A			bbbb							2222			Col B			cccc							2222			Col C			dddd							2222			Col D			eeee							2222			Col E			ffff							2222			Col F			aaaa							3333			Col A			cccc							3333			Col B			dddd							3333			Col C			eeee							3333			Col D			ffff							3333			Col E			aaaa							3333			Col F			bbbb			And so on for the 4444, 5555, 6666, 7777, 8888, 9999Thanks,Srikanth B

view thread (6+ messages)  latest in thread

Message-ID: <20200122110045.14705.qmail@f4mail-235-235.rediffmail.com>
Permalink:  ../20200122110045.14705.qmail@f4mail-235-235.rediffmail.com/
Also on:    postgresql.org/message-id/20200122110045.14705.qmail@f4mail-235-235.rediffmail.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: srikkanth16081991@rediffmail.com, pgsql-general@postgresql.org
  Subject: Re: SQL Query Syntax help
  In-Reply-To: <20200122110045.14705.qmail@f4mail-235-235.rediffmail.com>
  References: <20200122110045.14705.qmail@f4mail-235-235.rediffmail.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