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



I have two tables A and B. Both tables are connected with SSN number as foreign key. I want to ret..

Answer / harsha

One can use Inner Join to get data from two tables.

Is This Answer Correct ?    4 Yes 1 No

I have two tables A and B. Both tables are connected with SSN number as foreign key. I want to ret..

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

I have two tables A and B. Both tables are connected with SSN number as foreign key. I want to ret..

Answer / naidu sekhar yandrapu

SELECT SSN FROM B;

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More DB2 Interview Questions

What is sqlcode -811?

7 Answers   Accenture, CTS, TCS,


What is the maximum No of rows per page?

0 Answers   IBM,


What happens to a cursor after a commit?

3 Answers  


What is a db2 cursor?

0 Answers  


How do you pull up a query which was previously saved in qmf?

0 Answers  


What is copy book?

1 Answers   Thomson Reuters,


What is the physical storage length of date data type?

0 Answers  


What does runstats do in db2?

0 Answers  


What is meant by index cardinality?

2 Answers  


Explain about open switch business continuity software?

0 Answers  


What type of database is db2?

0 Answers  


What keyword does an SQL SELECT statement use for a string search?

2 Answers  


Categories