Concept Of SQL Server Part III
Concept Of SQL Server Union : Union is used to combine data of one or more tables. Union only distinct values are allowed. The following SQL statement returns the Id, FirstName, LastName (only distinct values) from both the " tblCustomer " and the " tblCustomerExpired " table : Two Table : tblCustomer tblCustomerExpired Example : Union all : Union all is used to combine data of one or more tables. Union all duplicates values are allowed. The following SQL statement returns the Id, FirstName, LastName (duplicate values also)from both the "tblCustomer" and the "tblCustomerExpired" table : Two Table : tblCustomer tblCustomerExpired Example : Group By Clause : Group by clause is used to combines the groups rows that have the same values into rows. The Group By clause is used with aggregate functions (COUNT(), MAX...