Add column name in temp table from different table and filter according that for those columns
In my stored procedure where I am generating report in the table Age
, user can define date range for which date range data needs to be come. Table Age
has AgeDesc
, StartDay
and EndDay
. Please check the example shown here: