I have a scenario where i need to
- join with 3 tables to get the value for one field
- for second field join with 4 tables
- for third field join with 3 tables
all above joins are inner and if data exist the value of my field would be "Y" else "N"
to achieve this which method gives best performance
- create a tablevalued function with which i can join and check if null then "N" else "Y"
- create a view instead table valued function and do join with that
- write subquery and use join with subquery.
which will be faster... this is goin to executed on large data. hence performance is the major factor.
-Thanks