If I understand you requirement correctly...this may work..Use this query to create the view.select * from (select row_number() over(partition by poitem.item order by po.order_date desc) as seq,convert(varchar(10),po.order_date ,101) as OrderDate,poitem.qty_received,poitem.item_cost,poitem.item,po.po_numfrom poinner join poitem on poitem.po_num = po.po_num) twhere t.seq = 1
And your procedure can contain the same query that you have used..select orderdate,item_cost,qty_received,po_num from AM_PurchaseHistorywhere item = @item
Try it and tell us if it worked.