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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:39:33+00:00 2026-05-13T18:39:33+00:00

Total newbie here, regarding sqlite, so don’t flame too hard :) I have a

  • 0

Total newbie here, regarding sqlite, so don’t flame too hard 🙂

I have a table:

index  name    length L  breadth B   height H
1      M-1234  10        5           2
2      M-2345  20        10          3
3      ....

How do I put some tabular data (let’ say ten x,y values) corresponding to index 1, then another table to index 2, and then another, etc. In short, so that I have a table of x and y values that is “connected” to first row, then another that is connected to second row.

I’m reading some tutorials on sqlite3 (which I’m using), but am having trouble finding this. If anyone knows a good newbie tutorial or a book dealing with sqlite3 (CLI) I’m all ears for that too 🙂

  • 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-13T18:39:33+00:00Added an answer on May 13, 2026 at 6:39 pm

    You are just looking for information on joins and the concept of foreign key, that although SQLite3 doesn’t enforce, is what you need. You can go without it, anyway.

    In your situation you can either add two “columns” to your table, being one x and another y, or create a new table with 3 “columns”: foreign_index, x and y. Which one to use depends on what you are trying to accomplish, performance and maintainability.

    If you go the linked table route, you’d end up with two tables, like this:

    MyTable
    index  name    length L  breadth B   height H
    1      M-1234  10        5           2
    2      M-2345  20        10          3
    3      ....
    
    XandY
    foreign_index  x    y
    1              12   9
    2              8    7
    3              ...
    

    When you want the x and y values of your element, you just use something like SELECT x, y FROM XandY WHERE foreign_index = $idx;

    To get all the related attributes, you just do a JOIN:

     SELECT index, name, length, breadth, height, x, y FROM MyTable INNER JOIN XandY ON MyTable.index = XandY.foreign_index;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a total newbie regarding to DLL. And I don't need to creat them
tsql newbie here. I have a table, similar to this one: CarId CarName UserId
Total newbie to R here (so far very pleased!). I have a large array(vector?)
Total newbie question here; I apologize in advance. Suppose I have a daemon written
I am a total newbie in servers/hosting etc, although I have some experience in
Total newbie to XPath and Java here. What I'm attempting to do is something
A total newbie question, so please bear with me here ;) When a key
I'm a newbie here and in XNA programming, but I have some skills in
Total newbie question now... Suffice to say, I have searched for a completely noddy
total newbie here. i was trying to replace a character in char * but

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.