Re: Can I use LIKE to achieve the following result

From: "Harry McCarney" <HMcCarney(at)DialecticIT(dot)com>
To: "'Yan Cheng Cheok'" <yccheok(at)yahoo(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Can I use LIKE to achieve the following result
Date: 2010-01-20 18:58:20
Message-ID: 000f01ca9a02$89bae720$9d30b560$@com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Something like this will be possible but your data sets are contradictory.
There is no
3 | Cat
Row in the original table..

-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Yan Cheng Cheok
Sent: 20 January 2010 18:23
To: pgsql-general(at)postgresql(dot)org
Subject: [GENERAL] Can I use LIKE to achieve the following result

I have the following original table :

ID | Item
=========
0 | Car1
1 | Car2
2 | Car3
3 | Cat1
4 | Cat2
5 | Cat3

I would like to return setof record, with the following :

ID | Item
=========
0 | Car1
1 | Car2
2 | Car3
3 | Cat

Is it possible to achieve using LIKE command?

Thanks and Regards
Yan Cheng CHEOK

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ricardo Fuentes 2010-01-20 20:52:05 Re: Can I use LIKE to achieve the following result
Previous Message Yan Cheng Cheok 2010-01-20 18:22:31 Can I use LIKE to achieve the following result