SQL query is used to retrieve selected row or column from the database based on the given condition . It is also used to retrieve data from a table in database . Syntax ->
Select expression from table_Name where clause ; // Expression indicate that column , which we want to retrieve
Optional Clause in Select Statement Where clause -> Using this clause we can retrieve specified rows or columns . Group By clause -> It is used to Group the elements and arranged them based on the specified condition and get the aggregate result . Having clause -> It is used to select the group which come from the Group By clause . Order By clause -> Used to get the data from which order either by increasing or decreasing .