RE: Query Help
- From: "priya.H.Gupta@xxxxxxxxxxxxxxx" <priyaHGuptalntinfotechcom@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 31 Jul 2005 23:48:02 -0700
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.
.
- Follow-Ups:
- RE: Query Help
- From: Steve1445
- RE: Query Help
- References:
- Query Help
- From: Steve1445
- Query Help
- Prev by Date: RE: Maximum Length Issue
- Next by Date: Re: Starting SQL
- Previous by thread: Query Help
- Next by thread: RE: Query Help
- Index(es):
Relevant Pages
|
|