Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 12th, 2003, 11:13 AM
Authorized User
 
Join Date: Jun 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Parsing values out of a field

Hello -

I am trying to create some reports from an Oracle Database. Unfortunately the database is not normalized (not even 1st normal form) which makes what I am trying to do very difficult.

One of the fields in this database is actually its own fixed length record that holds approx. 30 additional elements for that record. I need to include a few of these elements in my report but I can't figure out a way to retrieve them easily.

I am used to working with SQL Server which has string functions that allow you to only pull back a specific range of characters out of a field, but I can't find any of those types of functions in Oracle.

Basically I need a way to select field 1, field 2, and characters 30-42 of field 3 out of this table. Eventually I might want to do something like select field 1 and 2 where the 30th-42nd character of field 3 = xxxxxxx. Any help would be greatly appreciated.

Thanks,
Mike
 
Old March 3rd, 2005, 10:51 AM
Registered User
 
Join Date: Feb 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to SureshHyd
Default

We have rich set of string library functions in oracle too. Check oracle documentation for this. Use substr,instr etc.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to concatenate two values into one field haixia XSLT 3 November 7th, 2016 02:33 PM
Default Field Values tachtenberg Reporting Services 1 February 19th, 2008 05:52 PM
get the values of form field values crmpicco Perl 2 March 16th, 2007 10:57 AM
Selecting on different values of the same field alphahamster SQL Language 4 May 30th, 2006 11:08 AM
Parsing and Removing CSV values in row cell. peryan77 SQL Server 2000 5 February 2nd, 2006 03:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.