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

You notice that the transaction log on one of your databases is over 4gb the size of the data file is 2mb what could cause this situation, and how can you fix it?

726


Explain the advantages of merge replication?

593


What is a coalesce function?

752


How to create indexed view?

644


How to modify existing triggers using "alter trigger"?

628






Explain different forms of normalization?

604


What are basics of policy management?

724


What is the latest version of microsoft sql server?

568


Explain about system stored procedure?

676


What is reportserver and reportservertempdb ?

116


How to list all field names in the result set using mssql_field_name()?

613


How many databases instances are there in sql server 2000?

656


Explain logical operators in sql server?

664


What is factless fact table? : sql server analysis services, ssas

658


Explain the properties of the relational tables?

630