Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

scrambling name

1723545Aug 14 2014 — edited Aug 15 2014

Hi

I have a names table and need to scramble first name and last name. Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production.

with names as

(select 'LISA OBRIEN' name from dual

union

select 'GRETCHEN ALIX' name from dual

union

select 'SANDRA HURLEY-SHOAF' name from dual

union

select 'JENNY PLUNKETT-KRUSE' name from dual

union

select 'MELODY STALEY' name from dual

union

select 'DYON AYYAPPAN' name from dual

union

select 'MICHAEL BUENO' name from dual

union

select 'SANDRA ELLISON' name from dual

union

select 'KEVIN RADSKE' name from dual)

select * from names

Need a output with first last names scrambled in any order. Thanks for your help.

NAME

--------

LISA ALIX

SANDRA BUENO

MELODY ELLISON

KEVIN STALEY

.....

This post has been answered by Etbin on Aug 14 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 12 2014
Added on Aug 14 2014
7 comments
2,148 views