TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Deepak Ratan
NA
175
50.1k
Query
Jun 22 2015 11:53 PM
How to write a query for audit table?
I have to get OLD_Value and NEW_Value
This is my table:
Tabel : 1
BusinessEntityID
int PRIMARY KEY
RateChangeDate
datetime
Rate
money
PayFrequency
tinyint------ > Have to change this column
ModifiedDate
datetime
Tabel : 2
BusinessEntityID
int PRIMARY KEY
Old_Value
tinyint
New_Value
tinyint
ModifiedDate
datetime
Reply
Answers (
7
)
SQL Trigger for adding Old Val and New Val to audit table
Try Catch in SQL