Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

SQL views

$
0
0

hi, i am wondering if it is possible to have  a view produce different results to different users based on the same view, for example

i have the following data

tblaccounts

hospno patno

1  123

2  123

i define a view called vw_hospitalbasedaccounts which is defined as below

select * from tblaccounts where hospno = paramter

based on the paramater, i would have

1 123 being displayed to 1 user and 2 123 displayed to another user.

please guide, i woant to be able to use only views to accomplish the behavior

thanks

nik


Viewing all articles
Browse latest Browse all 5123

Trending Articles



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