Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6709899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:56:12+00:00 2026-05-26T07:56:12+00:00

ORACLE:- In the table the First Names are as follows Binda E Reven O

  • 0

ORACLE:-
In the table the First Names are as follows

Binda  E                                                                             
Reven   O                                                                               
Drew  J                                            
ANDAL J                                                                                       
WILL Lee                                            
Chad Hardee  

I want to select First names in the following format

Binda                                                                               
Reven                                                                                  
Drew                                               
ANDAL                                                                                         
WILL                                              
Chad   

I am using the following Query, but a having no luck

SELECT  first_name, SUBSTR(first_name, REGEXP_INSTR('first_name','[^ ]+', 1, 1) ) FROM contact.user_names

Kindly suggest.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:56:12+00:00Added an answer on May 26, 2026 at 7:56 am

    NVL(substr(first_name, 1, instr(first_name,’ ‘)), first_name)

    with t AS
        (
        SELECT 'Binda  E   ' as first_name FROM dual                                                                          
        union
        SELECT 'Reven   O  ' as first_name FROM dual                                                                             
        union
        SELECT 'Drew  J    ' as first_name FROM dual                                        
        union
        SELECT 'ANDAL J    ' as first_name FROM dual                                                                                   
        union
        SELECT 'WILL Lee   ' as first_name FROM dual                                         
        union
        SELECT 'Chad Hardee' as first_name FROM dual 
        union
        SELECT 'foobar' as first_name FROM dual 
    
        )
        SELECT NVL(substr(first_name, 1, instr(first_name,' ')), first_name) FROM t
        ;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a composite primary key in 1 table in oracle. I want to
I have two Oracle SQL Tables: Team and Work. I want to select all
Oracle Newbie Here: I just started out creating my first Oracle database table. I
Given an Oracle table created using the following: CREATE TABLE Log(WhenAdded TIMESTAMP(6) WITH TIME
I have an Oracle table which contains event log messages for an application. We
I have an oracle table with a column from type SYS.XMLTYPE and a storage
I have to get data from Oracle Table in which I have one datefield
Yesterday I wanted to add a boolean field to an Oracle table. However, there
I have an entity that maps to an external oracle table which is one
I have an Access 2002 application which links an Oracle table via ODBC with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.