Solved

Getting first letter of String in SQL

Posted on 2011-02-26
4
918 Views
Last Modified: 2012-05-11
Hi,

How to get the first letter of the whole string through SQL query. For example, my string is
"Welcome to Expert exchange". Now i have to get the first letter of the string like WTEE

Please let me know the way

Thanks
0
Comment
4 Comments
 
LVL 23

Accepted Solution

by:
Rajkumar Gs earned 125 total points
Comment Utility
0
 
LVL 3

Expert Comment

by:sergiobg57
Comment Utility
SELECT SUBSTR(column,1,1) 
FROM table 
WHERE column = codition;

Open in new window

0
 
LVL 73

Assisted Solution

by:sdstuber
sdstuber earned 125 total points
Comment Utility
upper(regexp_replace(s, '((^| )([^ ]))|.', '\3'))
0
 

Author Closing Comment

by:Suriyaraj_Sudalaiappan
Comment Utility
GOOD ONE
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and theā€¦
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now