USE [AAB] GO /****** Object: StoredProcedure [dbo].[SP_GET_UPDATE_MARKET_PRICE] Script Date: 2/8/2017 1:52:18 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: Iqbal Abdurrahman, update by Andri Kurniawan -- Create date: 21 September 2016 -- Description: Get Data for Update Market Price [Vehicle Market Price Application Cisadane] -- BRD : 0269 URF 2016 - Vehicle Market Price -- ============================================= CREATE PROCEDURE [dbo].[SP_GET_UPDATE_MARKET_PRICE] @brand AS VARCHAR(MAX) , @model AS VARCHAR(MAX) , @geographical_area AS VARCHAR(MAX) AS BEGIN DECLARE @tsqlUMP VARCHAR(MAX) = ''; DECLARE @tsqlYearHeader VARCHAR(MAX) = ''; DECLARE @tsqlYearPivot VARCHAR(MAX) = ''; DECLARE @maxyear INT = 0...
USE [AAB] GO /****** Object: StoredProcedure [dbo].[SP_GET_DOWNLOAD_MARKET_PRICE] Script Date: 3/9/2017 9:02:17 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: Andri Kurniawan -- Create date: 9 Desember 2016 -- Description: Get Data for Data Donwload Market Price [Vehicle Market Price Application Cisadane] -- BRD : 0269 URF 2016 - Vehicle Market Price -- ============================================= CREATE PROCEDURE [dbo].[SP_GET_DOWNLOAD_MARKET_PRICE] @brandID AS VARCHAR(50) = '' , @modelID AS VARCHAR(50) = '' AS BEGIN DECLARE @tsqlUMP VARCHAR(MAX) = ''; DECLARE @tsqlYearHeader VARCHAR(MAX) = ''; DECLARE @tsqlYearPivot VARCHAR(MAX) = ''; DECLARE @maxyear INT = 0; DECLARE @min...