If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Filter needed!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-02-08, 03:52
circuitman circuitman is offline
Registered User
 
Join Date: May 2008
Posts: 3
Wink Filter needed!

Hi friends,

My question is about filtering in Informix.. I have a name that includes a special characters or strings,,and want to take out these unwanteds from names. For instances,

NewYork_SAD or Newyork_MOB----->>> I wanna clean out strings which includes this kind of extensions.

I mean are there any "does not contain" filter in İnformix sql?

Best regards.
Reply With Quote
  #2 (permalink)  
Old 06-02-08, 07:04
nitin_math nitin_math is offline
Registered User
 
Join Date: Nov 2004
Posts: 143
Give an example of what exactly you want.

regards,

Nitin
Reply With Quote
  #3 (permalink)  
Old 06-02-08, 14:26
circuitman circuitman is offline
Registered User
 
Join Date: May 2008
Posts: 3
I did but ok for example,

Table

Newyork
Newyork_MOB
DC
DC_KIN

When I try to bring these 4 objects through a filter that I use take only Newyork and DC not Newyork_MOB and DC_KIN..

Just like that not equal "_MOB" and "_KIN" ????
Reply With Quote
  #4 (permalink)  
Old 06-02-08, 15:09
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
this "filter" ... what you want mean exactly ??????

This is a SQL ?
This is a component of some program language?
This is inside some application ?
__________________
________________________________________
César Inacio Martins
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
Reply With Quote
  #5 (permalink)  
Old 06-02-08, 15:50
circuitman circuitman is offline
Registered User
 
Join Date: May 2008
Posts: 3
Yeah I mean SQL,,

Thats the structure what I mean;

SELECT prod_name, prod_price

FROM Products

WHERE prod_price = 3.49;

Order By prod_name


In this structure before the "order by" filtering data make sense?
Reply With Quote
  #6 (permalink)  
Old 06-02-08, 16:25
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
yes, only remove the ";" from the where and put after the "order by prod_name" :
Code:
SELECT prod_name, prod_price

FROM Products

WHERE prod_price = 3.49

Order By prod_name;
__________________
________________________________________
César Inacio Martins
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On