Hi all, Im struggling with a little problem which Im sure has a simple answer.
I have a SQL Select statement (quite complicated but I'll simplify for here) and I need to find the min value of the table but show a corresponding field.
Here is a snapshot of TBL_Jobs
JOBNO, ORDERNO, VALUE
123, 1, 23.00
123, 2, 50.00
124, 1, 10.00
124, 2, 15.00
I need it to show 123, 23.00 and 124, 10.00
So it needs to find the min value of the order number but not display it.
Is this possible?
Thanks
John
.NET 2.0, Visual Studio 2005, SQL Server 2005 Express
I have a SQL Select statement (quite complicated but I'll simplify for here) and I need to find the min value of the table but show a corresponding field.
Here is a snapshot of TBL_Jobs
JOBNO, ORDERNO, VALUE
123, 1, 23.00
123, 2, 50.00
124, 1, 10.00
124, 2, 15.00
I need it to show 123, 23.00 and 124, 10.00
So it needs to find the min value of the order number but not display it.
Is this possible?
Thanks
John
.NET 2.0, Visual Studio 2005, SQL Server 2005 Express