try this,
select DISTINCT DATEDIFF(HOUR,gso.Date1,goh.Date2),gso.Date1,goh.Date2,gso.OrderNumber from tableA gso left join tableB goh on gso.OrderId = goh.OrderId and goh.StatusId =278 and goh.ActionId =0
where gso.OrderStatusId not in(185,488,486,870)
and DATEDIFF(HOUR,gso.Date1,goh.Date2) <-1
gso.orderDate > '01/01/2011 00:00:00 AM'
i assumed that your code wass free from errors, i just added the DISTINCT keyword,
hope it helps,
mark as answer if it helps you..
thanks