pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Penchalaiah P. <penchalaiahp@infics.com>
To: pgsql-sql@postgresql.org
Subject: Needs Function
Date: Thu, 3 May 2007 10:08:21 +0530
Message-ID: <A70AE049E81A6A40879D5DC0AC8C38C908DCF678@venus.infics.com> (raw)


 

PLEASE GO TO FOLLOWING QUERY AND REVERT TO ME IF ANY QUERIES



SELECT * FROM TEMP;

DEPTNO   EMPNO

------          --------------------------------------------------

    10         B3091,B3092,B3093,B3085

    11         3651,6521

    12         H3062







  1  SELECT DEPTNO,SUBSTR(EMPNO,1,5) EMPNO FROM TEMP WHERE DEPTNO=10

  2  UNION

  3  SELECT DEPTNO,SUBSTR(EMPNO,7,5) EMPNO FROM TEMP WHERE DEPTNO=10

  4  UNION

  5   SELECT DEPTNO,SUBSTR(EMPNO,13,5) EMPNO FROM TEMP WHERE DEPTNO=10

  6  UNION

  7  SELECT DEPTNO,SUBSTR(EMPNO,19,5) EMPNO FROM TEMP WHERE DEPTNO=10

  8  UNION

  9  SELECT DEPTNO,SUBSTR(EMPNO,1,4) EMPNO FROM TEMP WHERE DEPTNO=11

 10  UNION

 11  SELECT DEPTNO,SUBSTR(EMPNO,6,4) EMPNO FROM TEMP WHERE DEPTNO=11

 12  UNION

 13* SELECT DEPTNO,EMPNO FROM TEMP WHERE DEPTNO=12

SQL> /



    DEPTNO EMPNO

---------- --------------------------------------------------

        10 B3085

        10 B3091

        10 B3092

        10 B3093

        11 3651

        11 6521

        12 H3062



7 rows selected.



Information transmitted by this e-mail is proprietary to Infinite
Computer Solutions and / or its Customers and is intended for use only
by the individual or the entity to which it is addressed, and may
contain information that is privileged, confidential or exempt from
disclosure under applicable law. If you are not the intended recipient
or it appears that this mail has been forwarded to you without proper
authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at info.in@infics.com and delete this email from
your records.

========================================================================
====================================================


Disclaimer:

This message and the information contained herein is proprietary and
confidential and subject to the Tech Mahindra policy statement, you may
review at http://www.techmahindra.com/Disclaimer.html externally and
http://tim.techmahindra.com/Disclaimer.html internally within Tech
Mahindra.

========================================================================
====================================================



Information transmitted by this e-mail is proprietary to Infinite Computer Solutions and / or its Customers and is intended for use only by the individual or the entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at info.in@infics.com and delete this email from your records.

Attachments:

image001.jpg (image/jpeg, 2.7K) download view image

view thread (5+ messages)  latest in thread

Message-ID: <A70AE049E81A6A40879D5DC0AC8C38C908DCF678@venus.infics.com>
Permalink:  ../A70AE049E81A6A40879D5DC0AC8C38C908DCF678@venus.infics.com/
Also on:    postgresql.org/message-id/A70AE049E81A6A40879D5DC0AC8C38C908DCF678@venus.infics.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-sql@postgresql.org
  Cc: penchalaiahp@infics.com
  Subject: Re: Needs Function
  In-Reply-To: <A70AE049E81A6A40879D5DC0AC8C38C908DCF678@venus.infics.com>
  References: <A70AE049E81A6A40879D5DC0AC8C38C908DCF678@venus.infics.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