-- Get all distinct VariableIDs for a given DocumentID
-- Pass DocumentID as parameter (?)
SELECT DISTINCT VariableID
  FROM [Drilling_Test].[dbo].[VariableValue]
  WHERE DocumentID = ?

