SELECT o.Date_Time,o.TagID,o.Value_Per_15min,s.TagID,s.Value_Per_15min
from Rawdata o
inner join Rawdata s on o.Date_Time = s.Date_Time
where o.TagID in ('102010')
SELECT o.Date_Time,o.TagID,o.Value_Per_15min,s.TagID,s.Value_Per_15min
from Rawdata o
inner join Rawdata s on o.Date_Time = s.Date_Time
where o.TagID in ('102010') and s.TagID in('102010')