Solved

combine data in sql

Posted on 2016-08-08
1
41 Views
Last Modified: 2016-08-08
hi ,
i have customer table
whit 2 columns that i want to combine
Address         HouseNum
xxxxx                   225

i want to set the value in house num to the address if houseNum exsist
like that
address
xxxxx 225

how can i set it  ?
thanks ...
0
Comment
Question by:Tech_Men
1 Comment
 
LVL 10

Accepted Solution

by:
arana earned 500 total points
ID: 41748091
something like this?
update customers set address=adress+" "+HouseNum where Housenum>0
or I didnt understand what you need
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question