You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# Data Lineage for Microsoft SQL Server T-SQL Queries
1
+
# Data Lineage for Microsoft T-SQL Queries
2
2
3
-
Data Lineage Transact SQL (T-SQL) for [Microsoft SQL Server](https://www.microsoft.com/en-us/sql-server) enables you to find the data origins and data destinations in your query. It gives you the visibility over query data columns and ability to track the changes over time.
3
+
Data Lineage Transact SQL (T-SQL) for [Microsoft SQL Server](https://www.microsoft.com/en-us/sql-server)or [Azure SQL Server](https://azure.microsoft.com/en-us/services/sql-database/campaign/)enables you to find the data origins and data destinations in your query. It gives you the visibility over query data columns and ability to track the changes over time.
4
4
5
5
6
6
# Features
@@ -37,23 +37,30 @@ Run **TSQL_data_lineage.sql** file to create a lineage procedure. This script
37
37
38
38
```sql
39
39
-- Get your query:
40
-
declare @test_query VARCHAR(8000) ='
40
+
DECLARE @test_query VARCHAR(MAX) ='
41
41
42
+
-- This is a sample query to test data lineage
42
43
SELECT
43
44
s.[BusinessEntityID]
44
45
,p.[Title]
45
46
,p.[FirstName]
46
47
,p.[MiddleName]
47
-
,p.[LastName]
48
+
-- ,p.[LastName]
48
49
,p.[Suffix]
49
-
,e.[JobTitle] as imeSluzbe
50
+
,e.[JobTitle] as JobName
50
51
,p.[EmailPromotion]
51
52
,s.[SalesQuota]
52
53
,s.[SalesYTD]
53
54
,s.[SalesLastYear]
54
55
,( SELECT GETDATE() ) AS DateNow
55
56
,( select count(*) FROM [AdventureWorks2014].sales.[SalesPerson] ) as totalSales
56
57
58
+
/*
59
+
60
+
Adding some comments!
61
+
62
+
*/
63
+
57
64
FROM [AdventureWorks2014].sales.[SalesPerson] s
58
65
LEFT JOIN [AdventureWorks2014].[HumanResources].[Employee] e
0 commit comments