Quantcast
Channel: Robust Parameters
Viewing all articles
Browse latest Browse all 5

Robust Parameters

$
0
0

Ok I'm not actually sure how to go about this, up to now my paramaters have been pretty straight forward to equal values and labels that already exist in a table or view.

In this case there is a business requirement that the client wants to know all contacts that have submitted feedback, but he wants paramater choices to be based on contacts that have names, are listed as anonymous and all.

In our table a contact is either named or anonmous. An anonymous contact gets flagged with ZZ.Anonymous in the full name.

I'm working with a table called feedback and a view called contact_view (which I want to use as my parameter)

I want to show the option (Anonymous, Named User, ALL) in the parameter as a drop down list, nto sure how.

then my SQL will gather the following 

 

 

 f.commentsfrom feedback as f, contact_view as c

where c.name_id = F.name_id

and C.fullname like('ZZ.%');

will give me the results of the contacts that are anonynmous

select f.commentsfrom feedback as f, contact_view as c

where c.name_id = F.name_id

and

will give me the results of the contacts that are named users

 

select f.commentsfrom feedback as f, contact_view as c

where c.name_id = F.name_id

to give me all

anyone have any suggestions on how I can set this up? thanks

 

c.fullname notlike('ZZ.%');

select


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>