I need to add expense types to various projects in our ERP database. I
perform this query
select DISTINCT a.project_id
from project as a, project_cost_element as b
where a.project_id = b.project_id
and a.project_status in ('T','A')
and b.cost_element_id between '7012000' and '7012999'
The result is projects that this query is affected.
00010
00020
00162
00187
00242
I need to put this in a load file where for every 4 lines is the same project.
...I would like the end result
00010
00010
00010
00010
00020
00020
00020
00020
00162
00162
00162
00162
etc
--
Message posted via http://www.sqlmonster.com