How to delete an attribute from the emp table
Answers were Sorted based on User's Feedback
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 |
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 |
we can delete an attribute through delete command.
| Is This Answer Correct ? | 1 Yes | 8 No |
what is dbcc? : Sql server database administration
Is profiler the only tool that has the ability to audit and identify ddl events? : sql server security
How to generate random numbers with the rand() function in ms sql server?
What is dml command?
What is sql view?
What are the underflow and overflow behaviors on float literals?
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?
Explain different types of index?
define and explain the differences between clustered and non-clustered indexes.
how to get the salary in descending order with out using the keyword desc in sql
can any one say how to update the following senario I have a table <srabank> in which the table structure is as follows ANAME ACCNO LOCATION ACCTYPE BAL SBanuPrakash 31518746291 Punganur deposit 4000 Sreenivas 31518746292 mahoobnagar current 14000 Ranjith 31518746293 Karimnagar Savings 2000 Giresh 31518746294 Chennai deposit 40000 Boo 31518746295 Chennai Savings 20000 Jay 31518746296 Valachari Savings 1000 tirumalraj 31518746297 Vellore Savings 8000 The senario is We need to select one account number and check the balance after checking the balance if the balance exist we need to transfer to another account . in the from account the amount need to be reduced and in the to account the amount needed to be added. for example for the <accountno> <31518746291> the balance is <4000> for the <accno> <31518746292> the balance is <14000> after transferring the balance the details will look as follows <accno><31518746291> <bal> <2000> <accno><31518746292> <bal> <16000> the above mentioned two statment will come under the final result.
How can we write or define DDL statements in Sql server and DML statements?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)