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?
Answer Posted / 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 |
Post New Answer View All Answers
Are view updateable?
In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?
Explain in brief how does db2 determine what lock-size to use?
What is package in cobol db2?
Which command is used to remove all rows from a table?
What is db2? Explain.
How to fetch the last row from the table in SQL (db2)?
I HAVE 500 ROW TO UPDATE I WOULD LIKE TO USE ROLLBACK ALONG WITH COMMIT.WHAT IS THE SYNTAX TO CODE COMMIT AND ROLLBACK FOR EVERY 100 ROWS.AND HOW THE CURSOR ROLLBACK TO THE LAST COMMITTING POINT.
Why cursor is used in db2?
On which levels locks can be applied?
What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?
What is the syntax for creating a table in the db2 database?
What is db2 purescale?
What is host variable?
How can deadlocks be resolved?