Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Facebook
Downloads
Home
>
mailing lists
SQL Query Syntax help - Mailing list pgsql-admin
From
srikkanth
Subject
SQL Query Syntax help
Date
January 22, 2020
14:00:45
Msg-id
20200122110045.14705.qmail@f4mail-235-235.rediffmail.com
Whole thread
Raw
Responses
Re: SQL Query Syntax help
("Daniel Verite" <daniel@manitou-mail.org>)
Re: SQL Query Syntax help
("Daniel Verite" <daniel@manitou-mail.org>)
Re: SQL Query Syntax help
(Geoff Winkless <pgsqladmin@geoff.dj>)
Re: SQL Query Syntax help
(Geoff Winkless <pgsqladmin@geoff.dj>)
List
pgsql-admin
Tree view
Hi Team,
Can you please help me in writing the syntax for the below mentioned table.
Input :
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
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, 9999
Thanks,
Srikanth B
pgsql-admin
by date:
Previous
From:
Laurenz Albe
Date:
22 January 2020, 13:33:33
Subject:
Re: oldest xmin is far in the past: PG 11
Next
From:
"Daniel Verite"
Date:
22 January 2020, 14:58:33
Subject:
Re: SQL Query Syntax help
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
I confirm that I have read and accepted PostgresPro’s
Privacy Policy
.
I agree to get Postgres Pro discount offers and other marketing communications.
✖
×
×
Everywhere
Documentation
Mailing list
List:
all lists
pgsql-general
pgsql-hackers
buildfarm-members
pgadmin-hackers
pgadmin-support
pgsql-admin
pgsql-advocacy
pgsql-announce
pgsql-benchmarks
pgsql-bugs
pgsql-chat
pgsql-cluster-hackers
pgsql-committers
pgsql-cygwin
pgsql-docs
pgsql-hackers-pitr
pgsql-hackers-win32
pgsql-interfaces
pgsql-jdbc
pgsql-jobs
pgsql-novice
pgsql-odbc
pgsql-patches
pgsql-performance
pgsql-php
pgsql-pkg-debian
pgsql-pkg-yum
pgsql-ports
pgsql-rrreviewers
pgsql-ru-general
pgsql-sql
pgsql-students
pgsql-testers
pgsql-translators
pgsql-www
psycopg
Period
anytime
within last day
within last week
within last month
within last 6 months
within last year
Sort by
date
reverse date
rank
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
By continuing to browse this website, you agree to the use of cookies. Go to
Privacy Policy
.
I accept cookies