Posts

Showing posts from July, 2019

Joins in MySQL

Image
Hello and welcome everyone. In this article, we will learn about the Joins and its type with example. Let’s go. What is the Join? The MySQL Joins is used to retrieving data or records from two or more table’s records or data. A table is having Primary Key and Foreign Keys and it’s used with SELECT, UPDATE, DELETE statement. MongoDB with .Net Core course link => https://www.udemy.com/mongodb-with-net-core-sagar-jaybhay/ C# basic course click on: https://www.udemy.com/learn-csharp-with-sagar-jaybhay/  Web API 2- .Net Core In depth In 5 Hours click on: https://www.udemy.com/web-api-2-net-core-in-depth-in-5-hrs-with-sagar-jaybhay/ Why use Join? In MySQL database, you can get the result of one by one using queries for a different table, but joins get the result from only one query. Joins result get better performance. Joins combine data or records from two or more table and it also returns result where the condition is satisfied. Following are the differe

Group By Clause in MySQL

Image
Hello and welcome everyone. In this article, we will learn about the Group By Clause in MySQL. Let’s go. MongoDB with .Net Core course link => https://www.udemy.com/mongodb-with-net-core-sagar-jaybhay/ C# basic course click on: https://www.udemy.com/learn-csharp-with-sagar-jaybhay/  Web API 2- .Net Core In depth In 5 Hours click on: https://www.udemy.com/web-api-2-net-core-in-depth-in-5-hrs-with-sagar-jaybhay/ The MySQL Group By clause is used to group rows values that have the same values or multiple records from collect data and group the result. And also is used in the SELECT statement as well as its uses with aggregate functions like count, sum, avg, max, and min. Syntax:          SELECT column_name_1, column_name_2, . . .          FROM table_name          WHERE condition          GROUP BY column_name_1, column_name_2, . . .; Here is          A SELECT statement is a retrieved group by data.          WHERE condition that must be fulfilled

Order By Clause in MySQL

Image
Hello and welcome everyone. In this article, we will learn about the Order By Clause in MySQL. Let’s go. MongoDB with .Net Core course link => https://www.udemy.com/mongodb-with-net-core-sagar-jaybhay/ C# basic course click on: https://www.udemy.com/learn-csharp-with-sagar-jaybhay/  Web API 2- .Net Core In depth In 5 Hours click on: https://www.udemy.com/web-api-2-net-core-in-depth-in-5-hrs-with-sagar-jaybhay/ MySQL Order by clause is used to sort the records or data in ascending or descending order. Order by clause allows us to sort records or data by a single column or multiple columns in ascending or descending order. There are two key using in Order by clause:          ASC: - sorting data or records by ascending order.          DESC: - sorting data or records by descending order. Syntax:          SELECT column_name_1, column_name_2, …          FROM table_name          WHERE condition ORDER BY column_name_1 [ ASC | DESC ], column_name_2 [ ASC