How would i go about converting this:
37 2003-12-13 00:56:43.000 -199.0
38 2003-12-13 00:56:43.000 -9.0
37 2003-12-13 00:56:44.000 117.0
to this:
xddatetime tilt54 pitch55
2003-12-13 00:56:43.000 -199.0 -9.0
2003-12-13 00:56:44.000 117.0
where tilt54 is sensorid 37 and pitch55 is sensorid 38.
is this possible?
i am currently using this query:
select xdsensorid, xddatetime, xdvalue, xdlongitude, xdlatitude
from his_externaldata o
where abs(xdvalue) =
(select max(abs(xdvalue))
from ((vmi_vehicles
inner join ext_sensors on vunitid = sunitid)
inner join his_externaldata on xdsensorid = ssensorid)
where vdescription = 'Shell 153456'
and (schannelnumber = 54 or schannelnumber = 55)
AND xdsensorid = o.xdsensorid
AND xddatetime = o.xddatetime)
order by xddatetime, xdsensorid;
any help is much appreciated.
B
37 2003-12-13 00:56:43.000 -199.0
38 2003-12-13 00:56:43.000 -9.0
37 2003-12-13 00:56:44.000 117.0
to this:
xddatetime tilt54 pitch55
2003-12-13 00:56:43.000 -199.0 -9.0
2003-12-13 00:56:44.000 117.0
where tilt54 is sensorid 37 and pitch55 is sensorid 38.
is this possible?
i am currently using this query:
select xdsensorid, xddatetime, xdvalue, xdlongitude, xdlatitude
from his_externaldata o
where abs(xdvalue) =
(select max(abs(xdvalue))
from ((vmi_vehicles
inner join ext_sensors on vunitid = sunitid)
inner join his_externaldata on xdsensorid = ssensorid)
where vdescription = 'Shell 153456'
and (schannelnumber = 54 or schannelnumber = 55)
AND xdsensorid = o.xdsensorid
AND xddatetime = o.xddatetime)
order by xddatetime, xdsensorid;
any help is much appreciated.
B