Could somebody please help me with a problem I'm having. I think it will be easier if I draw what I would like to do with my database:
I have two tables:
[WorkID]-[Period]-[TrackcarDate]--[SD]--[Lat]
-- 1409 --- Bef ---- 07-Jan-05 ---- 2.1 -- 0.8
-- 1409 --- Aft ---- 27-Apr-06 ---- 1.2 -- 0.4
-- 1410 --- Bef ---- 27-Apr-06 ---- 3.2 -- 0.9
-- 1410 --- Aft ---- 26-Oct-06 ---- 1.3 -- 0.6
-- 1411 --- Bef ---- 26-Oct-06 ---- 2.4 -- 0.7
-- 1411 --- Aft ---- 28-Sep-07 ---- 1.1 -- 0.4
and
[WorkID]--[ID]--[Work Type]--[Work Date]
--1409 --- 23 ----- Tamp ---- 19-Apr-06
--1410 --- 23 ----- Stone ---- 04-Oct-06
--1411 --- 23 ----- Stone ---- 05-Sep-07
I would like to create the following table using a query?:
[ID] - [Maintenance] -- [Date]
23 --- Track car ---- 07-Jan-05
23 --- Tamp ------- 19-Apr-06
23 --- Track car ---- 27-Apr-06
23 --- Track car ---- 27-Apr-06
23 --- Stone ------- 04-Oct-06
23 --- Track car ---- 26-Oct-06
23 --- Track car ---- 26-Oct-06
23 --- Stone ------- 05-Sep-07
23 --- Track car ---- 28-Sep-07
Does anybody know if this is even possible?
Thanks in advance
I have two tables:
[WorkID]-[Period]-[TrackcarDate]--[SD]--[Lat]
-- 1409 --- Bef ---- 07-Jan-05 ---- 2.1 -- 0.8
-- 1409 --- Aft ---- 27-Apr-06 ---- 1.2 -- 0.4
-- 1410 --- Bef ---- 27-Apr-06 ---- 3.2 -- 0.9
-- 1410 --- Aft ---- 26-Oct-06 ---- 1.3 -- 0.6
-- 1411 --- Bef ---- 26-Oct-06 ---- 2.4 -- 0.7
-- 1411 --- Aft ---- 28-Sep-07 ---- 1.1 -- 0.4
and
[WorkID]--[ID]--[Work Type]--[Work Date]
--1409 --- 23 ----- Tamp ---- 19-Apr-06
--1410 --- 23 ----- Stone ---- 04-Oct-06
--1411 --- 23 ----- Stone ---- 05-Sep-07
I would like to create the following table using a query?:
[ID] - [Maintenance] -- [Date]
23 --- Track car ---- 07-Jan-05
23 --- Tamp ------- 19-Apr-06
23 --- Track car ---- 27-Apr-06
23 --- Track car ---- 27-Apr-06
23 --- Stone ------- 04-Oct-06
23 --- Track car ---- 26-Oct-06
23 --- Track car ---- 26-Oct-06
23 --- Stone ------- 05-Sep-07
23 --- Track car ---- 28-Sep-07
Does anybody know if this is even possible?
Thanks in advance
Last edited: