Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

SQL concant this should work

I have had a problem with this.   It should work but I don't have any idea why it doesn't.

SQL SELECT unit,

     longitude,

     latitude,

     longitude & "," & latitude as coordinates

FROM medical.unit;

the longitude and latitude comes up but coordinates shows 0

pre thanks for help.

1 Solution

Accepted Solutions
perumal_41
Partner - Specialist II
Partner - Specialist II

Hi

Try this one

Load * ,

   longitude & "," & latitude as coordinates;

SQL SELECT unit,

     longitude,

     latitudeFROM medical.unit;

View solution in original post

6 Replies
Not applicable
Author

Try

SQL SELECT unit,

     longitude,

     latitude,

     longitude || ',' || latitude as coordinates

FROM medical.unit;

Not applicable
Author

thank you It did get me something other than 0.... it was 1

but not quite what I expect

what I have is longitude 98.1234 and latitude 23.8569

what value I want is

98.1234,23.8569

using it for a map plotting

Not applicable
Author

try this one

SQL SELECT unit,

     longitude,

     latitude,

     to_char(longitude) || ',' || to_char(latitude) as coordinates

FROM medical.unit;

perumal_41
Partner - Specialist II
Partner - Specialist II

Hi

Try this one

Load * ,

   longitude & "," & latitude as coordinates;

SQL SELECT unit,

     longitude,

     latitudeFROM medical.unit;

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this in Qlikview using Preceding load

TableName:

LOAD

*,

Text(longitude) & ',' & Text(latitude) as coordinates;

SQL SELECT unit,

     longitude,

     latitude   

FROM medical.unit;

Hope this helps you.

Regards,

jagan.

Not applicable
Author

Thank you both Perumal and Jagan  both worked flawlessly and I hope this helps others also since I could not find any answers, which is why I posted the question.... you guys are awesome...