Here is my tableCart --> CartID, FoodID, FoodID2, FoodID3, csessionID, OrderIDFood --> FoodID, Name, Calories, UnitPriceIn the cart, the data of FoodID2 and FoodID3 might be Null which mean i din put value on it. So in the select query below, i cannot sum the calories which have Null value, also the Name of the food which have Null value. Means row that have Null value, either calculation or combine the name; the final output will be NULL.So, any suggestion how i m going to fix this?? thx..Here is my query...SELECT cart.CartID, f1.Calories, SUM(f1.Calories + f2.Calories) AS Total, f2.Name, f1.Name + ' and ' + f2.Name + ' with ' + f3.Name AS MealsFROM Cart AS cart LEFT OUTER JOIN (SELECT FoodID, Name, Unitprice, Description, Categories, Calories, Fats, Proteins, Carbohydrates, pics FROM Food) AS f1 ON cart.FoodID = f1.FoodID LEFT OUTER JOIN (SELECT FoodID, Name, Unitprice, Description, Categories, Calories, Fats, Proteins, Carbohydrates, pics FROM Food AS Food_2) AS f2 ON cart.FoodID2 = f2.FoodID LEFT OUTER JOIN (SELECT FoodID, Name, Unitprice, Description, Categories, Calories, Fats, Proteins, Carbohydrates, pics FROM Food AS Food_1) AS f3 ON cart.FoodID3 = f3.FoodIDGROUP BY cart.CartID, f1.Calories, f2.Calories, f3.Calories, f1.Name, f2.Name, f3.Name