Hi @Kimmie25 ,
In my opinion, it depends on the data characteristic. If student ID and employ ID don't have replicated number , we could use parameter and an "OR" condition in the where clause. For the dataset, using something like :
SELECT * FROM Table_Name
WHERE EmployID=@ReportPara OR StudentID= @ ReportPara
This really depends on the data . If you still find trouble in you design, you could share more detail(example show how you want to use the parameter) and sample data, so we could help further.
Regards,
Joy
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
What can I do if my transaction log is full?--- Hot issues November
How to convert Profiler trace into a SQL Server table -- Hot issues November