what is the difference between inner and outer join? Explain with example. : Sql dba
Answer / Abhinav Shanker
An INNER JOIN returns records that have matching values in both tables. On the other hand, an OUTER JOIN (LEFT or RIGHT) returns all records from one table and the matched records from the other table. If there is no match, NULL values are used for unmatched columns. Example: n`SELECT a.column1, b.column2 FROM tableA a INNER JOIN tableB b ON a.id = b.id;n`n`SELECT a.column1, ISNULL(b.column2, 'No Match') AS column2 FROM tableA a LEFT JOIN tableB b ON a.id = b.id WHERE b.id IS NULL;'"
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the types of triggers in sql?
What is the difference between local and global temporary table?
What is the difference between syntax error and runtime error?
How can get second highest salary in sql?
What does plv msg allows you to do?
What is online transaction processing (oltp)?
How to generate a salary slip like jan 1000 1000 feb 1000 2000 ... dec 1000 12000
How to write a single statement that concatenates the words ?hello? And ?world? And assign it in a variable named greeting?
Can we call dml statement in function?
What is a trigger ?
11 Answers Accenture, BirlaSoft,
What are the types pl/sql code blocks?
can i write pl/sql code in a package
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)