I want to dynamically join 2 tables in SQL Server that means according to table value count, as LEFT join or RIGHT join.. Is it possible in SQL Server ? If yes please explain
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t believe it is possible to conditionally do a
left joinorright join.However, as both of these joins are essentially a filtered
full outer join, could you use that and then usewhereclauses to get what you want?However this seems less than ideal, and I would question why you need to do this in the first place.