I have a temp table with 3 columns "ID","Cost", "MaxCost"..below is my select statement which selects rows given particular ID..
SELECT
t.Cost
t.MaxCost
FROM @temp t
WHERE t.ID = @ID
How do i modify the above query so that even if given ID doesn't exists it still output rows with Cost = 0 & MaxCost = 0