I'm using this sql query:
SELECT     id, datetime
FROM         (SELECT     id, datetime
                       FROM          DanskAktieAnalyse.dbo.vTest
                       UNION ALL
                       SELECT     id, datetime
                       FROM         vTest2) AS articles
ORDER BY datetime
Is it possible to get an extra attribute to determin which of the two selects in the union the row comes from? Example 1 if from vTest and 2 if from vTest2 ?