Posted by Alexander Kuznetsov on 06/07/06 00:45
one more question: what if there is only one row with negative amount?
INSERT INTO t1 VALUES (11, '20060101', '2321323', -100.00)
and there is no corresponding row with positive amount? Nothing in the
posted DDL prevents you from that. In fact, originally I was
considering the query posted by Hugo, but realized it would return that
single row with negative amount and assumed it incorrect. It looks like
there might be no base for my assumption.
[Back to original message]
|