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

Answers were Sorted based on User's Feedback



Table1- have two column filename data AFGDFD-20112011 hi how r u bsdasd-23042011 ..

Answer / david

select substr(filename,1,6),data from table1;



tjis is ur solution ..if any confusion regards this question
plz post there...


thanks
gunjan david

Is This Answer Correct ?    3 Yes 0 No

Table1- have two column filename data AFGDFD-20112011 hi how r u bsdasd-23042011 ..

Answer / ajit nayak

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

Is This Answer Correct ?    0 Yes 0 No

Table1- have two column filename data AFGDFD-20112011 hi how r u bsdasd-23042011 ..

Answer / 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

More Oracle General Interview Questions

Select all the employees who were hired in last 2 years and who works in dept where max managers are working.

0 Answers   ESS,


State some uses of redo log files?

0 Answers  


Explain the difference between replace() and translate() functions in oracle?

0 Answers  


consider some table with 4 r 5 columns in that 1 col is DATE type. The data is like that,For each date in that col some 3 fields r there but all the records r having different data. Now i want to display all the columns by performing grouping on the date field ( as SELECTION Operator(*) cannot be used with group function having only one "group by clause". how to do this? can any one help me in finding out the solution plss?

1 Answers  


Why is oracle database so popular?

0 Answers  






does the query needs a hint to access a materialized view?

1 Answers  


What are the different editions of oracle?

0 Answers  


What is clustered table in Oracle?

0 Answers   MCN Solutions,


Tell me New Feature of Oracle 10g?

5 Answers   Thermotech,


What is the disadvantage of User defind function?

0 Answers   CybAge,


How to create a temporary table in oracle?

0 Answers  


What is the exact use of Collections?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)