Solved

SQL QUERY : JOIN

Posted on 2011-09-05
4
274 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
  • 2
4 Comments
 
LVL 22

Assisted Solution

by:pivar
pivar earned 250 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 250 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

785 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