Select statement is used to fetch data from a table. Mainly the data is fetched by two ways using select...
Continue reading...SQL
SQL EXISTS
To test the existence of any record in subquery EXISTS operator is used. It returns a boolean value (True/False). It returns...
Continue reading...SQL ANY ALL
Select statement is used to fetch data from a table. Mainly the data is fetched by two ways using select...
Continue reading...SQL SELECT INTO
SELECT INTO statement copies data from one table to new table. Syntax: SELECT * INTO new_table FROM old_table WHERE condition;...
Continue reading...SQL INSERT INTO SELECT
To copy record from one table to another table INSERT INTO SELECT statement is used. In this statement the data...
Continue reading...SQL IN
To specify multiple values in WHERE clause, we use IN operator. IN operator is mainly used when there are multiple...
Continue reading...SQL WILDCARDS
Select statement is used to fetch data from a table. Mainly the data is fetched by two ways using select...
Continue reading...SQL LIKE
Select statement is used to fetch data from a table. Mainly the data is fetched by two ways using select...
Continue reading...SQL MIN and MAX
MIN() function: It returns the minimum(smallest) value of the selected column. Syntax: SELECT MIN(column_name) FROM table_name WHERE condition; DEMO STUDENTS TABLE:...
Continue reading...SQL COUNT SUM AVG
Count() Function: It returns the number of rows in selected column. Syntax: SELECT COUNT(column_name) FROM table_name WHERE condition; SAMPLE STUDENTS DATABASE:...
Continue reading...