Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

How to write a view or query to get dummy records ?

$
0
0

Hi All,

I got something like the above table. product_key = 312 is having forecast value as 0 for the whole fiscal_year 2016 from 1-12.

How , to create dummy records - such as the same product_key will have zero (0) for the whole fiscal_year 2016 from 1-12 for "Amount Type " - Invoice . If , there is no records for "Amount Type " - Invoice.

Note : In my Data warehouse ,

I need values for both "Amount Type" - Forecast and Invoice for every product key and fiscal period.

At present , my DWH is having only records of "Amount Type" - Forecast for one product_key=312.

Thanks,


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>