What is the difference between join and union.

Answer Posted / krish

Blue Shark
he is right but the union O/P
is wrong
1 hammer 3 $ 1
2 screwdriver 5 $ 2

this is right
it won't select duplicates
union all will do.
thanks

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we go for stored procedures?

505


What is asqueryable?

523


What are the advantages of sql?

556


Why do we use set serveroutput on?

508


What is cost in sql execution plan?

482






How to get list of all tables from a database?

623


What is the usage of the distinct keyword?

680


Can we connect to postgresql using sql developer?

484


What is scalar function in sql?

525


How many types of cursors supported in pl/sql?

582


What is the file extension for sql database?

513


i have a column which may contain this kind of value: 123*67_80,12*8889_5,34*8_874 ,12*7_7 (can contain space before a comma, and this string length can be anything) now i want to split this value into two column like: column1: 123*67,12*8889,34*8,12*7 column2: 80,5,874,7 use function for this

1059


How to know the last executed procedure?

583


How subquery works in sql?

535


What are sql objects?

534