Update DML Statements

Definition : This statement is used to modify/change/update the existing record/s or data in the database. Syntax : UPDATE table–name SET(column–name1=value1, column–name2 =value2, column–name3=value3, column–name4=value4, column–name5=value5 ) ; Example : UPDATE employee SET(emp_id=”125M”, emp_name=”Rahman”, emp_addr =”Kolkata”, emp_dept=”Manager”, emp_dob=”05/22/2020″, emp_sal=20500, emp_mob=9334582186); UPDATE employee SET(emp_name=”Rahman”, emp_addr =”Kolkata”, emp_dept=”Manager”, emp_dob=”05/22/2020″, emp_sal=20500, emp_mob=9334582186 where emp_id= “105M”);

Loading

Delete DML Statement

Definition :  This statement is used to remove one or more records permanently from the database table. Syntax :  DELETE table-name; DELETE table-name where condition; Example :  Problem : How to remove all data/records from a table permanently. SQL> Delete from employee; SQL> Delete * from employee; Problem : How Read more…

Loading

Select DML Query Statement

SELECT STATEMENT Basic Select Syntax :  SELECT column_name1,column_name2… column_name_n FROM table-name[WHERE Clause][GROUP BY clause][HAVING clause][ORDER BY clause]; The SELECT query statement is used to retrieve stored data from a database in the form of table-like structure called result set. It is one of the largest use query/statement.            Example : How Read more…

Loading

Insert into DML Statement

Definition : Insert into statement is used to add new or fresh record/s into an existing database table. Syntax : INSERT INTO table-name (field or attribute or column-name1, column-name2, column-name3, column-name4, column-name5) VALUES (value1, value2, value3, value4, value5 );(Press Enter) Example : For more Select query use this link

Loading

Create Table DDL Statement

Create Table Definition : This statement creates a new/fresh table with various column or field names and respective datatypes in a database. Syntax : CREATE TABLE schema_name.table_name (column_name1 data_type1 column_constraint1, column_name2 data_type2 column_constraint2,    . . . table_constraints ); CREATE TABLE table_name ( column_name1 data_type1 column_constraint1, column_name2 data_type2 column_constraint2,    Read more…

Loading

Misc. Statements in SQL

Click this link to know How to Uninstall Oracle 10g from Window 7/8.1/10.        Example : How to start/open oracle 10g from C-Command prompt/in MS-DOS ? Example : How to back at C-Command prompt/in MS-DOS from Oracle 10g SQL prompt ? Example : How to find SID name Read more…

Loading

DCL Statements

Introduction DCL stands for Data Control Language. DCL statements are crucial for managing database security by controlling who has access to what data and what operations they can perform. Definition DCL statements are a collection of those SQL statements that are used to control security and concurrent access to the Read more…

Loading

View in SQL

Introduction of View View is a powerful feature of SQL that can significantly streamline our data management and querying processes. Definition View is a virtual table created using the CREATE VIEW statement from an existing table. Characteristics In SQL, a view is a virtual table based on the result set Read more…

Loading

DML Statements

DML stands for Data Manipulation Language. DML is used to manipulate database data i.e. DML statements are the collection of those SQL commands which are used to store or save or insert, retrieve or search, modify or change or update, and erase or remove or delete data from the database as per Read more…

Loading