Group By includes having joins in SQL Server , how can we use joins when getting the data from multiple tables any order we need to join while fetching the data or randomly joins tables to get the result