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

The Archive Base Latest Questions

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

I define table 1. Now i want to add new table – and one

  • 0

I define table 1.
Now i want to add new table – and one of the column of the second table need to be the first table –

How can i do it ?

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

    If you want one column of a table to reference another table, then your best bet is probably to go read up on the concept of keys, primary keys, and foreign keys in database design.

    For example, in a database of companies and employees, you might have 2 tables like this:

    Company (c_id, name, city)
    Employee (e_id, c_id, name)
    

    In the Company table, c_id would be a primary key. In the Employee table, c_id would be a foreign key referencing Company. This would allow you to do queries like

    SELECT E.name
    FROM Employee as E, Company as C
    WHERE E.c_id = C.c_id AND C.name = "IBM"
    

    which would return the names of employees who work at IBM.

    Links:

    http://en.wikipedia.org/wiki/Primary_key

    http://en.wikipedia.org/wiki/Foreign_key

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

Sidebar

Related Questions

i already have the crm_member_list table and also can successfully login ,now i want
I have this xml file, and now i will want to add new entries
if i define a table like this: Dim datatable As PdfPTable = New PdfPTable(4)
Is it possible to define a timestamp column in a MySQL table that will
First of all, let's define a few tables: Users table will store information about
Is there a way, using MySQL 5.0, to define a column in a table
I'm new to sencha touch. I have a list-search example. Now I want to
I'm trying to define a table to store student grades for a online report
Any table I define with sidewaystable appears at the last page of created pdf
In my database I have tables that define types for example Table: Publication Types

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.