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 |
What is db2 look?
where will u check for sqlcode ?
What if we fail to give values in columns declared as NOT NULL ?
What is buffer pool in the db2 database?
What do you need to do before you do EXPLAIN?
What are the different methods of accessing db2 from tso? How is the connection established between TSO & DB2?
How can you quickly find out the # of rows updated after an update statement?
What language is db2 written in?
What is meant by AUTO COMMIT?
how to fetch first 100 rows in db2
How can tablespace be moved to another dasd volume that is allocated for that tablespace?
how to copy the host variables from ps file into cobol program other than include statement