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

New concepts of sql server 2005 use in your project.

1914


What stored by the model? : sql server database administration

550


What is the difference between Normalization and De-normalization?

568


What is 2nf example?

554


Tell me about joins in database system and explain each in detail.

602






How would you choose between a clustered and a non-clustered index?

547


Stored Procedure returns data from multiple tables. How to access it in your ASP.Net code?

557


What is the difference between a clustered index and a non-clustered index?

536


Explain transaction server consistency?

530


You want to generate a report that is formatted as a chart. Can you use the report wizard to create such a report?

88


Why can there be only one clustered index and not more than one?

551


How to execute a sql statement using mssql_query()?

550


What are “phantom rows”?

1249


In which files does sql server actually store data?

476


Define inner join in sql server joins?

535