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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:19:43+00:00 2026-05-18T12:19:43+00:00

I got these 3 tables Ques Table Ques |Ans |QuesID|LangID __________________________________________ Ques1|Ques1’s Answer|1 |1

  • 0

I got these 3 tables

Ques Table

 Ques |Ans          |QuesID|LangID
__________________________________________
Ques1|Ques1's Answer|1     |1
Ques2|Ques2's Answer|2     |2

LangID is a Foreign Key that References LangID in table Languages

Languages Table

LangID         |Description|LanguageID
______________________________________
1              |French     |1
2              |English    |2

Language Table is for website’s contents’ language

EditorLanguage table

LanguageID|Value|Desc
______________________
1         |fr-FR|French
2         |en-US|English US

EditorLanguage Table is for RadEditor’s Language

When a new Ques is added:-

The InsertUpdateQues Stored Procedure inserts the following values in Ques Table:-

QuesID, Ques, Ans, LangID

Now on my Ques Page, I have the following:-

-A drop down list box to select language (this drop down is bound to EditorLanguage Table's Desc column)
-A Text Box for Ques
-Telerik RadEditor for Ques's Answer
- Submit cancel buttons

Now lets say the langauage selected from the drop down is French whose language ID=1, Value=fr-FR, desc=French

Now how do I pass this LangID value to InsertUpdateQues Stored proceedure. I mean how it should get this value?

I am confused because of this Foreign Key thing..new too ms sql

How will the logic be formed? What is even going on here ?
so ok it will get LangID somehow but how and what good will that do ? I am suddenly feeling lost.

  • 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-18T12:19:44+00:00Added an answer on May 18, 2026 at 12:19 pm

    Why are Languages and EditorLanguage separate tables? Based on what you’re showing us, it looks like they would be better as a single table. The table names and key names are unintuitive as well.

    As it stands right now, you’re going to have to translate the LanguageID that the form is posting into a LangID that the Ques table needs. This can be done in code by hitting the database (or a cached lookup) to select LangID from Languages where LanguageID equals the value you have. Or you can do this inside of the stored procedure you’re calling (so it’s only a single trip to the database) by either selecting the value into a variable and using the variable in your insert/update, or by using a subquery in your insert/update to select the value.

    Note that this may get clouded if there’s any kind of one-to-many relationship between Languages and EditorLanguage.

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

Sidebar

Related Questions

No related questions found

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.