I have two tables A and B. Both tables are connected with SSN
number as foreign key. I want to retrieve a column data from B
table. How will you write a query?
Answers were Sorted based on User's Feedback
Answer / harsha
One can use Inner Join to get data from two tables.
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / siri
1)select ssn from b;
2)select b1.ssn from a a1,b b1 where a1.ssn=b1.ssn
3)seelct b1.ssn from a a inner join b b1 on a1.ssn=b1.ssn
| Is This Answer Correct ? | 0 Yes | 1 No |
how to resolve -805 . how to see dbrm and package not found
What does an outer join do?
can i code union in cobol-db2 pgm ?
What is the difference between Where and Having Clause
What is the difference between drop table and delete table?
What's the Maximum Length of SQLCA and what's the content of SQLCABC?
Can we use group-by clause in sub-query? If 'yes' means,Will it be executed successfully or else If 'no' means why should we not using that method? Give me your suggestion please....
which is the most efficient tablespace?? a.simple tablespace. b.partitioned tablespace. c.segmented tablespace. d.none of the above. please post answer with the reason.?
What are the various isolation levels possible?
What is phantom read in db2?
Explain about open switch business continuity software?
Name the different types of Table spaces.