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 6784955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:03:51+00:00 2026-05-26T17:03:51+00:00

I think the design is straightforward so no explanation is required. Question: Is there

  • 0

enter image description here

I think the design is straightforward so no explanation is required.

Question: Is there a way to inditcate the language of the name column in courses table? Maybe to link it with the languages table?

Edit: Or maybe separate the name-language pare in another table with id and reference it in courses table?
Edit2: Course language and Name langauge may be different

  • 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-05-26T17:03:52+00:00Added an answer on May 26, 2026 at 5:03 pm

    Question: Is there a way to inditcate the language of the name column in courses table? Maybe to link it with the languages table?

    There’s no need. The following query will give you what you want:

    SELECT c.name, COALESCE(l.name,'default') as language
    FROM courses c
    LEFT JOIN courses_has_languages cl ON (cl.courses_course_id = c.course_id)
    LEFT JOIN languages l ON (l.language_id = cl.languages_language_id)
    

    Of source it would be even better if you just rename your column names so the query can be rewritten to:

    SELECT c.name, COALESCE(l.name,'default') as language
    FROM courses c
    LEFT JOIN courses_has_languages cl ON (cl.course_id = c.id)
    LEFT JOIN languages l ON (l.id = cl.language_id)
    

    But that’s just my preference.

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

Sidebar

Related Questions

This is a practical Domain Driven Design question: Conceptually, I think I get Aggregate
This is a design question, I guess there going to be several suggestions (I
I'm trying to think of the correct design for a web service. Essentially, this
I'm trying to design a database for a sports meeting. I think I've got
I'm trying desperately to design my UI programmatically. But I think I'm in trouble
Is there such a thing as having the most prefered design pattern for building
I think the title for this question is probably wrong, but I'm not sure
Quickie-Question: To summarize, I'm a little confused as to how I would design such
I'm trying to think of a design for a 2D animation file format. I've
I am in the planning and design stage of an idea. Think of foursquare

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.