What are the types of join and explain each?
Answer / Tarun Raj
1. INNER JOIN: Returns only records that have matching values in both tables. The result set includes columns from both tables, and there are no NULL values for the matched columns.
2. LEFT JOIN (also called LEFT OUTER JOIN): Returns all records from the left table (the first table in the join statement), and the matched records from the right table. If there is no match, the result set will contain NULL values on the side of the right table.
3. RIGHT JOIN (also called RIGHT OUTER JOIN): Returns all records from the right table (the second table in the join statement), and the matched records from the left table. If there is no match, the result set will contain NULL values on the side of the left table.
4. FULL OUTER JOIN: Returns all records when there is a match in either the left or right table. The result set includes NULL values for the unmatched columns.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of stored procedures?
What is synonyms?
can sql servers linked to other servers like oracle? : Sql dba
Does oracle roll back the transaction on an error?
GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?
select 1,col1,col2 from table1. output?
What is the fastest way of accessing a row in a table?
Why we use joins in sql?
Does truncate table reset auto increment?
in sql table following column r there i want find 1st paid ,2nd paid,3rd paid date for same |service_type|date |vehicle_no| |------------|------|_---------| |paid |23 jan|MH12H2007 | | | | | |paid |26 feb|MH12H2007 | | | | | | | | | |paid |28 mar|MH12H2007 | i want o/p like below vehicle no| 1st paid date | 2nd paid date|3rd paid |latest paid date| pls help me out
what are the properties and different types of sub-queries? : Sql dba
what is primary key? : Sql dba
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)