Advertisement

07.22.2008 at 02:08AM PDT, ID: 23584469
[x]
Attachment Details

combine 2 columns

Asked by mjmeridian in MS SQL Server, SQL Query Syntax

Tags: Microsoft, SQL, 2005, Combined Query

first:               last:
200222785      3
200417149      7
200467923      3
200570251      6
200592672      10
200868731      3
200000000      10


SELECT     LEFT(one, 9) AS first, RIGHT(one, 1) + 1 AS last
FROM         dbo.complete_db


i need to combine both columns... Not Adding them "200222785      3" but as  "2002227853"
also like "200000000      10" can only be 10 characters,,,..

thanks in advanceStart Free Trial
[+][-]07.22.2008 at 02:22AM PDT, ID: 22057461

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MS SQL Server, SQL Query Syntax
Tags: Microsoft, SQL, 2005, Combined Query
Sign Up Now!
Solution Provided By: matrix_aash
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.22.2008 at 02:26AM PDT, ID: 22057470

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628