Created
July 29, 2021 18:30
-
-
Save datahai/b369f74d6c664ae7f6e74b02fad6c17f to your computer and use it in GitHub Desktop.
New Fact Sales View
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP VIEW LDW.vwFactSales; | |
GO | |
CREATE VIEW LDW.vwFactSales | |
AS | |
SELECT *, | |
CAST(fct.filepath(3) AS DATE) AS SalesOrderPathDate | |
FROM | |
OPENROWSET | |
( | |
BULK 'conformed/facts/factsales/*/*/*/*.parquet', | |
DATA_SOURCE = 'ExternalDataSourceDataLake', | |
FORMAT = 'Parquet' | |
) AS fct |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment