Solved

combine data in sql

Posted on 2016-08-08
1
32 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…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now