what is the difference between trigger and constraint?
Answers were Sorted based on User's Feedback
Answer / kumar jabu
Constraints implements specific conduct or rules on table column like it determines whether field data should be unique,not null ..
But triiger implements rules on systems or application event.
whenever dml occurs that implemented rules been fired.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / naga sindhuri
Triggers not apply for existing rows but constraints can
apply for existing rows.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / milind chopde
1) Constraints can be used for validation but trigger can be used for complex validation and auditing purpose.
2) Trigger is database object but constraint not.
3) Trigger can be fired on DDL commands but constraints are created or altered using DDL commands.
4) Trigger can be fired on particular event like before/after DML but constraint always check before any data insert or update to table.
| Is This Answer Correct ? | 1 Yes | 0 No |
Write the order of precedence for validation of a column in a table? I. Done using database triggers. Ii. Done using integarity constraints
what are sequences
How many subqueries can be nested in a statement?
what is column? : Sql dba
Give the order of sql select?
Is left join inner or outer by default?
What are the types of queries in sql?
What are the different ddl commands in sql?
What is nosql db?
Can you have more than one key in a database?
Which one of the following pairs of aggregate functions do you use with character fields? 1. COUNT(field) and MAX(field) 2. AVG(field) and COUNT(field) 3. MIN(field) and SUM(field) 4. AVG(field) and MAX(field) 5. COUNT(field) and SUM(field)
Explain what is a subquery ?
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)