Good afternoon, I was wondering if anyone could help me with a problem before I stick my fist through my monitor?
Table:
HEADING | URL | ACCOUNT_TYPE
Blah Type 1
Blah2 Type 1
Blah3 Type 2
Blah4 Type 3
Blah5 Type 3
The idea is to produce a dynamic menu for an intranet where menu elements are produced depending on the account type. I can't use a basic WHERE clause because some accounts are multiple types (you can be account_type 1 and 3 for example.)
I'm trying to pass the various account types as a string from ASP to my stored procedure as a comma delimited string ie. 'type1, type2' and can split this using a split function so i end up with another table:
INDEX VALUE
0 Type1
1 Type2
I THINK I need to loop through this second table and then perfom a select/insert type thing with a where clause for each value...
And i'm getting myself all tied up in knots... Does anybody have suggestions? I'm no good at SQL (complete newbie really) so any help would be cool.
There may be cake and iced buns! ;-)
Thank you.
Table:
HEADING | URL | ACCOUNT_TYPE
Blah Type 1
Blah2 Type 1
Blah3 Type 2
Blah4 Type 3
Blah5 Type 3
The idea is to produce a dynamic menu for an intranet where menu elements are produced depending on the account type. I can't use a basic WHERE clause because some accounts are multiple types (you can be account_type 1 and 3 for example.)
I'm trying to pass the various account types as a string from ASP to my stored procedure as a comma delimited string ie. 'type1, type2' and can split this using a split function so i end up with another table:
INDEX VALUE
0 Type1
1 Type2
I THINK I need to loop through this second table and then perfom a select/insert type thing with a where clause for each value...
And i'm getting myself all tied up in knots... Does anybody have suggestions? I'm no good at SQL (complete newbie really) so any help would be cool.
There may be cake and iced buns! ;-)
Thank you.