I need to update a table.. but i am not sure how to do it..
I want to:
Update tblTableName
set dtStartDate = b.dtStartDate,
txtClass = b.txtClass,
txtCourseNumber b.txtCourseNumber,
txtCourseName = b.txtCourseName
from tblTable -- This is where i don't know what to do..
The record i want to to update is:
Select top1 max(dtStartDate), txtClass, txtCourseNumber, txtCourseName from tblHistoryTable
group by dtStartDate, txtClass, txtCourseNumber, txtCourseName
The tables are related based on a column called numClassID.
Any suggestions would be greatly appreciated..
I want to:
Update tblTableName
set dtStartDate = b.dtStartDate,
txtClass = b.txtClass,
txtCourseNumber b.txtCourseNumber,
txtCourseName = b.txtCourseName
from tblTable -- This is where i don't know what to do..
The record i want to to update is:
Select top1 max(dtStartDate), txtClass, txtCourseNumber, txtCourseName from tblHistoryTable
group by dtStartDate, txtClass, txtCourseNumber, txtCourseName
The tables are related based on a column called numClassID.
Any suggestions would be greatly appreciated..