SQL select using filters saved in a table

Hema Ramachandran 176 Reputation points
2022-03-09T17:39:47.21+00:00

I have a table in which filters to be used in a select statement.
The table looks like this:
181582-image.png

How can I use this column values in a select statement?
The table where I am using select statement cannot be joined with this filter table.

Developer technologies Transact-SQL
0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Bert Zhou-msft 3,436 Reputation points
    2022-03-10T03:12:07.883+00:00

    Hi,@Hema Ramachandran

    Welcome to Microsoft T-SQL Q&A Forum!

    I agree with ErlandSommarskog's point of view for your case.
    I did some tests, but when querying sql, only the results of concatenating strings are displayed, and the filtering results are not displayed as expected, can you explain why you need to use filters here Table? In my opinion, this is just a multi-table connection, only need to add filter conditions after where.

    Best regards,
    Bert Zhou

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.