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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:44:17+00:00 2026-05-23T14:44:17+00:00

I imported the Software PAD File Database from http://paddatabase.net/download.html into Microsoft Access in a

  • 0

I imported the Software PAD File Database from http://paddatabase.net/download.html into Microsoft Access in a table called main:

MAIN
-----
ID
ProgramName
Program_category_Class
CategoryID <- I created this to create a one to many relation with a new table Category
.
.

I created two new tables: category and subcategory.

Category
--------
ID
CategoryName

I extracted all the values from the field Program_Category_Class on the left side of the :: delimiter into the Table Category. Data from Program_Category_Class looks like this:

Program_Category_Class
Business::Accounting & Finance
Games & Entertainment::Action
Business::Accounting & Finance
Business::Databases & Tools

What I want to do is create a SQL Query which Updates the MAIN table with the Category ID from the Category table that is a LIKE (Left) match on Program_Category_Class. I will then modify the query for a right left match for the subcategory table.

I tried something like this but get no result:

UPDATE Main SET Main.category = (SELECT Category.ID
FROM Category
WHERE Category.CategoryName LIKE Main.Program_Category_Class+'%')
WHERE (((Exists (SELECT Category.ID
FROM Category
WHERE Category.CategoryName LIKE Main.Program_Category_Class+'%'))<>False));

As it is a public DB I can provide a copy of the database to anyone interested.

Any assistance would be most appreciated. Thank you.

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

    You may wish to remove <>False, as well as some of the extra parenthesis. That’s not your real problem, but it will help with readability. No, what’s happening is that your like predicate is effectively backwards – you’re trying to compare the longer question with the shorter answer. Switch the where clause to WHERE Main.Program_Category_Class like Category.CategoryName + '%' and see if that helps.
    Also, you are trying to update Main.category, when the new field looks to be named Main.CategoryID.

    For future reference, please consider these common helpful followups to provide: So what do you mean you get no results? Does the query complain that it’s not valid (which it should, if the field names are an issue), or does it not updated any rows?

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

Sidebar

Related Questions

I imported a List of Strings from a file and put them into an
I imported data into a table from a backup I was given. Now I
I have imported a certificate into a private ~/.keystore file: keytool -list Enter keystore
Recently I have installed VS Addin from Qt Software and I imported my .pro
I imported my (PHP) old site's database tables into Django. By default it created
I imported rules from IIRF into IIS URL Rewrite, and most seemed to work
I imported a database from Windows to linux and all the tables names are
I imported some data into mysql database and trying to clean it up. |
I have data being imported from a database and I would like to represent
I've imported a country database from somewhere, with these fields: Abbr varchar(2), FullName varchar(50)

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.