What is the difference between join and union.
Answer Posted / nitin
for SET operators the resultant column set should be same for the tables.
i.e.
select * from boy
union
select * from girl
will give an error if they have different column
but in join you can corellete the column to each other.
select * from boy,girl where boy.id_gender=girl.id_gender;
will give result
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the use of function in sql?
How to pipe multiline string to isql?
how many groups of data types? : Sql dba
Explain the the update statement in sql?
Is sql free?
How does an execution block start and end in pl sql?
If i can use sys.check_constraints to display my constraints from my database using sql server 2005, how can i display then if i am using sql server 2000????
how to convert numeric values to character strings? : Sql dba
Do foreign keys improve performance?
How to fix oracle error ora-00942: table or view does not exist
Can you upgrade sql express to full sql?
Is it possible to link two groups inside a cross products after the cross products group has been created?
Which sql statement is used to return only different values?
what is a control file ? : Sql dba
what are the other commands to know the structure of table using mysql commands except explain command? : Sql dba