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

How do I connect to oracle?

562


State some uses of redo log files?

568


What is control file used for?

606


Illustrate how to determine the amount of physical CPUs a Unix Box possesses (LINUX and/or Solaris).

1812


what are archived logs?

1717






Explain about achiever in sql?

584


What is not equal to in oracle?

529


What is SQL Tuning Advisor in Oracle?

635


What happens if you set the sga too low in oracle?

559


How to end the current transaction in oracle?

561


What happens if you lost a data file?

584


How can you tell how much space is left on a given file system and how much space each of the file systems subdirectories take-up?

2395


What is dynamic proxy?

554


What are a query and state the different types of queries and their uses?

512


Is insert autocommit in oracle?

606