G
Guest
Hi. I nedd a query that eliminates or update records and the crietria is the
diferent of two columns.
I have a tabel with records like this:
Cod LoteNo LoteQt QtNeeded
12 A 20 15
12 B 20 15
To have this:
Cod LoteNo LoteQt QtNeeded
12 A 20 15
In that example I have the an item code (12) with two Lotes, A and B but I
only need to consume 15 so I would like to remover the second line because
the quantaty that I need is less than the one that I have.
But could also happens this:
(if not possiblem, well)
Cod LoteNo LoteQt QtNeeded
12 A 20 30
12 B 20 30
I would like to transform into this:
Cod LoteNo LoteQt QtNeeded
12 A 20 20
12 B 20 10
is it possible to create a query like this? or is impossible?
Regards in advance,
Marco
diferent of two columns.
I have a tabel with records like this:
Cod LoteNo LoteQt QtNeeded
12 A 20 15
12 B 20 15
To have this:
Cod LoteNo LoteQt QtNeeded
12 A 20 15
In that example I have the an item code (12) with two Lotes, A and B but I
only need to consume 15 so I would like to remover the second line because
the quantaty that I need is less than the one that I have.
But could also happens this:
(if not possiblem, well)
Cod LoteNo LoteQt QtNeeded
12 A 20 30
12 B 20 30
I would like to transform into this:
Cod LoteNo LoteQt QtNeeded
12 A 20 20
12 B 20 10
is it possible to create a query like this? or is impossible?
Regards in advance,
Marco