Database Design help needed -


i trying develop database model recruitment website , have lot of confusions.

  • job seeker can make 5 resumes online. in location field can add 5 locations @ most.
  • job seeker can fill form , jobs emailed according fields filled up. in form can select many locations want.
  • job poster can posts job. , can add many locations want in job form.

i have created location table locations. confused how locations saved in resume, jobemail , jobad table?

i can think of 2 solutions.

  1. there locations field in each table , location ids posted forms saved in field separated commas. , later on can use mysql function match these locations.
  2. create table each table columns resumeid, locationid, , locations saved separate record in table.

which of these solution right? or there other way kind of scenarios.

thanks

create table. never, ever store data comma-separated values. "never, ever" might slight exaggeration in circumstances you'll best served storing data in table can apply normal sql queries without having parse comma separated data.

in other words, second approach optimal one.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -