?
Solved

SQL QUERY : JOIN

Posted on 2011-09-05
4
Medium Priority
?
279 Views
Last Modified: 2012-05-12
Hey guys, i have a query below

"SELECT *, r_name as InfoWindowText, Latitude as Lat, Longitude as Lng FROM dbo.pretoria"


now how can i write a query where InfoWindowText must r_name+'<br> + name

i just want to assign text to InfoWindowText
0
Comment
Question by:JCWEBHOST
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 22

Assisted Solution

by:pivar
pivar earned 1000 total points
ID: 36483187
Hi,

Do you mean?

SELECT *,  r_name+'<br> + name as InfoWindowText, Latitude as Lat, Longitude as Lng FROM dbo.pretoria

/peter
0
 

Author Comment

by:JCWEBHOST
ID: 36483231
yes
0
 
LVL 15

Accepted Solution

by:
gplana earned 1000 total points
ID: 36483233
The SELECT proposed by privar will fail. You need an additional quote after <br>:

SELECT *,  r_name+'<br>' + name as InfoWindowText, Latitude as Lat, Longitude as Lng FROM dbo.pretoria
0
 

Author Closing Comment

by:JCWEBHOST
ID: 36483263
thanks
0

Featured Post

Congratulations! You’re Certified – Now What?

Starting a new career can be overwhelming. Becoming certified in your field of expertise is a great start, but where do you go from here?  Here are some tips to help you on your career journey.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

777 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