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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:15:23+00:00 2026-05-28T11:15:23+00:00

I have this table: +——–+————+———————+——+ | id | product_id | pa_value_name | oesd |

  • 0

I have this table:

+--------+------------+---------------------+------+
| id     | product_id | pa_value_name       | oesd |
+--------+------------+---------------------+------+
|      1 |     120972 |                     |    0 |
|      9 |      84147 | 1-2 business days   |    0 |
|   3255 |         12 | 1-3 business days   |    0 |
| 260220 |     124881 | 10-12 business days |    0 |
| 641906 |     147053 | 11-13 business days |    0 |
| 650680 |     139790 | 12-14 business days |    0 |
| 702408 |     112249 | 13-15 business days |    0 |
| 705013 |     223960 | 14-16 business days |    0 |
| 736335 |     124882 | 15-17 business days |    0 |
| 765595 |     106570 | 16-18 business days |    0 |
+--------+------------+---------------------+------+

and I want to update oesd field by getting the ‘to‘ date in *pa_value_name* field.

For example:

+--------+------------+---------------------+------+
| id     | product_id | pa_value_name       | oesd |
+--------+------------+---------------------+------+
|      9 |      84147 | 1-2 business days   |    2 |
+--------+------------+---------------------+------+

In row 2 (id=9): oesd must be 2 as it should get ‘2’ from “1-2 business days” value of *pa_value_name*.

Thanks!

  • 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-28T11:15:23+00:00Added an answer on May 28, 2026 at 11:15 am

    This will update oesd and convert the value to a number

    UPDATE the_table SET oesd = CONVERT(SUBSTRING(pa_value_name, LOCATE('-', pa_value_name)+1), decimal);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this table structure Product product_id (PK) name Order_Detail order_detail_id product_id quantity Example
I have this table in an Oracle DB which has a primary key defined
I have this table CREATE TABLE [dbo].[friend_blocked_list]( [subdomain] [varchar](50) NOT NULL, [un] [nvarchar](50) NOT
I have this table CREATE TABLE `codes` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
i have this table in UTF8 (collation is utf8_bin in case it matters). I
I have this table: CREATE TABLE `test` ( `ID` int(11) NOT NULL auto_increment, `text`
I have this table: fourn_category (id , sub) I am using this code to
I have this table: CREATE TABLE `point` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `siteid`
I have this table: id feed_id ... Let's say that I have 500 rows
I have this table structure and would like to map it using Fluent Hibernate

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.