hi
anyone help me i cant understand this task
i will send requirement
Create student hisotry table
so when ever update or insert record in student table its marks in this table
table structure
id
StudentID (id of student table)
ColumnName
OldValue
NewValue
UpdatedDatetime
please create trigger for this
i want to show history for student table what ever changes are done in student table should be show in table. when i am change name of any record
i.e Ram to Raju
than insert data with that record id, Column Name='Name' old value ='Ram' New value ='Raju'
SELECT [ID]
,[StudentID]
,[ColumnName]
,[OldValue]
,[NewValue]
,[Updateddatetime]
FROM [IT TEST].[dbo].[StudentHistory]
this is my student history record table structureSELECT [ID]
,[FirstName]
,[LastName]
,[DateOfBirth]
,[Fathername]
,[MotherName]
,[Gender]
,[Height]
,[Weight]
FROM [IT TEST].[dbo].[Student]

Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 8, 2018, 9:58 PM EST
Debasis SahaRank #21 · 46.5K reputationPosted Mar 8, 2018, 5:39 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 8, 2018, 6:20 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 8, 2018, 6:36 PM EST
Amudhan KuppanRank #3,375 · 426 reputationPosted Mar 8, 2018, 6:50 PM EST
Amudhan KuppanRank #3,375 · 426 reputationPosted Mar 8, 2018, 5:47 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 8, 2018, 5:47 PM EST
Amudhan KuppanRank #3,375 · 426 reputationPosted Mar 8, 2018, 5:52 PM EST
Debasis SahaRank #21 · 46.5K reputationPosted Mar 8, 2018, 5:57 PM EST
Amudhan KuppanRank #3,375 · 426 reputationPosted Mar 8, 2018, 6:16 PM EST
Amudhan KuppanRank #3,375 · 426 reputationPosted Mar 8, 2018, 6:32 PM EST
Amudhan KuppanRank #3,375 · 426 reputationPosted Mar 8, 2018, 7:37 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 8, 2018, 8:35 PM EST
Amudhan KuppanRank #3,375 · 426 reputationPosted Mar 8, 2018, 8:44 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 8, 2018, 8:48 PM EST
Amudhan KuppanRank #3,375 · 426 reputationPosted Mar 8, 2018, 8:53 PM EST
Amudhan KuppanRank #3,375 · 426 reputationPosted Mar 8, 2018, 9:43 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 8, 2018, 9:51 PM EST
Amudhan KuppanRank #3,375 · 426 reputationPosted Mar 8, 2018, 9:56 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 8, 2018, 10:01 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 8, 2018, 10:04 PM EST
Amudhan KuppanRank #3,375 · 426 reputationPosted Mar 8, 2018, 10:19 PM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts