Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7879169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:50:33+00:00 2026-06-03T03:50:33+00:00

I have 2 tables: Lecturer and Department . The Lecturer table has these columns:

  • 0

I have 2 tables: Lecturer and Department.

The Lecturer table has these columns:

id, email, phone, expertise, dept_id.

The Department table has these:

dept_id, dept_name, dept_code, dept_program.

Sample data is as follows:

Lecturer table

(id=1, email= a@a.com, phone= 9999, expertise= multimedia and programming, dept_id=1)

Department table

(id=1, dept_name=Computer Science, dept_code=CS, dept_program=Bachelor of Comp Science)

The expertise column has several values, and some lecturers might have more than 5 expertise areas, so I think I should create another table for expertise alone. But how to insert multiple attributes of expertise into lecturer table?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T03:50:34+00:00Added an answer on June 3, 2026 at 3:50 am

    You can’t really do this by changing only the lecturer table. Normally, you handle multivalued attributes by creating seperate tables. In this case, you would create one table to hold expertise attributes and another one to associate expertises with lecturers. As a bonus, that’ll also help to prevent inconsistencies when it comes to descriptions of expertise.

    The resulting tables might look like this:

    department(dept_id, dept_name, dept_code, dept_program)
    lecturer(id, email, phone, dept_id*)
    expertise(id, description)
    lecturer_expertise(lect_id*, expertise_id*)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tables item and store (it's a store management system). item table has
I have several tables: lecturer(id,name,email) - 1,john,john@abc.com - 2,andy,andy@abc.com - 3,kyle,kyle@abc.com - 4,allen,allen@abc.com sig(id,name)
I have tables like these two test_table date student test 2012-05-31 Alice Math 2012-05-31
I have tables linked by FK, I query on the first table using entity
In the database we have tables called Sites, Organisations, Person, Department have the same
I have a table that has a composite key that consists of two int
have tables like this Table checklist idCardno name permAddress datetime Table persons name idcardno
I have tables foo and bar: create table foo(a int, b varchar(10), primary key
I have tables & data like this: venues table contains : id +----+---------+ |
I have tables of data samples, with a timestamp and some data. Each table

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.