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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:15:38+00:00 2026-06-16T03:15:38+00:00

I have two tables and i try to create a table for managing data.

  • 0

I have two tables and i try to create a table for managing data.

the first table is “questions”:

questions (question_id, key1, key2, key3, key4, user_id, creation_date, class, type     permission)

and the other:

questions_keys (question_key_id, question_key_name, question_key_refers_to)

every time i push the submit button stored in the table question_keys four records and one in table of questions. heres an example:

question_keys:

1, mathematics, 0
2, history, 1
3, physics, 2
4, geography, 3

and question table:

(1, 1, 2, 3, 4, 8, 2012-12-19 20:41:48, 4, multiple_choice,     0)

the query i need: in the table show the question_key_name where key1, key2, key3, key4 in table questions is equal to question_key_id.

and show in one row something like this:

mathematics, history, physics, geography, multiple_choice, 2012-12-19 20:41:48 etc

i’m new and i need your help.. thanks a lot!

  • 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-16T03:15:39+00:00Added an answer on June 16, 2026 at 3:15 am

    Try this:

    SELECT qk1.question_key_name qk2.question_key_name, qk3.question_key_name, 
           qk4.question_key_name, q.type, q.creation_date 
    FROM questions q 
    INNER JOIN question_keys qk1 ON q.key1 = qk1.question_key_id 
    INNER JOIN question_keys qk2 ON q.key2 = qk2.question_key_id 
    INNER JOIN question_keys qk3 ON q.key3 = qk3.question_key_id 
    INNER JOIN question_keys qk4 ON q.key4 = qk4.question_key_id;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two tables-- create table mobile ( id int, m_name varchar(20), purchase_date datetime
I have create two tables with reference with another table: I like this: Table1:
I have the following two tables defined... CREATE TABLE [LogLevel] ( [Id] int primary
I have two tables, theme and quiz , here is their definition: CREATE TABLE
I have got a problem with two tables: CREATE TABLE IF NOT EXISTS `addresses`
I have two tables: table a ida valuea 1 a 2 b 3 c
I have two tables one with ID and NAME table 1 ID | NAME
I have two tables user table user_id | name | 1 | peter |
I have two tables, a user table and a application table: User id username
I have two tables connected with one to many relationship. Parent Table is a

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.