FunkyBunch
Instructor
Hello All,
I am running Crystal Reports 9 with SQL Server 2005.
The problem i am having is trying to pull the last unit number that a piece of equipment was attached to. I am not sure where to even start with this process.
select top 1 equipment.vehicle_Id
from equipment
where equipment_id = <record in Crystal Reports>
order by date_equipment_removed desc
I am using an equipment history table which holds the information for the equipment, as well as the units it has been assigned to.
I know this post is not that descriptive, but it is all i have.
Thanks,
I am running Crystal Reports 9 with SQL Server 2005.
The problem i am having is trying to pull the last unit number that a piece of equipment was attached to. I am not sure where to even start with this process.
select top 1 equipment.vehicle_Id
from equipment
where equipment_id = <record in Crystal Reports>
order by date_equipment_removed desc
I am using an equipment history table which holds the information for the equipment, as well as the units it has been assigned to.
I know this post is not that descriptive, but it is all i have.
Thanks,