So I am having a difficult time with some clients. The database is set up like this
Pretty simple
Now the clients want something like this
the problem is they want the first line to inluce the shipping cost and every line after that, the shipping cost is zero. Andy ideas on how to do this? here is the query that generates a report of every ordered item with the orders ship cost:
That generates this:
Code:
tblOrder tblOrder_Item_Bridge tblItem
internal_id item_id item_id
ship_cost internal_id item desc
item_id cost
quantity
Now the clients want something like this
Code:
internal_id item desc quantity cost ship_cost 1643089 EGRET 3 7.75 $13.15 1643089 EGSPSAE 4 3.5 $0.00
Code:
SELECT tblOrder.internal_id, tblOrder.order_number, tblItem.quantity, tblOrder.ship_cost,
FROM tblOrder INNER JOIN
items ON tblOrder.internal_id = tblOrder_Item_Bridge .order_Id INNER JOIN
item ON tblOrder_Item_Bridge.items_Id = tblItem.items_Id
Code:
internal_id item desc quantity cost ship_cost 1643089 EGRET 3 7.75 $13.15 1643089 EGSPSAE 4 3.5 $13.15
Comment