Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

pl sql exist 2 spaces between the names

Posted on 2014-04-25
2
Medium Priority
?
404 Views
Last Modified: 2014-04-25
I have the certainty that in some values ¿¿in this column S_FIRST_NAME exist 2 spaces between the names.

How I can know if 2 or more spaces with other S_LAST_NAME column, this data is important before modifying my stored procedure.
0
Comment
Question by:enrique_aeo
2 Comments
 
LVL 23

Accepted Solution

by:
Steve Wales earned 2000 total points
ID: 40023121
Something simple like

select S_LAST_NAME from table where S_LAST_NAME like '%  %'

would find you two or more spaces in a column.

(That is two spaces in between the percent signs).
0
 
LVL 32

Expert Comment

by:awking00
ID: 40023187
where instr(name,'  ') > 0
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question