. With the help of above table EMP, perform the following
operation is sql.
a) Add the new column “DEPTNO”
b) Rename the table
c) Update table
d) Modify the table if column ‘SAL’ whose data type is
number (10) and you want to enter varchar2 (15) . For
example $USD 20 etc.

Answers were Sorted based on User's Feedback



. With the help of above table EMP, perform the following operation is sql. a) Add the new colum..

Answer / guest

create table emp(EMPID number(9),SAL number(10));
Result:creates a table named EMP.
a)alter table EMP add DEPTNO number(9);
Result:a new coloumn DEPTNO is added to the existing table EMP.
b)alter table EMP rename to EMP-RENAMED;
Result:renames the table name EMP to EMP-RENAMED.
c)update EMP-RENAMED
set SAL=SAL+10000
where EMPID>=xxxx;
Result:updates the salaries of Table emp depending upon the condition.
d)alter table EMP-RENAMED modify SAL varchar2(15);
Result:alters the SAL coloumn datatype to varchar2.

Is This Answer Correct ?    2 Yes 0 No

. With the help of above table EMP, perform the following operation is sql. a) Add the new colum..

Answer / arvind agrawal

if want a column in table emp then perform above operation
sql>add deptno into emp;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Programming Languages AllOther Interview Questions

this question is from sas:what is the difference between FILE and INFILE statements? plz explain in brief?

1 Answers  


DIFFERENCE BETWEEN BINDING LANG AND BIND DIR WHEN USING IN SERVICE PGM

0 Answers   CTS,


While joining files if only two files are mentioned with jfile keyword, do we required to use join keyword????

2 Answers  


What is SOLID Principle in Programming Language?

0 Answers   NA,


In mainframe SDSF, Can we copy the list of jobs currently executing in SDSF in to a seperate DATASET...?

0 Answers   DST Global Solutions,






what is web service in java? have u use before.

0 Answers  


In java without use of main() how to execute the program

0 Answers  


Hai, My name is nisha.I have NIC exam.If anybody Knows NIC previous paper pattern pls send me to nishanairp@gmail.com

0 Answers  


how does database connection using ADO.NET?

0 Answers  


19. Given a system that is described with the following equation, X=A+(B.(A̅+C)+C)+A.B.(D̅+E̅) a) Simplify the equation using Boolean Algebra. b) Implement the original and then the simplified equation with a digital circuit. c) Implement the original and then the simplified equation in ladder logic.

0 Answers   Bajak Paint,


Diff between Proc transpose and Arrays with example?

2 Answers   Accenture,


Define distributed queries. can you explain me as soon as possible

0 Answers   HCL,


Categories