Advertisement
Guest User

SQL Key

a guest
Jun 4th, 2024
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.57 KB | Source Code | 0 0
  1.  
  2. SELECT a.OriginDestinationKey
  3.        , a.Origin
  4.        , a.Employee
  5.        , CAST(LLo.Lat AS Decimal(8,6)) AS OriginLat
  6.        , CAST(LLo.Long AS Decimal(9,6)) AS OriginLong
  7.        , a.Destination
  8.        , CAST(LLd.Lat AS Decimal(8,6)) AS DestinationLat
  9.        , CAST(LLd.Long AS Decimal(9,6)) AS DestinationLong
  10.        , a.iDistance
  11.        , a.Distance
  12.        , a.iTravelTime
  13.        , a.TravelTime
  14.        FROM aGoogleData a
  15.     LEFT OUTER JOIN aGoogleDataLatLong LLo
  16.     ON LLo.Location = a.Origin
  17.         LEFT OUTER JOIN aGoogleDataLatLong LLd
  18.         ON LLd.Location = a.Destination
Tags: OneStream
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement