Explain various On-Delete options in a DB table. Which is the default option?
Answer / Alok Ranjan
In SQL, there are three main on-delete options for foreign keys: CASCADE, SET NULL, and NO ACTION. CASCADE deletes the referenced rows from the child table when a row is deleted from the parent table. SET NULL sets the foreign key to NULL when a row is deleted from the parent table. NO ACTION prevents the operation from being performed, causing an error instead.
| Is This Answer Correct ? | 0 Yes | 0 No |
Differentiate between SQL and ORACLE joins and write their syntax.
How do you rebuild an identity column?
which query u can write to sql server doesn't work inbetween 7.00PM to nextday 9.00AM
How to create a login account in ms sql server to access the database engine using "create login" statements?
What is the use of builtinadministrators group in sql server? : sql server security
Tell me about normalization in DBMS.
What is sql server replication? : sql server replication
What is merge replication?
What is an execution plan? When would you use it?
What is onf in normalization form?
What is the downside of using udf?
System variable and temporary variables
Oracle (3253)
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)