If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > The intermediate table joining 2 tables

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-08-03, 03:01
ishrat khan ishrat khan is offline
Registered User
 
Join Date: Oct 2003
Posts: 14
Question The intermediate table joining 2 tables

Hi to all ....

i am working on a project that involves employees and projects...
One employee can work on different projects....and one project can have more that one employees( may me 5, 10 or 15)
I have created a table "Employee" , "Project" and "EmpProject" to link the two tables. EmpProject contains EmpID from Employee and ProjID form Project.

The problem here is ... How to insert values in the EmpProject table...
when ever an employee joins a project or a new project is started.

regards....

i will be waithing for a quick prompt.
Reply With Quote
  #2 (permalink)  
Old 10-11-03, 07:34
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Re: The intermediate table joining 2 tables

What do you mean? To insert values into EmpProject you would obviously use an INSERT statement like:

insert into EmpProject (EmpID, ProjID) values (21, 42);

Where is the difficulty?
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On