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 / mohamed shafee

select left(filename,6),data from table1
or
select convert(varchar(6),filename),data from table1

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of database triggers exist?

567


How to get maxsal , minsal, ename department wise in single query

1009


What is the parameter mode that can be passed to a procedure?

566


Other than making use of the statspack utility, what would you check when you are monitoring or running a health check on an Oracle 8i or 9i database?

1503


How to experiment a data lock in oracle?

593






How to rename a column in an existing table?

613


How to update values on multiple rows in oracle?

596


How to shutdown your 10g xe server from command line?

552


what is difference between sql plus and sql*plus? (not sql and sql plus).

3342


How do I spool in oracle?

534


How many memory layers are in the oracle shared pool?

634


How a database is related to tablespaces?

576


How to convert a date to char in oracle? Give one example.

583


How oracle handles dead locks?

596


Why oracle is used?

578