RE: Query Help
- From: Steve1445 <Steve1445@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 1 Aug 2005 07:03:04 -0700
close, but you got me on the right track, here is what I came up with using
yours as the base:
UPDATE ORGANIZATION
SET PROPERTYTYPE = '45321'
WHERE (INDUSTRY LIKE '5112') AND (PROPERTYTYPE IS NULL)
Thanks!
"priya.H.Gupta@xxxxxxxxxxxxxxx" wrote:
> If i am not wrong your query will look like this
>
> SELECT isnull( PROPERTYTYPE,'X'), INDUSTRY, ORGNAME
> FROM ORGANIZATION
> WHERE (INDUSTRY LIKE '51%')
> ORDER BY INDUSTRY
>
> 'X' - number provided by you
>
> "Steve1445" ने लिखा:
>
> > Here is what I am trying to do.
> >
> > I need to query a table like this:
> >
> > SELECT PROPERTYTYPE, INDUSTRY, ORGNAME
> > FROM ORGANIZATION
> > WHERE (INDUSTRY LIKE '51%')
> > ORDER BY INDUSTRY
> >
> > I provide the variable, in this case a range of numbers from the Industry
> > column starting with 51. This returns three columns of data, which two out
> > of three are populated. The field propertytype is most likely empty. If it is
> > empty I want the query to fill all the empty spots with another number I
> > provide. If its not empty, then I want to leave it alone.
.
- References:
- Query Help
- From: Steve1445
- RE: Query Help
- From: priya.H.Gupta@lntinfotech.com
- Query Help
- Prev by Date: Re: Starting SQL
- Next by Date: Find Duplicate Data
- Previous by thread: RE: Query Help
- Next by thread: Maximum Length Issue
- Index(es):
Relevant Pages
|
|