Hi guys
I have a view (A) looking into another view (B) and counting the number of records in (B) and reporting the number of rows in (B) in (A).
when there are 2 records in (B) the output of the view is as follows
Column1 | Column2 | Column3 | Column4
something|something| 2|something
when there are 0 records in (B) want the output as
Column1 | Column2 | Column3 | Column4
something|something| 0|something
but I just get an empty result screen in MS SQL Server Management Studio
do you guys need something I could add to the T-SQL of view (A) that would write the output columns with a 0 in Column3 if there are no records in view (A)?
I have a view (A) looking into another view (B) and counting the number of records in (B) and reporting the number of rows in (B) in (A).
when there are 2 records in (B) the output of the view is as follows
Column1 | Column2 | Column3 | Column4
something|something| 2|something
when there are 0 records in (B) want the output as
Column1 | Column2 | Column3 | Column4
something|something| 0|something
but I just get an empty result screen in MS SQL Server Management Studio
do you guys need something I could add to the T-SQL of view (A) that would write the output columns with a 0 in Column3 if there are no records in view (A)?
Comment