Can we pass a parameter to a view in Microsoft SQL Server?
I tried to create view in the following way, but it doesn\'t work:
create view
create o
Why do you need a parameter in view? You might just use WHERE clause.
WHERE
create view v_emp as select * from emp ;
and your query should do the job:
select * from v_emp where emp_id=&eno;