The way this table works is that I have an ASP page that allows the user to
create a stock category at 2 levels, category level and sub-category level.
When I file the entered data into the table, if the user has chosen to
create a category level stock category then the LEVEL field is left blank
and if they chose to create a sub-category level category then I post the
relevant category level stock category code in the LEVEL field. For
example, in the above list cat01 is a category level stock category and
cat05 is a sub-category as it is a sub-category of cat01.
My query is that I want to populate a simple HTML
Re: Interesting SQL query requirement for <SELECT> menu
am 07.11.2005 18:55:52 von Chris Hohmann
"Astra" wrote in message
news:Otneao64FHA.3976@TK2MSFTNGP15.phx.gbl...
> Hi All
>
> Wondered if you could help me with the below query.
>
> I have 1 simple table called STOCKCATS that consists of 2 fields.
>
> These fields are called CATID and LEVEL.
>
> The contents of this table are as follows:
>
> CATID LEVEL
> cat01
> cat02
> cat03 cat01
> cat04
> cat05 cat01
> cat06 cat02
> cat07 cat04
> etc.. etc...
>
> The way this table works is that I have an ASP page that allows the user
> to
> create a stock category at 2 levels, category level and sub-category
> level.
>
> When I file the entered data into the table, if the user has chosen to
> create a category level stock category then the LEVEL field is left blank
> and if they chose to create a sub-category level category then I post the
> relevant category level stock category code in the LEVEL field. For
> example, in the above list cat01 is a category level stock category and
> cat05 is a sub-category as it is a sub-category of cat01.
>
> My query is that I want to populate a simple HTML
Re: Interesting SQL query requirement for <SELECT> menu
am 08.11.2005 11:46:58 von Oliver Weichhold
Genius!!
Many thanks.
Rgds Robbie
"Chris Hohmann" wrote in message
news:eGoYuJ84FHA.3348@TK2MSFTNGP10.phx.gbl...
"Astra" wrote in message
news:Otneao64FHA.3976@TK2MSFTNGP15.phx.gbl...
> Hi All
>
> Wondered if you could help me with the below query.
>
> I have 1 simple table called STOCKCATS that consists of 2 fields.
>
> These fields are called CATID and LEVEL.
>
> The contents of this table are as follows:
>
> CATID LEVEL
> cat01
> cat02
> cat03 cat01
> cat04
> cat05 cat01
> cat06 cat02
> cat07 cat04
> etc.. etc...
>
> The way this table works is that I have an ASP page that allows the user
> to
> create a stock category at 2 levels, category level and sub-category
> level.
>
> When I file the entered data into the table, if the user has chosen to
> create a category level stock category then the LEVEL field is left blank
> and if they chose to create a sub-category level category then I post the
> relevant category level stock category code in the LEVEL field. For
> example, in the above list cat01 is a category level stock category and
> cat05 is a sub-category as it is a sub-category of cat01.
>
> My query is that I want to populate a simple HTML