How to delete an attribute from the emp table

Answer Posted / sonia

Using the DROP COMMAND-
See the eg below--

create table stup(roll int,name varchar,marks int)
insert into stup values(1,'A',10)
insert into stup values(2,'B',20)
select * from stup
Alter table stup drop column marks
select * from stup

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between Logical Page and Physical Page in SSRS.

412


What is difference between rownum and rowid?

680


What are the transaction properties?

742


What are statistics?

782


What according to you is the difference between mysql and sql server performance?

774


how to define testing of network layers? : Sql server database administration

666


explain what are the steps you will take, if you are tasked with securing an sql server? : Sql server database administration

840


Explain different types of collation sensitivity?

711


Do you know what is raid and what are different types of raid configurations? : SQL Server Architecture

739


Difference between report and query parameter. Why do we need different type of parameter?

747


Explain triggers in sql?

721


What are the database roles? : sql server security

735


What is the difference between ROW_NUMBER and Ranking function in SQL SERVER?

842


Define left outer join?

758


What is the cartesian product of the table?

730