View Single Post

  #1 (permalink)  
Old 08-02-2006, 07:18 AM
purnarao80 purnarao80 is offline
Junior Member
 
Join Date: May 2005
Posts: 3
purnarao80 is on a distinguished road
Please solve the follwing problems

select strreplace('This is a beautiful day!', 'beautiful', 'horrible')
from dual

The given query selects the string 'This is a horrible day!'. The string 'beautiful' is replaced by 'horrible'. Write the function strreplace.



There is table itemfile.

ITEMCODE VARCHAR2(7)
ITEMDESC VARCHAR2(6)

Write three queries:

* Select Rows, which have only numbers in ITEMCODE field.

* Select Rows, which have only chars in ITEMCODE field.

* Select Rows, which have only chars & numbers both in ITEMCODE field.
Reply With Quote