How to delete an attribute from the emp table

Answer Posted / amit srivastava

create table stup(roll int,name varchar,marks int)
select * from stup
Alter table stup drop column marks
select * from stup

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is store procedure? When do you use?

530


your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files? : Sql server administration

578


Differentiate between a local and a global temporary table?

545


When we should use and scope of @@identity?

557


Do you know how to store and query spatial data?

609






How to transfer data from a cursor to variables with a "fetch" statement?

588


Explain cross join or cartesian product in sql?

546


How many types of relations are there between dimension and measure group? : sql server analysis services, ssas

762


What is the purpose of forms?

501


What is cursors?

646


What is the difference between a stored procedure and a user defined function?

547


Does a sql server 2005 select statement require a from?

587


How many databases instances are there in sql server 2000?

585


What do you mean by an execution plan? How would you view it?

497


What are the new data types are introduced in sql 2000?

506