trying to pattern match to a value contained in a column - Mailing list pgsql-sql

From Beth Gatewood
Subject trying to pattern match to a value contained in a column
Date
Msg-id 3A2FFBB4.7B5156DA@mbt.washington.edu
Whole thread Raw
Responses RE: trying to pattern match to a value contained in a column
Re: trying to pattern match to a value contained in a column
List pgsql-sql
Hi-

I can't figure out how to do this....

I examine a table where I think that one attribute is an abbreviation of
another attribute.

So-If I had a table where I had LONG_NAME and ABBR as attributes.

I want something like

SELECT whatever FROM my_table WHERE long_name LIKE '%[the value of ABBR
in that row]%';


Of course this doesn't work...

Any thoughts?

Thanks-
Beth




pgsql-sql by date:

Previous
From:
Date:
Subject: pltcl problem
Next
From: "Francis Solomon"
Date:
Subject: RE: trying to pattern match to a value contained in a column