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

  • Home
  • SEARCH
  • 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 8865939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:39:14+00:00 2026-06-14T16:39:14+00:00

I am trying to define some MySQL relations. I have 3 tables as given

  • 0

I am trying to define some MySQL relations. I have 3 tables as given below:

     employee:
     | id | first_name | last_name | email

     notifications: (notification names are email, post etc)
     | id | name             | description

     employee_notifications:
     | id | employee_id | notification_id |

Is there any advantage (or disadvantage) in changing the employee_notifications table to insert all notification ids of an employee in one row using json_encode?

As of now, there are like 100 employees and 6 notification methods.

  • 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-14T16:39:16+00:00Added an answer on June 14, 2026 at 4:39 pm

    Is there any advantage (or disadvantage) in changing the employee_notifications table to insert all notification ids of an employee in one row using json_encode?

    There are significant disadvantages. With your current setup, you can easily find out which notifications an employee has, or which employees subscribe to a particular notification. Putting it as JSON in the employees table is going to remove your ability to do that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to define some subroutines that have calls to printf in them. A
I have a mysql database that has several tables, some tables relate to others
I have some code outputting data into html tables. I'm trying to have a
I have several files, listed just below, wherein I define some namespaces and classes.
I'm trying to define a very simple function in Drools as below: import java.util.List;
I have had quite some difficulty trying to make a User Defined Function (UDF)
I'm trying to get away from using Mamp, so have recently installed mysql, edited
I do a lot of custom applications at work. I'm trying to define some
I've been trying to dynamically define some instance methods in Ruby 1.9. Here's the
Hi I'm trying use a mixin to define some method using define_method. I would

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.