Solved

combine data in sql

Posted on 2016-08-08
1
28 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
Comment Utility
something like this?
update customers set address=adress+" "+HouseNum where Housenum>0
or I didnt understand what you need
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

772 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

11 Experts available now in Live!

Get 1:1 Help Now