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 difference between foreign key and unique key?
What is named query? : sql server analysis services, ssas
4 Please write a querry to find repeated numbers in the following table. Table Name: Table1 Field1 10 15 20 15 10
What is the difference between cross join and Full outer join?
What are the types of processing and explain each? : sql server analysis services, ssas
what is Buffer cash and Log Cache? Can you Explain it?
1. What are the grouping function in SQL ? 2. If base table of a view deleted means, what will happen while we querying on view ? will give any error ? 3. Difference between DROP, DELETE, TRUNCATE table ? 4. What is constraints and types ? 5. What is max size of nchar & nvarchar ? 6. Define ROLLBACK, COMMIT, SAVE POINT 7. How non-clustered better ? or rank the Clustered, Non-Clustered and Table scan in performance wise 8. Select 10 rows from a table ? 9. Define DML, DDL, DCL, DTL commands ? 10. What is mean by NULL value ? NULL means "" or 0 or undefined ? 11. Default constraints ? 12. Can we have more then primary Key in table ? 13. Type of integrity ? Entity, Referential, Domain ?
What are the purposes of floor and sign functions?
What is the parse query button used for?
How can you find out how many rows returned in a cursor?
What is the system function to get the current user's user id?
How to loop through result set objects using mssql_fetch_array()?
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)