How to delete an attribute from the emp table

Answers were Sorted based on User's Feedback



How to delete an attribute from the emp table..

Answer / 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

How to delete an attribute from the emp table..

Answer / swetha

we can directly ALTER OR DROP the column AND THEN COMMIT ON
IT SO THAT IT GETS MODIFIED

Is This Answer Correct ?    5 Yes 0 No

How to delete an attribute from the emp table..

Answer / 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

How to delete an attribute from the emp table..

Answer / ram murthy

we can delete an attribute through delete command.

Is This Answer Correct ?    1 Yes 8 No

Post New Answer

More SQL Server Interview Questions

Explain Geography datatype in SQL Server

0 Answers   Infosys,


what is Full Text Search ?

1 Answers   TCS,


What is exporting and importing utility?

0 Answers  


What are the ways available in sql server to execute sql statements?

0 Answers  


Explain a differential backup?

0 Answers  






I am Having tables T1 and T2 both having same data how to check (or) compare the data in both table are same?

3 Answers  


what are the new features introduced in sql server 2000? : Sql server database administration

0 Answers  


What is ms sql server service broker?

0 Answers  


Can we call a function that has out parameter in select statement

0 Answers   Nagarro,


Do you know spatial data types - geometry and geography in sql server 2008?

0 Answers  


Why do we backup Active Directory ?

0 Answers  


Explain how to maintain a fill factor in existing indexes?

0 Answers  


Categories