Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


While creating a table, by mistake you have given size of one
field as 10. But as per requirement size should be 8. What is
your next step?

Answers were Sorted based on User's Feedback



While creating a table, by mistake you have given size of one field as 10. But as per requirement ..

Answer / hameed shaik

In Db29 we can alter the column size but cannot delete the column..
I did it so many times.. ALTER TABLE Tablename ALTER COLUMN columnname SET DATA TYPE VARCHAR(51)

Is This Answer Correct ?    7 Yes 0 No

While creating a table, by mistake you have given size of one field as 10. But as per requirement ..

Answer / mr.perfect

IF field is having empty in table , then we can reduce or
increase the size of the field, using the alter statement .
i.e . alter table <tablename>
modify <new columnname ><data type><new size>
if the data in the table is non-empyt, then we cannot alter
the table. better to delete the column and add the same
column to new size.

Is This Answer Correct ?    4 Yes 3 No

While creating a table, by mistake you have given size of one field as 10. But as per requirement ..

Answer / naidu sekhar yandrapu

once enter into column length ,we can increase the data length if a table is empty but if the table is non empty we can only
increase the(data length)

in this situation add one more column should be size is 8.

Is This Answer Correct ?    5 Yes 6 No

While creating a table, by mistake you have given size of one field as 10. But as per requirement ..

Answer / rahul

If table is empty then we alter this column to any length,
but if some data got inserted into the table then we can
also decrease the column length upto largest data size
available in that perticulat column.

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More DB2 Interview Questions

How can we read records for specific member in CL? AND rpg?

0 Answers  


Under what circumstances will DB2 allow an SQL statement to update more than one primary key value at a time?

1 Answers  


what is the steps followed in EXPLAIN Process or EXPLAIN command. (Explain is for identifying the optimized access path but how or what is the steps for doing the EXPLAIN)

4 Answers   IBM,


What is a PLAN table? How will you use it? Give the various fields of PLAN table?

1 Answers   Accenture,


What does DSNDB07 database do?

2 Answers  


How to find last record before record through SQLRPGLE?

1 Answers   IBM,


Write a query to retrive partial string.

2 Answers  


what is the use of commit ? and what is the syntax?

2 Answers   Deloitte,


What is a LIKE table and how is it created?

2 Answers  


What statistic will tell the DBA how must space can be reclaimed from dropped table spaces on the next reorg run?

1 Answers  


What is lock contention?

1 Answers  


Suppose we have a query for update update table1 set col1 = 'val1' where col2=(select .... from ...) suppose the subquery does not return any record, what will happen to update?

1 Answers   IBM,


Categories