Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Move Info From One Table To Another Using SQL

Status
Not open for further replies.

greysquirl

Programmer
Jan 31, 2001
27
US
I need some help using SQL. I have two tables, Review & PositionChg. What I want to do here is take two columns of information from Review (position and position start) and move them to the positionchg table under (position & datechg).

Review PositionChg
Department - - - - - - ->Department
Position - - - - - - - ->Position
Position Start - - - - ->DateChg

I have the rest figured out, but just in case it might help. What should happen here is when an employee makes a position change the information about thier old job will be stored in another table. In a nutshell. . . . .
 
I am assuming we are talking about an Append Query and not Update, correct? Here is an example:

"INSERT INTO PositionChg( Department, DateChg)
SELECT Review.Department, Review.[Position Start]
FROM Review;"

Hope this helps.

Gary
gwinn7
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top