l Database joining :- 1. Joining is a special type of operation perform between 2 tables. 2. With the help of joining we get the result between multiple data. l Joining property:- 1. Common field (column) 2. Using table object Syntax :- table name.column name 3. To activate joining operaton we need ON KEYWORD. ü TYPES OF JOINING:- 1. INNER JOIN :- Inner join returns all records from multiple data where the join condition is equal. Ex:- CREATE TABLE invent ( id INT , name VARCHAR ( 20 )); INSERT INTO invent values ( 101 , 'rahul' ),( 103 , 'thosar' ),( 102 , 'asus' ); CREATE TABLE product ( id INT , cost int ); INSERT INTO product VALUES ( 201 , '1000' ),( 202 , '2000' ),( 203 , '30000' ); SELECT invent . id , invent . name , product . cost FROM invent INN...
Comments
Post a Comment