Sql Query

I am a new programmer.

I have created a table called "tblOrder" and "tblTransaction" in Microsoft Access. The relation between them is one to many.

I am creating an entry in tblTransaction only when I create tblOrder's entry.

So 1 Order can have multiple transaction.

Now I want to find a field called "remain_balance" from table "tblTransaction" such that its orderid is '12' and the balance is minimum among all the entries.

Please help Me!!!!
[508 byte] By [vishal.m63] at [2007-11-20 10:18:50]
# 1 Re: Sql Query
Your Question is not quite clear, however. I think you are asking for this.

SELECT remain_balance FROM tblTransaction WHERE OrderID=12 ORDER BY remain_balance ASC;

If this is not what you want, make up a small data set and tell us what you want to choose from it.
sotoasty at 2007-11-9 19:35:21 >
# 2 Re: Sql Query
By the way thanks alot but i found answer of my question on the same day.
And it was similar to your answer.
vishal.m63 at 2007-11-9 19:36:20 >