Skip to content

Instantly share code, notes, and snippets.

@zapkub
Created October 21, 2019 17:17
Show Gist options
  • Save zapkub/3a3b9ab397decd286fd8fa07a6f46592 to your computer and use it in GitHub Desktop.
Save zapkub/3a3b9ab397decd286fd8fa07a6f46592 to your computer and use it in GitHub Desktop.
SELECT [Plant_ID] AS [id], [Plant_Active] AS [active], [Plant_Changed] AS [updatedAt],
[Plant_Created] AS [createdAt], [Plant_Changer] AS [updatedBy], [Plant_No] AS [no], [Plant_Name] AS [name],
[Plant_Moo] AS [moo], [Plant_District] AS [district], [Plant_Province] AS [province],
[Plant_SubDistrict] AS [subdistrict], [Plant_Latitude] AS [lat], [Plant_Longitude] AS [long],
[Plant_AreaRai] AS [areaAsRai], [Plant_AreaShape] AS [areaFromShape], [Quota_ID] AS [quotaId],
[Plant_CreateBy] AS [createdBy], [Plant_GeoLocation] AS [geoLocation], CONVERT(varchar(max),
[Plant_GeoLocation]) AS [geoLocation] FROM [tb_opr_Plant] AS [Plant]
WHERE [Plant].[Plant_Active] = 1 ORDER BY [Plant].[Plant_ID] OFFSET 0 ROWS FETCH NEXT 10 ROWS ONLY;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment