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

What are dml triggers and types of dml triggers?

555


SQL Server Architecture ?

1941


Explain triggers?

571


What’s the distinction between dropping a info and taking a info offline?

605


What is data modeling and Reterminal integrity?

1498






How many types of stored procedures are there in sql server?

566


What is named calculation? : sql server analysis services, ssas

540


Explain the truncate command?

530


How will you monitor replication latency in transactional replication? : sql server replication

620


Can you explain various data region available in ssrs with their use?

556


How to change the system date and time from SQL Plus Terminal ?

691


What are the mathematical functions supported by sql server 2005?

561


can any body tell me how to know the password of current user in sql server

1588


How to join two tables in a single query in ms sql server?

551


Explain intellisense for query editing

578