What is difference between alias and synonym in db2?
Answer / Deepak Singh Rathore
In DB2, an alias is a temporary name given to a table or column within a single SQL statement. A synonym is a permanent name that refers to another object (table or view) in the same or another schema.n```sqlnalias:n SELECT col1 AS new_col FROM your_table;nsynonym:n CREATE SYNONYM new_table_name FOR existing_table_name;n```
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of commit in db2?
What is isolation level?
How do I create a table MANAGER (EMP-NO, MANAGER) where MANAGER is a foreign key which references to EMP-NO in the same table? Give the exact DDL.
explain about index with examples
For unmatched rows returned from an outer join, the column values in the other table are set to null e.g If A OUTER JOIN B returns some unmatched rows from A, the corresponding column values in B will be set to null. What can be done so that a null value is not displayed for these columns?
What happens in bind step in a db2 program?
What are the two types of logging in the db2 database? Explain them.
Which one allows duplicate values Union or Union All ?
What does an outer join do?
What is db2 isolation?
How to find the maximum value in a column in the db2 database?
Do we need cursor for Count(*)?