Concatenating two date strings

Hello, I need to perform an update where I set the value to something like this:
dateone ~ datetwo
or
12/12/2008 ~ 12/14/2008

I'm converting the datetime into varchar and then attempting to concatenate the values and finely perform the update.
This is what I have but am getting the following error:

Msg 157, Level 15, State 1, Line 1
An aggregate may not appear in the set list of an UPDATE statement.


My statement:

Update R
set Date = (Select CONVERT(varchar(10),MIN(PR.[Date]),101) + '~' + CONVERT(varchar(10),MAX(PR.[Date]),101) )
from LMVR_PropertyReservations PR
INNER JOIN #Reservations R
ON R.Propertyid = PR.Propertyid
gogetsomeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chapmandewCommented:
try this:

Update R
set Date = (CONVERT(varchar(10),MIN(PR.[Date]),101) + '~' + CONVERT(varchar(10),MAX(PR.[Date]),101) )
from LMVR_PropertyReservations PR
INNER JOIN #Reservations R
ON R.Propertyid = PR.Propertyid
0
gogetsomeAuthor Commented:
same error
0
chapmandewCommented:
sorry..I missed that.


Update R
set Date = (CONVERT(varchar(10),b.mindate,101) + '~' + CONVERT(varchar(10),b.maxdate,101) )
from LMVR_PropertyReservations PR
INNER JOIN #Reservations R ON R.Propertyid = PR.Propertyid
JOIN
(
select propertyid, min(date) as mindate, max(date) as maxdate
from LMVR_PropertyReservations
group by propertyid
) B  ON b.Propertyid = PR.Propertyid
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gogetsomeAuthor Commented:
Awesome! thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Query Syntax

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.