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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:18:15+00:00 2026-05-31T21:18:15+00:00

For example I got this 2 table dbo.fc_states StateId Name 6316 Alberta 6317 British

  • 0

For example I got this 2 table

dbo.fc_states

StateId     Name
6316        Alberta
6317        British Columbia

and dbo.fc_Query

Name              StatesName          StateId
Abbotsford        Quebec              NULL
Abee              Alberta             NULL
100 Mile House    British Columbia    NULL

Ok pretty straightforward , how do I copy the stateId over from fc_states to fc_Query, but match it with the StatesName, let say the result would be

Name              StatesName            StateId
Abee              Alberta               6316
100 Mile House    British Columbia      6317

Thanks, and both stateName column type is text

  • 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-31T21:18:17+00:00Added an answer on May 31, 2026 at 9:18 pm

    How about:

    update fc_Query set StateId =
      (select StateId from fc_states where fc_states.Name = fc_Query.StatesName)
    

    That should give you the result you’re looking for.

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

Sidebar

Related Questions

thank you for looking i got this example from my book but i cant
GridView CurrentGrid =Grd_UserList; Grd_UserList.Columns.Clear(); ı have got this example, ı use Columns.Clear(); fonc. with
I was trying to run a request factory example, but, I got this error
I got the example in this link . I can't understand the addmove ,
For example, i got a method like this: - (void)addToRecents:(NSDictionary *)photo { NSUserDefaults *defaults
Simple question but I got a headache to solve this game. Example regex. [a-zA-Z0-9\s]
i got this Table: CREATE TABLE Test_Table ( old_val VARCHAR2(3), new_val VARCHAR2(3), Updflag NUMBER,
I’ve got a table like this: Create Table PersonAgent ( PersonID varchar2(10) not null,
For example i got a class person: class Person { string Name { get;
I got this table named tb_stock ID AMOUNT FLAG LAST_AMOUNT 1 5 N 0

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.