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 are the commands used in DCL?

722


When would you use it?

764


What are the differences between stored procedure and view in sql server?

846


Why I have to use stored procedures?

785


What is the most common trace flags used with sql server?

691


List out the difference between union and union all in sql server?

684


What command is used to rename the database?

695


What are actions, how many types of actions are there, explain with example? : sql server analysis services, ssas

749


Mention the different types of triggers?

724


What are the advantages of user defined function?

675


How does clustered and non clustered index work?

685


Can a table have 2 primary keys?

727


What is the use of attributehierarchyvisible ? : sql server analysis services, ssas

798


Define Business Edition in SQL Azure?

98


What is pessimistic concurrency?

716