You have a table ‘test’ which is a copy of northwind employee table you have written a trigger to update the field ‘hiredate’ with the current date
Answer / Namita Singh
To ensure that the 'hiredate' field in the 'test' table is always up-to-date with the current date, you can create an AFTER INSERT and UPDATE trigger on the table. The trigger would contain a SET statement to update the 'hiredate' with GETDATE() function.
| Is This Answer Correct ? | 0 Yes | 0 No |
CTE(common table expression)
If there is failure during updation of certain rows, what will be the state?
What are the aggregate and scalar functions?
What is the command to change the recovery model?
What is read committed?
What are trace files?
what is the importence of the trigger in sqlserver2000?
What is unpivot?
Tell me what is difference between clustered and non clustered index?
What is cursor in ms sql server?
PC(code, model, speed, ram, hd, cd, price) Find the hard drive sizes that are equal among two or more PCs.
What is index fragmentation in ms sql server?
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)