problem with database

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2008
Posts: 19
Reputation: krany18 is an unknown quantity at this point 
Solved Threads: 0
krany18 krany18 is offline Offline
Newbie Poster

problem with database

 
0
  #1
Nov 24th, 2008
hai friends,,
i am new for the project development.
i am developing a application like naukri/monster.
i created the tables like employeename,phonenumber,skills,technology,role,work experience,location like that i am taking attributes.

my boss said " to create the database like each table for name and first name,lst name like that..
please send me how to do that ..
i am getting so confused on that..
please help me ASAP
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 269
Reputation: Traicey is an unknown quantity at this point 
Solved Threads: 19
Traicey's Avatar
Traicey Traicey is offline Offline
Posting Whiz in Training

Re: connectivity

 
0
  #2
Nov 25th, 2008
Ok so U have 2 tables and u want to connect the tables to each other, what u can do is to have a primary key and the foreign key in the master table, that means, on Job table u can have a skillId as a foreign key and then on Skills Table u gona have SkillId as a primary then u will know what Job is associated with what skill

so one more question which Database ur using, MS Access, SQL, Oracle or what?

Then the code will merely depend on which Technology ur using for ur database
Some people get so rich they lose all respect for humanity. That's how rich I want to be.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 19
Reputation: krany18 is an unknown quantity at this point 
Solved Threads: 0
krany18 krany18 is offline Offline
Newbie Poster

Re: connectivity

 
0
  #3
Nov 25th, 2008
[i am using the sqlserver database .

And while i am using that could i retrieve the data
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 269
Reputation: Traicey is an unknown quantity at this point 
Solved Threads: 19
Traicey's Avatar
Traicey Traicey is offline Offline
Posting Whiz in Training

Re: connectivity

 
0
  #4
Nov 25th, 2008
Yah sure u can

The code to connect 2 tables will be something look like this

example

alter table tableName
Add Constraint anyLegalvariable Foreign Key(ColumnName that u want to be a foreign as it is from the table)
References Name of the table u are getting a key from(Column name as it is from the table)

Sample code
alter table Job
Add CONSTRAINT fk_Skill_Id FOREIGN KEY (SkillID)
   REFERENCES Skills (SkillID)

on the above code u are changing the job table by adding a foreign key which is originated on Skill table
Some people get so rich they lose all respect for humanity. That's how rich I want to be.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 269
Reputation: Traicey is an unknown quantity at this point 
Solved Threads: 19
Traicey's Avatar
Traicey Traicey is offline Offline
Posting Whiz in Training

Re: problem with database

 
0
  #5
Nov 25th, 2008
What did ur boss said???

can u post ur project specs sure that would help
Some people get so rich they lose all respect for humanity. That's how rich I want to be.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC