dbTalk Databases Forums  

regexp_like

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss regexp_like in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
carlos.ohiggins@yahoo.com
 
Posts: n/a

Default regexp_like - 11-03-2008 , 08:40 AM






Hi,
I want to run a distinct query against a text field."something,
something else, etc, etc,"
I have got this far:
SELECT distinct (Summary), count( distinct (Summary)) FROM report
where
Cost> 1000 group by Summary;

But this is looking at whole text field, and I just want to use the
first portion of the comma separated text field.
I expect regexp_like is the solution but I cannot quite figure it
out!

I think just a few hints would help me crack this one!

TIA

Carlos


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.