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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:06:15+00:00 2026-06-14T00:06:15+00:00

Ok lets see if I can put this in words. I have 2 tables,

  • 0

Ok lets see if I can put this in words. I have 2 tables, with like data. They are meant to serve as Stock data for the rest of the system to use. One of the tables is a recent addition, and 2 columns worth of data on said table need to match the data on the other tables so I can attempt to make faster running queries. That said. The columns I need to fix have very similar data to that of the one I want it to be like. As in I could do a select query from the second table onto the first one using like and actually get the data I want, but I can’t do that in reverse.

So Heres what I want to know if its even possible just doing it query based. Essentially I want to run over the second table that I want 2 columns of data to match that of the one in the first table. They are varchar columns, as whats in them are just strings. But using sports I guess as an example in the first table I have:

New York Giants

New England Patriots

in the Second table I have:

Patriots

Giants

And while this query is going on I want to update the rows in the second column to match the data in the first table. Is this possible just query based alone or is this something I have to come up with some level of server side logic to over come?

In one table I am working with about 4000 rows in the other I am working with 1001, not sure if that helps any but worth mentioning.

  • 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-14T00:06:16+00:00Added an answer on June 14, 2026 at 12:06 am

    Log into your database with the mysql commandline client and select the database. Then type in something like:

    mysql> describe config;
    

    Which will output the definition of the table config. Copy it and add it to your question:

    +--------+-------------+------+-----+---------+----------------+
    | Field  | Type        | Null | Key | Default | Extra          |
    +--------+-------------+------+-----+---------+----------------+
    | id     | int(11)     | NO   | PRI | NULL    | auto_increment |
    | option | varchar(45) | NO   |     | NULL    |                |
    +--------+-------------+------+-----+---------+----------------+
    

    Do that for your two tables.

    Then also get some exemplary data for these tables, like:

    mysql> select * from config LIMIT 5;
    

    Which you then can copy and paste again:

    +----+---------------------------+
    | id | option                    |
    +----+---------------------------+
    |  1 | value for option with ID1 |
    |  2 | value for option with ID2 |
    +----+---------------------------+
    

    That should make it more concrete what you are asking about, at least the existing data. Then try to formulate the outcome you would like to achieve, best with a similar layout.

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

Sidebar

Related Questions

I screwed up my last post. Lets see if I can get this one
Lets Say i have a table like this WEB_LIST_TABLE KEY Value ---------------------------------------- 134 google.com
Lets say we have a table here, populated with the following data: acc_id1 acc_id2
Lets say I have five tables named table1, table2 ... table5. I have already
This is something I would like to see while doing my day today programming
Sorry for the bad title, but I have no idea how to put this
Lets say I have a page on the same domain that I put inside
Let's see if I can make the step-by-step clear: namespace InventoryManager.Controllers { public class
Let's see I want to do this, i want to get the parent of
A picture is supposed to be worth a 1000 words, so let's see if

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.