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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:34:50+00:00 2026-06-18T05:34:50+00:00

I have 2 columns of string data type named column1 and column2. Both the

  • 0

I have 2 columns of string data type named column1 and column2. Both the columns contains data in the following way.

**

Column1             Column2  
ABCD12              5678ABC  
ABCD99              2341KFJ
GDHF33              1233DFG

**

now i want to remove last 2 digits from column 1 and append it to Column2. And my data has to be in this way.

**

Column1             Column2  
ABCD              12 5678ABC  
ABCD              99 2341KFJ
GDHF              33 1233DFG

**

how can this be done in SQL Server and SSIS.

  • 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-18T05:34:51+00:00Added an answer on June 18, 2026 at 5:34 am

    if the last two digits are fixed, you can use LEFT and RIGHT functions.

    SELECT LEFT(Column1, LEN(Column1) - 2) Edited_Column1,
           RIGHT(Column1, 2) + ' ' + Column2 Edited_Column2
    FROM   table1
    
    • SQLFiddle Demo
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Datatable with Id(guid) and Name(string) columns. I traverse through the data
Lets say I have table with following columns 1. Client - string. 2. Profit
In my general_exams table, I have a column named semester , type is string
I have created a table using gviz_api. The table contains columns composed of string
I have a table with 5 string columns, all can be NULLs. After I
I need to split comma delimited string into a second columns I have the
I have inserted string and integer values into dynamic columns in a Cassandra Column
I have a DataGridView with four Columns and need to crate a multiline string
Let's say I have a DataTable: DataTable dt = new DataTable(); dt.Columns.Add(new DataColumn(Country, typeof(string)));
I have a data structure type question that I don't really know the answer

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.