. 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
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 |
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 |
In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?
Suppose server object is not loaded into the memory, and the client request for it , what will happen?
Difference between debugging, running, executing of an application
4. What is the need of START 0? Instead if can we use any other numeric? If we use what will happen?
What is the meaning of client-server application. The purpose of Client-Server Application. with description.
how to generate dsnless connectivity in j2ee
73. How can you set the status and title for a modal dialog box? a) In the attributes of the corresponding screen. b) Before the corresp. call screen statement. c) In a PBO module of the corresponding screen. d) In the PAI module of the corresponding screen.
Hi, I'm doing B.com 3rd year. Simultaneously I'm doing software engineering in a private institution. I would like to know whether my B.com graduation alone is enough to get me a job in the IT field or should I do some PG course not MBA... suggest me...
what is the exact full form of OOPS,O -> object O -> oriented P -> programing S-> ? ....
When we have two versions of the dot net installed how does the compiler know which version of DLL it has to select to an application.
in a VB application, where the data will be stored after manipulation? what is the syntax for that?
what is difference between oracle and pl/sql