Computed columns
HugoKornelis
Posts: 40 Bronze 5
Hi all,
I'm trying to use SQL Data Generator (version 2.0.3.1) to generate extra data for the FactResellerSales table in the AdventureWorksDW2012 sample database. But in order to make it match the pattern of the rest, I find that some features are missing from Data Generator.
One of them is for generating columns that would have been a computed column in an OLTP database. In a datawarehouse, such columns are usually stored as regular columns to get the best possible performance on DW queries.
An example in the table mentioned above is ExtendedAmount - almost equal to UnitPrice * OrderQuantity. I see no way to generate ExtendedAmount values that are actually "correct".
Is there a way to do this with the current product and I just fail to see it? And if not, is there a wishlist where I can add this?
Thanks in advance!
I'm trying to use SQL Data Generator (version 2.0.3.1) to generate extra data for the FactResellerSales table in the AdventureWorksDW2012 sample database. But in order to make it match the pattern of the rest, I find that some features are missing from Data Generator.
One of them is for generating columns that would have been a computed column in an OLTP database. In a datawarehouse, such columns are usually stored as regular columns to get the best possible performance on DW queries.
An example in the table mentioned above is ExtendedAmount - almost equal to UnitPrice * OrderQuantity. I see no way to generate ExtendedAmount values that are actually "correct".
Is there a way to do this with the current product and I just fail to see it? And if not, is there a wishlist where I can add this?
Thanks in advance!
--
Hugo Kornelis
(SQL Server MVP, 2006-2016 + 2019-now // Friend of Red Gate)
Hugo Kornelis
(SQL Server MVP, 2006-2016 + 2019-now // Friend of Red Gate)
Comments
I'd give you the exact same answer to that as I did to your similar query here: http://www.red-gate.com/messageboard/vi ... hp?t=18089
It would be nice if we supported this but in the meantime, you can use either the Python or Ruby generators.