Table1- have two column
filename data
AFGDFD-20112011 hi how r u
bsdasd-23042011 name shoud be in bold
Now i want output like
filename data
AFGDFD hi how r u
bsdasd name shoud be in bold

Kindly answer this

Answer Posted / ajit nayak

select substr(filename,1,instr(filename,'-',1,1) - 1) from dual;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an oracle database?

623


How to create an oracle database manually?

583


Can select statements be used on views in oracle?

602


is there a tool to trace queries, like profiler for sql server?

626


How to use null as conditions in oracle?

594






how do we code triggers , store procedure , Performance tuning and indexing in a Java Project? Pls kindly get me the perfect answer with the code for each....thank you in advance............pls any body kindly help me soon as possible....

1600


How to retrieve the count of updated rows?

584


Does facebook use oracle?

589


How to create lov dynamically at runtime & attach to text field?

676


Name the three major set of files on disk that compose a database in Oracle?

645


Explain compound trigger in oracle?

569


What is a proxy object?

594


How to create a new user account in oracle?

592


What is a Garbage Collection? and what is full recursive Garbage collection?

2401


Design database draw er diagram for a certain scenario ?

4113