select
shipment_id as ship_id,
sum(in_parts) as parts_recieved,
sum(out_parts) as parts_sold,
to_char(sent_date, 'DD-Mon-YYYY') as setn_date
From
parts_table
where
set_id like '33%'
group by
shipment_id,
to_char(sent_date,'DD-Mon-YYYY')
This will produce something like this
33Y 500 234 02-Mar-2009
33Z 200 122 03-Mar-2009
What i want is something like this. with 2 extra field
1) in_parts - out_parts = value
2) sent_date + 8days = new value with day specified
results will look like
33Y 500 234 02-Mar-2009 266 Monday-09-Mar-2009
33Z 200 122 03-Mar-2009 78 Tuesday-10-Mar-2009
shipment_id as ship_id,
sum(in_parts) as parts_recieved,
sum(out_parts) as parts_sold,
to_char(sent_date, 'DD-Mon-YYYY') as setn_date
From
parts_table
where
set_id like '33%'
group by
shipment_id,
to_char(sent_date,'DD-Mon-YYYY')
This will produce something like this
33Y 500 234 02-Mar-2009
33Z 200 122 03-Mar-2009
What i want is something like this. with 2 extra field
1) in_parts - out_parts = value
2) sent_date + 8days = new value with day specified
results will look like
33Y 500 234 02-Mar-2009 266 Monday-09-Mar-2009
33Z 200 122 03-Mar-2009 78 Tuesday-10-Mar-2009