DCL Command in DBMS

WHERE clause

Where clause is used to specify condition while retriving data from table. Where clause is used mostly withSelect, Update and Delete query. If condititon specified by where clause is true then only the result from table is returned. Syntax for WHERE clause SELECT column-name1, column-name2, column-name3, column-nameN from table-name WHERE [condition]; Example using WHERE clause …

WHERE clause Read More »

SELECT Query

Select query is used to retrieve data from a tables. It is the most used SQL query. We can retrieve complete tables, or partial by mentioning conditions using WHERE clause. Syntax of SELECT Query SELECT column-name1, column-name2, column-name3, column-nameN from table-name; Example for SELECT Query Conside the following Student table, S_id S_Name age address 101 …

SELECT Query Read More »

Like clause

Like clause is used as condition in SQL query. Like clause compares data with an expression using wildcard operators. It is used to find similar data from the table. Wildcard operators There are two wildcard operators that are used in like clause. Percent sign % : represents zero, one or more than one character. Underscore …

Like clause Read More »

Group By Clause

Group by clause is used to group the results of a SELECT query based on one or more columns. It is also used with SQL functions to group the result from one or more tables. Syntax for using Group by in a statement. SELECT column_name, function(column_name) FROM table_name WHERE condition GROUP BY column_name Example of …

Group By Clause Read More »