Skip to Main Content

SQL & PL/SQL

question on reverse

user1014019Nov 11 2019 — edited Nov 12 2019

Hi Team,

I have a question on below query.

ID     QID       QNAME

1       12          SEETA

2       13           GEETA

3       14           RAJ

4       15           UMBER

5       16           MEERA

6       17           SMRITI

I wanted the output as shown below

QID     QNAME

21        MEERA

31        SMRITI

41        SEETA

51        GEETA

61        RAJ

71        UMBER

We will use reverse function to reverse the QID Values but need help on how will we interchange QNAME values.

Appreciate your help.

Comments
Post Details
Added on Nov 11 2019
14 comments
407 views