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 properties of the transaction?

533


Can foreign key be duplicate?

623


Can you explain the disadvantages/limitation of the cursor?

497


How to provide default values to function parameters?

587


Explain how many types of relationship?

567






What is sql server schema compare? How we can compare two database schemas?

553


How can you know if the row fetched from cursor is still valid in underlying table?

510


you have developed an application which uses many stored procedures and triggers to update various tables users ocassionally get locking problems which tool is best suited to help you diagnose the problem? : Sql server administration

527


What are the difference between “where” and “having” clause in sql server?

574


How do I uninstall sql server 2014?

514


What is difference between clustered and non clustered index?

520


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

614


What is always encrypted?

512


How would you go about developing a ssrs report?

110


What is difference between foreign key and unique key?

542