If we have 100 records in the PF, we deleted all the records
then what is the Size of the PF?
Answers were Sorted based on User's Feedback
Answer / divyananda
The memory will be held untill you compress the PF
Is This Answer Correct ? | 6 Yes | 1 No |
Answer / rama
If it is a physical sequential file the size of the file
becomes 0.
Is This Answer Correct ? | 5 Yes | 2 No |
SET is the ANSI standard for variable assignment, SELECT is not. SET can only assign one variable at a time, SELECT can make multiple assignments at once. If assigning from a query, SET can only assign a scalar value. If the query returns multiple values/rows then SET will raise an error. SELECT will assign one of the values to the variable and hide the fact that multiple values were returned (so you'd likely never know why something was going wrong elsewhere - have fun troubleshooting that one) When assigning from a query if there is no value returned then SET will assign NULL, where SELECT will not make the assignment at all (so the variable will not be changed from it's previous value) As far as speed differences - there are no direct differences between SET and SELECT. However SELECT's ability to make multiple assignments in one shot does give it a slight speed advantage over SET.
What do you mean by NOT NULL WITH DEFAULT? When will you use it?
What does DML stand for and what are some examples of it?
how to resolve -811
What is meant by index cardinality?
What is dbrm?
If we keep the DCLGEN structure for a table in a copybook and include it in the COBOL program using the COPY statement, will there be any impact during compilation or at any stage of program execution?
How can you validate Sql errors during cursor operation in db2 pgms and where do you code?
How to get Top 10 Salaries from a Table
What is subquery ?
Do we have any optinon to search part of integer in DB2 as we have for character Like,SUBSTR optins?
Which component is used to execute the sql statements?