Startmotor met motorcode 1322475 Gebruikt
Aanbieder van Deijne Onderdelen Uden B.V.
- RecordId
- 22434430
- WebId
- -
- AutoRecordId
- 8266728
- Prijs Origineel
- 35,00
- Prijs Soort
- None
- Prijs BTW
- Margin
- Prijs Tonen
- True
- Internet (AM)
- Ja (Nee)
- Shop
- Ja
- Aantal (Infinite)
- 1 (Nee)
- OrderStatus
- Ok ( Record is bestelbaar )
- Verkocht
- -
- InternetID
- 254078
- SKU
- P22434430
- Locatie
- B0703ER
- Bouwjaar
- 08-2015
- Artikelnummer
- 31419530P31419530
- Specificatiecode
- -
- Classificatiecode
- B1
- op werking getest
- vanaf 35.000 kilometer tot 100.000 kilometer is de norm
- Motortype
- Diesel Common rail (Turbo)
- Motorcode
- 1322475D4204T14
- LPG / G3
- -
- Cilinderinhoud
- 2.000 cc
- Versnellingsbak
- Automaat
- Versnellingsbak type
- Automatisch
- Versnellingsbak
- 8 traps
- Merk onderdeel
- VOLVO
- Tellerstand
- 59.621 km
- Start-stopsysteem
- Nee
- Bijzonderheden
- 24/7 te bestellen via deijne.nl
- Voertuignummer
- V11212
- Chassisnummer (VIN)
- YV1DZA8CDG28****0
Dit onderdeel is mogelijk toepasbaar op de volgende types.
- Ford Transit Custom
- 2.2 TDCi 16V, Bestel, Diesel, 2.198cc, 92kW (125pk), FWD, CYFF; CYF4, 2012-09 / 2023-12
- Volvo S60 II (FS)
- 2.0 D4 16V, Sedan, 4Dr, Diesel, 1.969cc, 133kW (181pk), FWD, D4204T5, 2013-09 / 2015-12
- 2.0 D4 16V, Sedan, 4Dr, Diesel, 1.969cc, 140kW (190pk), FWD, D4204T14, 2015-03 / 2018-05
- 2.0 D3 16V, Sedan, 4Dr, Diesel, 1.969cc, 110kW (150pk), FWD, D4204T9, 2015-03 / 2018-05
- Volvo S80 (AR/AS)
- 2.0 D4 16V, Sedan, 4Dr, Diesel, 1.969cc, 133kW (181pk), FWD, D4204T5, 2013-09 / 2016-12
- Volvo S90 II
- 2.0 D5 16V AWD, Sedan, 4Dr, Diesel, 1.969cc, 173kW (235pk), 4x4, D4204T23, 2016-03 / 2021-12
- 2.0 D4 16V, Sedan, 4Dr, Diesel, 1.969cc, 140kW (190pk), FWD, D4204T14, 2016-03 / 2021-12
- 2.0 D3 16V, Sedan, 4Dr, Diesel, 1.969cc, 110kW (150pk), FWD, D4204T9; D4204T16, 2016-03 / 2021-12
- Volvo V40 (MV)
- 2.0 D2 16V, Hatchback, 4Dr, Diesel, 1 969cc, 88kW, D4204T8; B, 2015-02
- 2.0 D2 16V, Hatchback, 4Dr, Diesel, 1.969cc, 88kW (120pk), FWD, D4204T8; B, 2015-02 / 2019-08
- 2.0 D2 16V, Hatchback, 4Dr, Diesel, 1.969cc, 88kW (120pk), FWD, D4204T8; B; D4204T13, 2015-02 / 2019-08
- 2.0 D4 16V, Hatchback, 4Dr, Diesel, 1.969cc, 140kW (190pk), FWD, D4204T14, 2014-05 / 2019-08
- Volvo V40 Cross Country (MZ)
- 2.0 D2 16V, Hatchback, 4Dr, Diesel, 1.969cc, 88kW (120pk), FWD, D4204T8; B; D4204T13, 2015-02 / 2019-08
- Volvo V50 (MW)
- 2.0 D 16V, Combi/o, Diesel, 1.998cc, 100kW (136pk), FWD, D4204T, 2004-04 / 2010-12
- Volvo V60 I (FW/GW)
- 2.0 D4 16V, Combi/o, Diesel, 1.969cc, 133kW (181pk), FWD, D4204T5, 2013-10 / 2015-12
- 2.0 D4 16V, Combi/o, Diesel, 1.969cc, 140kW, D4204T14, 2015-03
- 2.0 D2 16V, Combi/o, Diesel, 1.969cc, 88kW (120pk), FWD, D4204T8; B, 2015-03 / 2018-05
- 2.0 D3 16V, Combi/o, Diesel, 1.969cc, 110kW (150pk), FWD, D4204T9, 2015-03 / 2018-05
- Volvo V60 II (ZW)
- 2.0 D4 16V, Combi/o, Diesel, 1.969cc, 140kW (190pk), FWD, D4204T14, 2018-02 / 2021-12
- Volvo V70 (BW)
- 2.0 D 16V, Combi/o, Diesel, 1.998cc, 100kW (136pk), FWD, D4204T, 2007-10 / 2015-12
- 2.0 D4 16V, Combi/o, Diesel, 1.969cc, 133kW (181pk), FWD, D4204T5, 2013-10 / 2016-04
- 2.0 D3 16V, Combi/o, Diesel, 1.969cc, 110kW (150pk), FWD, D4204T9, 2015-03 / 2016-04
- Volvo V90 II (PW)
- 2.0 D4 16V, Combi/o, Diesel, 1.969cc, 140kW (190pk), FWD, D4204T14, 2016-03 / 2021-12
- 2.0 D5 16V AWD, Combi/o, Diesel, 1.969cc, 173kW (235pk), 4x4, D4204T23, 2016-03 / 2021-12
- 2.0 D3 16V AWD, Combi/o, Diesel, 1.969cc, 110kW (150pk), 4x4, D4204T4, 2016-03 / 2021-12
- 2.0 D3 16V, Combi/o, Diesel, 1.969cc, 110kW (150pk), FWD, D4204T9; D4204T16, 2016-03 / 2021-12
- Volvo XC40 (XZ)
- 2.0 D3 16V, SUV, Diesel, 1.969cc, 110kW (150pk), FWD, D4204T16, 2018-09 / 2021-09
- Volvo XC60 I (DZ)
- 2.0 D4 16V, SUV, Diesel, 1.969cc, 133kW (181pk), FWD, D4204T5, 2013-10 / 2015-12
- 2.0 D4 16V, SUV, Diesel, 1.969cc, 140kW (190pk), FWD, D4204T14, 2015-03 / 2017-02
- 2.0 D3 16V, SUV, Diesel, 1.969cc, 110kW (150pk), FWD, D4204T4, 2015-03 / 2017-04
- Volvo XC60 II (UZ)
- 2.0 D4 16V AWD, SUV, Diesel, 1.969cc, 140kW (190pk), 4x4, D4204T14, 2017-03 / 2021-12
- 2.0 D4 16V, SUV, Diesel, 1.969cc, 140kW (190pk), FWD, D4204T14, 2017-03 / 2021-12
- Volvo XC90 II
- 2.0 D5 16V AWD, SUV, Diesel, 1.969cc, 165kW (224pk), 4x4, D4204T11, 2014-09 / 2016-12
- 2.0 D5 16V AWD, SUV, Diesel, 1.969cc, 173kW (235pk), 4x4, D4204T23, 2016-03 / 2019-12

Startmotor Audi A8 (D2), 1994 / 2002 2.5 TDI V6 24V, Sedan, 4Dr, Diesel, 2.496cc, 110kW (150pk), FWD, AFB, 1997-06 / 2000-06, 4D2 (Gebruikt) Startmotor Suzuki SX4 (EY/GY), 2006 1.6 16V VVT Comfort,Exclusive Autom., SUV, Benzine, 1.586cc, 79kW (107pk), FWD, M16AVVT, 2006-06, EYA21S; GYA21S (Gebruikt) Init
{ "Data": { "SessionId": 20, "Match": null, "Timestamp": "0001-01-01T00:00:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/onderdeel/motorcode/132/onderdeel/startmotor/onderdeelid/22434430/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/onderdeel/motorcode/132/onderdeel/startmotor/onderdeelid/22434430/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/onderdeel/motorcode/132/onderdeel/startmotor/onderdeelid/22434430/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 0, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 0, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }
All sessions
{ "Data": { "SessionId": 1, "Match": null, "Timestamp": "2026-08-20T21:51:13.5257314+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/1855303/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/onderdeelnummer/1855303/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/1855303/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }{ "Data": { "SessionId": 2, "Match": null, "Timestamp": "2026-08-20T21:51:15.227773+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/magazijn/motorcode/27/onderdeel/inlaatspruitstuk/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/magazijn/motorcode/27/onderdeel/inlaatspruitstuk/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/magazijn/motorcode/27/onderdeel/inlaatspruitstuk/" ], "UrlSet": false, "Query": "SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; IF OBJECT_ID('tempdb..#TD') IS NOT NULL DROP TABLE #TD; CREATE TABLE #TD ([DebtorId] INT PRIMARY KEY NOT NULL); INSERT INTO #TD ([DebtorId]) SELECT DISTINCT [DebiteurId] FROM dbo.[Debiteuren] WHERE [OOL] = 1 AND [OOLGeenVoorraad] = 0 AND [DebiteurId] NOT IN (101190); IF OBJECT_ID('tempdb..#RM') IS NOT NULL DROP TABLE #RM; CREATE TABLE #RM ([RecordId] BIGINT NOT NULL, [xPR] DECIMAL(9, 2), [xPS] BIT NOT NULL, [xPD] INT, [xTP] DECIMAL(5, 2) NOT NULL, [xTT] INT NOT NULL, [xShopState] INT, [xShippingState] TINYINT, [Match] INT, [XChange] BIT, [xPF] DECIMAL(9, 2), [xPE] DECIMAL(9, 2), [xPI] DECIMAL(9, 2), [RowId] INT PRIMARY KEY CLUSTERED ([RecordId] ASC)) INSERT INTO #RM ([RecordId], [xPR], [xPS], [xPD], [xTP], [xTT], [xShopState], [xShippingState], [Match], [XChange], [xPF], [xPE], [xPI], [RowId]) SELECT [R].[RecordId], [R].[xPR], [R].[xPS], [R].[xPD], [R].[xTP], [R].[xTT], [R].[xShopState], [R].[xShippingState], [R].[Match], [R].[XChange], [R].[xPF], [R].[xPE], [R].[xPI], ROW_NUMBER() OVER (ORDER BY [SortId] DESC, + CASE WHEN [R].[xShopState] = 1 THEN 1 ELSE 0 END DESC, [PartRank] ASC, RIGHT([RecordId], 2)%(DATEPART(WEEKDAY, GETDATE()) + 3) ASC, [R].[RecordId] ASC) AS [RowId] FROM (SELECT [R].[RecordId], [R].[xPR], [R].[xPS], [R].[xPD], [R].[xTP], [R].[xTT], [R].[xShopState], [R].[xShippingState], [R].[Match], [R].[XChange], [R].[xPF], [R].[xPE], [R].[xPI], [R].[SortId], ROW_NUMBER() OVER (PARTITION BY R.SortId, R.DebiteurId ORDER BY SortId + CASE WHEN [R].[xShopState] = 1 THEN 1 ELSE 0 END DESC, CASE WHEN [12] IS NULL THEN 1 END ASC, [12] DESC, CASE WHEN [14] IS NULL THEN 1 END ASC, [14] ASC, RIGHT([RecordId], 2)%(DATEPART(WEEKDAY, GETDATE()) + 3) ASC, [RecordId] ASC) AS [PartRank] FROM (SELECT *, CASE WHEN [xPF] IS NOT NULL THEN CASE WHEN [xTT] = 1 THEN CAST([xPF] / ((100 + [xTP]) / 100) AS DECIMAL(9, 2)) ELSE [xPF] END END AS [xPE], CASE WHEN [xPF] IS NOT NULL THEN CASE WHEN [xTT] = 0 THEN CAST([xPF] * ((100 + [xTP]) / 100) AS DECIMAL(9, 2)) ELSE [xPF] END END AS [xPI], CASE WHEN [xPF] IS NOT NULL THEN CASE WHEN [xTT] = 0 THEN CAST([xPF] * ((100 + [xTP]) / 100) AS DECIMAL(9, 2)) ELSE [xPF] END END AS [14] FROM (SELECT *, CASE WHEN [xPS] = 1 AND [xPR] IS NOT NULL THEN CAST(CASE WHEN [xPD] IS NOT NULL THEN (CAST((100 - ISNULL([xPD], 0)) AS DECIMAL) / 100) * [xPR] ELSE [xPR] END AS DECIMAL(10, 2)) END AS [xPF] FROM (SELECT [R].[RecordId], (ISNULL(CASE WHEN [R].[Shop] = 1 THEN ISNULL([R].[PriceShop],ROUND ( [R].[Prijs] * ((100 + ISNULL([D].[ShopPricePercentage], 0)) / 100), 2)) END, [R].[Prijs])) AS [xPR], CASE WHEN [R].[PrijsTonen] IS NOT NULL THEN [R].[PrijsTonen] WHEN [R].[SoortId] = 0 THEN [D].[OOLPrijzenG] WHEN [R].[SoortId] = 1 THEN [D].[OOLPrijzenR] WHEN [R].[SoortId] = 2 THEN [D].[OOLPrijzenN] ELSE 1 END AS [xPS], (SELECT [T].[Discount] FROM dbo.[AutomatePartDiscount] [T] WHERE [T].[SupplierId] = [R].[DebiteurId] AND [T].[StateId] = [R].[SoortId] AND [T].[PartAutomateId] = [R].[DeelId]) AS [xPD], ISNULL([VT].[General], 21) AS [xTP], CASE WHEN [R].[SoortId] = 0 AND NOT ISNULL([R].[PrijsSoort], 0) = 1 THEN 2 WHEN [D].[OOLPrijzenExcl] = 0 THEN 1 ELSE 0 END AS [xTT], CASE WHEN NOT [D].[ShopActive] = 1 THEN 11 ELSE ISNULL([ss].[StateId], 6) END AS [xShopState], xShippingState AS [xShippingState], [R].[SortId], [R].[DebiteurId], [R].[Bouwjaar] AS [12], NULL AS [Match], CASE WHEN [RM].[xPM] = 4 THEN 1 END AS [XChange] FROM (SELECT [RM].[RecordId], MAX([RM].[xPM]) AS [xPM] FROM (SELECT [R].[RecordId], 10 AS [xPM] FROM dbo.[OOLInternet] [R] WITH (NOLOCK) WHERE [R].[DeelId] IN ('8221A') AND [R].[RecordId] IN (SELECT [OT].[RecordId] FROM dbo.[OOLEnginecodes] [OT] WITH (NOLOCK) WHERE [OT].[CodeId] IN (SELECT [CT].[Id] FROM dbo.[CodeEngine] [CT] WHERE [CT].[Code] LIKE '27%')) AND [R].[DebiteurId] IN (SELECT [DT].[DebtorId] FROM #TD [DT]) UNION ALL SELECT [R].[RecordId], 4 AS [xPM] FROM dbo.[OOLInternet] [R] WITH (NOLOCK) WHERE [R].[DebiteurId] IN (SELECT [DT].[DebtorId] FROM #TD [DT]) AND [R].[DeelId] = '8221A' AND ([R].[RecordId] IN (SELECT [OX].[RecordId] FROM dbo.[OOLXchg] [OX] WITH (NOLOCK) WHERE [OX].[CollectionId] IN (SELECT [DX].[CollectionId] FROM dbo.[DebtorXchgEnginecode] [DX] WHERE [DX].[CodeId] IN (SELECT [CT].[Id] FROM dbo.[CodeEngine] [CT] WHERE [CT].[Code] LIKE '27%'))))) [RM] GROUP BY [RM].[RecordId]) [RM] LEFT JOIN dbo.[OOLInternet] [R] ON [R].[RecordId] = [RM].[RecordId] LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1) LEFT JOIN [Basis].dbo.[CountryVatRate] [VT] ON [VT].[CountryId] = [D].[LandId] AND [VT].[Active] = 1 OUTER APPLY dbo.fnGetOOLShippingStateExtendedTVF([R].[DebiteurId], [R].[DebiteurLocatieId], [R].[DeelNr], 528, NULL) [SHS] OUTER APPLY dbo.[fn_OOL_HasPriceInline]([R].[RecordId]) [hp] OUTER APPLY dbo.[fnGetOOLShopStateInline2]([R].[RecordId], [R].[DebiteurId], [R].[Aantal], [R].[QuantityInfinite], [R].[GreenCasionExpiresAt], [R].[Shop], [D].[ShopEnabled], ISNULL([hp].[HasPrice], 0), 1, NULL, NULL, 1, xShippingState) [ss]) [R]) [R]) [R]) [R]; SELECT [R].[DeelId], [R].[SoortId], COUNT(*) AS [Aantal] FROM (SELECT [R].[DeelId], [R].[SoortId], [R].[RecordId], [R].[DebiteurId], [xPR], [xPF], [xPD], [xPS], [xPE], [xPI], [xTP], [xTT], [xShopState], [xShippingState], [XChange] FROM #RM [RM] LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) ON [R].[RecordId] = [RM].[RecordId]) [R] GROUP BY [R].[DeelId], [R].[SoortId]; SELECT [R].*, [xTP] AS [PrijsTaxPerc], [xPD] AS [PrijsKorting], (SELECT [VIBM].[Bouwmaand] FROM dbo.[VOLInternet] [VIBM] WHERE [VIBM].[RecordId] = [R].[AutoRecordId]) AS [ConstructionMonth], [xPE] AS [PrijsAlt], STUFF((SELECT '|' + CAST([V].[VeldId] AS VARCHAR(10)) + '^' + [V].[Waarde] FROM (SELECT [V].[VeldId], [V].[Waarde], [V].[OrderId] FROM dbo.[OOLVelden] [V] WHERE [V].[RecordId] = [R].[RecordId] AND [V].[VeldId] IN (26)) [V] ORDER BY [V].[VeldId], [V].[OrderId] FOR XML PATH('')), 1, 1, '') AS [Automate2Velden], [xShopState] AS [ShopState], CASE WHEN [R].[AldocModelCode] IS NOT NULL THEN (SELECT ISNULL((STUFF((SELECT '^' + [T3].[NaamInternet] + '~' + [T2].[NaamInternet] FROM [Basis].dbo.[AutomateModellenTranslated] [T2] LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [T3] ON [T3].[MerkId] = [T2].[MerkId] AND [T3].[LanguageId] = 1 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 1 AND [T2].[Synoniem] = 0 FOR XML PATH('')), 1, 1,'')), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocModelOmschrijvingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode] AND [T].[LanguageId] = 1), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 1), '')) END AS [AldocDescription] FROM (SELECT [R].* FROM (SELECT [R].[SortId], [R].[RecordId], [R].[DebiteurId], [R].[ExternalId], [R].[ReferenceId], [R].[Youtube] AS [181], [184], [190], ISNULL([R].[Fotos], (SELECT 'G^' + CAST([G].[GroupId] AS VARCHAR(20)) + '^' + [G].[Images] FROM dbo.[OOLFotoGroups] [G] WHERE [G].[DebiteurId] = [R].[DebiteurId] AND [G].[SModelId] = [R].[SModelId] AND [G].[DeelId] = [R].[DeelId])) AS [58], [R].[SoortId] AS [StateId], CASE WHEN SUBSTRING([R].[ModelId], 1, 3) IN ('00X', '0XX') THEN NULL ELSE [MET].[NaamInternet] + '^' + [MOT].[NaamInternet] END AS [MakeModel], [xPS] AS [PrijsTonen], CASE WHEN [xTT] IN (0, 1) THEN 1 ELSE [xTT] END AS [PrijsTaxType], [xPI] AS [14], [R].[Bouwjaar] AS [12], [R].[AutoRecordId], CASE WHEN [135] IS NULL THEN CASE WHEN [R].[SoortId] = 0 THEN [D].[OOLGarantieG] WHEN [R].[SoortId] = 1 THEN [D].[OOLGarantieR] WHEN [R].[SoortId] = 2 THEN [D].[OOLGarantieN] ELSE NULL END ELSE [135] END AS [135], [37], STUFF((SELECT '|' + [XVT].[NaamLang] FROM dbo.[OOLVelden] [XOV] LEFT JOIN [Basis].dbo.[AutomateVeldWaardenTranslated] [XVT] ON [XVT].[VeldId] = [XOV].[VeldId] AND [XVT].[LanguageId] = 1 AND [XVT].[Waarde] = [XOV].[Waarde] WHERE [XOV].[RecordId] = [R].[RecordId] AND [XOV].[VeldId] = 17 ORDER BY [XOV].[OrderId] FOR XML PATH('')), 1, 1, '') AS [17], CASE WHEN [101] = 'I' THEN 'Interc.' WHEN [101] = 'N' THEN 'Nee' WHEN ISNULL([101], '') = '' THEN NULL ELSE [101] END AS [101], TRY_CAST([18] AS INT) AS [18], CASE WHEN [XChange] = 1 THEN ISNULL([R].[Motorcodes] + '|', '') + ISNULL((SELECT TOP 1 [CT].[Code] FROM dbo.[OOLXchg] [X] LEFT JOIN dbo.[DebtorXchgEnginecode] [XP] ON [XP].[CollectionId] = [X].[CollectionId] LEFT JOIN dbo.[CodeEngine] [CT] ON [CT].[Id] = [XP].[CodeId] WHERE [X].[RecordId] = [R].[RecordId] AND [CT].[Code] LIKE '27%'), '27') ELSE [R].[Motorcodes] END AS [108], (SELECT TOP 1 [XOV].[Waarde] FROM dbo.[OOLVelden] [XOV] WHERE [XOV].[RecordId] = [R].[RecordId] AND [XOV].[VeldId] = 241 ORDER BY [XOV].[OrderId]) AS [241], TRY_CAST([26] AS INT) AS [26], [25], [R].[Artikelnummers] AS [21], ISNULL([D].[Bedrijfsnaam], '') + '|' + ISNULL([D].[BedrijfKort], '') AS [Leverancier], [R].[BijzonderheidInet], [R].[WarrantyText] AS [GarantieToelichting], [R].[Shop], [R].[Created], [xShippingState] AS [ShippingState], [R].[WarrantyConstruction] AS [WarrantyInstallation], [R].[DeelId], [R].[DebiteurRecordId], [R].[AldocModelCode], [R].[AldocTypeId], [xPR], [xPF], [xPD], [xPS], [xPE], [xPI], [xTP], [xTT], [xShopState], [xShippingState], [XChange], [R].[SModelId], [R].[ModelId], [R].[PrijsSoort], [R].[PriceShop], [R].[RowId] FROM (SELECT * FROM (SELECT [R].*, [OV].[VeldId], [OV].[Waarde] FROM (SELECT [RM].[RowId], [R].[SortId], [R].[RecordId], [R].[DebiteurId], [R].[ExternalId], [R].[ReferenceId], [R].[Youtube], [R].[Fotos], [R].[SoortId], [R].[PrijsTonen], [R].[Prijs], [R].[Bouwjaar], [R].[AutoRecordId], [R].[Motorcodes], [R].[Artikelnummers], [R].[BijzonderheidInet], [R].[WarrantyText], [R].[Shop], [R].[Created], [R].[WarrantyConstruction], [R].[DeelId], [R].[DebiteurRecordId], [R].[AldocModelCode], [R].[AldocTypeId], [R].[DebiteurLocatieId], [R].[SModelId], [R].[ModelId], [R].[PrijsSoort], [R].[PriceShop], [xPR], [xPF], [xPD], [xPS], [xPE], [xPI], [xTP], [xTT], [xShopState], [xShippingState], [XChange] FROM #RM [RM] LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) ON [R].[RecordId] = [RM].[RecordId] WHERE [RM].[RowId] BETWEEN 1 AND 10) AS [R] LEFT JOIN dbo.[OOLVelden] [OV] WITH (INDEX(PK_OOLVelden)) ON [OV].[RecordId] = [R].[RecordId] AND [OV].[VeldId] IN (184, 190, 135, 37, 101, 18, 241, 26, 25)) [R] PIVOT (MAX([Waarde]) FOR [VeldId] IN ([184], [190], [135], [37], [101], [18], [241], [26], [25])) AS [R]) [R] LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 1 AND [MOT].[Synoniem] = 0 LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 1 LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)) [R] ORDER BY [SortId] DESC, + CASE WHEN [R].[xShopState] = 1 THEN 1 ELSE 0 END DESC, [RowId] ASC OFFSET 0 ROWS FETCH NEXT 10 ROWS ONLY) [R]; WITH [R] AS (SELECT [R].[RecordId], [xPR], [xPF], [xPD], [xPS], [xPE], [xPI], [xTP], [xTT], [xShopState], [xShippingState], [XChange], [Bouwjaar], [xPI] AS [Prijs], [ModelId] FROM #RM [RM] LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) ON [R].[RecordId] = [RM].[RecordId] LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)) SELECT [VeldId], [Waarde] AS [Value], NULL AS [ValueMIN], NULL AS [ValueMAX] FROM dbo.[OOLVelden] [OV] WHERE [RecordId] IN (SELECT [R].[RecordId] FROM [R]) AND [VeldId] IN (184,190,37,17,101,241,25) GROUP BY [VeldId], [Waarde] UNION SELECT [VeldId], NULL AS [Value], MIN([Waarde]) AS [ValueMIN], MAX([Waarde]) AS [ValueMAX] FROM (SELECT [VeldId], TRY_CAST([Waarde] AS INT) AS [Waarde] FROM dbo.[OOLVelden] [OV] WHERE [RecordId] IN (SELECT [R].[RecordId] FROM [R]) AND [VeldId] IN (135,18,26)) [OV] GROUP BY [VeldId] UNION SELECT 12, NULL AS [Value], MIN([R].[Bouwjaar]) AS [ValueMIN], MAX([R].[Bouwjaar]) AS [ValueMAX] FROM [R] UNION SELECT 14, NULL AS [Value], MIN(CAST([Prijs] AS INT)) AS [ValueMIN], MAX(CAST([Prijs] AS INT)) AS [ValueMAX] FROM [R] UNION SELECT 1, [ModelId], NULL AS [ValueMIN], NULL AS [ValueMAX] FROM [R] ORDER BY 1, 2; SELECT DISTINCT [R].[DebiteurId] FROM (SELECT DISTINCT [DebiteurId] FROM dbo.[OOLInternet] [R] WITH (NOLOCK) WHERE [R].[RecordId] In (SELECT [RM].[RecordId] FROM #RM [RM])) [R] IF OBJECT_ID('tempdb..#RM') IS NOT NULL DROP TABLE #RM; IF OBJECT_ID('tempdb..#TD') IS NOT NULL DROP TABLE #TD;" }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 282, "SizeMax": 150, "SetMax": false, "GetIndexMax": 29, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "14450140": 1, "16557600": 2, "19770000": 3, "20603796": 4, "22163240": 5, "25001400": 6, "23604697": 7, "24705141": 8, "24857265": 9, "25033173": 10 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "Nederland", "CountryId": 528, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }{ "Data": { "SessionId": 3, "Match": null, "Timestamp": "2026-08-20T21:51:16.0090218+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/magazijn/versnellingsbakcode/p510/onderdeel/versnellingsbak/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/magazijn/versnellingsbakcode/p510/onderdeel/versnellingsbak/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/magazijn/versnellingsbakcode/p510/onderdeel/versnellingsbak/" ], "UrlSet": false, "Query": "SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; IF OBJECT_ID('tempdb..#TD') IS NOT NULL DROP TABLE #TD; CREATE TABLE #TD ([DebtorId] INT PRIMARY KEY NOT NULL); INSERT INTO #TD ([DebtorId]) SELECT DISTINCT [DebiteurId] FROM dbo.[Debiteuren] WHERE [OOL] = 1 AND [OOLGeenVoorraad] = 0 AND [DebiteurId] NOT IN (101190); IF OBJECT_ID('tempdb..#RM') IS NOT NULL DROP TABLE #RM; CREATE TABLE #RM ([RecordId] BIGINT NOT NULL, [xPR] DECIMAL(9, 2), [xPS] BIT NOT NULL, [xPD] INT, [xTP] DECIMAL(5, 2) NOT NULL, [xTT] INT NOT NULL, [xShopState] INT, [xShippingState] TINYINT, [Match] INT, [XChange] BIT, [xPF] DECIMAL(9, 2), [xPE] DECIMAL(9, 2), [xPI] DECIMAL(9, 2), [RowId] INT PRIMARY KEY CLUSTERED ([RecordId] ASC)) INSERT INTO #RM ([RecordId], [xPR], [xPS], [xPD], [xTP], [xTT], [xShopState], [xShippingState], [Match], [XChange], [xPF], [xPE], [xPI], [RowId]) SELECT [R].[RecordId], [R].[xPR], [R].[xPS], [R].[xPD], [R].[xTP], [R].[xTT], [R].[xShopState], [R].[xShippingState], [R].[Match], [R].[XChange], [R].[xPF], [R].[xPE], [R].[xPI], ROW_NUMBER() OVER (ORDER BY [SortId] DESC, + CASE WHEN [R].[xShopState] = 1 THEN 1 ELSE 0 END DESC, [PartRank] ASC, RIGHT([RecordId], 2)%(DATEPART(WEEKDAY, GETDATE()) + 3) ASC, [R].[RecordId] ASC) AS [RowId] FROM (SELECT [R].[RecordId], [R].[xPR], [R].[xPS], [R].[xPD], [R].[xTP], [R].[xTT], [R].[xShopState], [R].[xShippingState], [R].[Match], [R].[XChange], [R].[xPF], [R].[xPE], [R].[xPI], [R].[SortId], ROW_NUMBER() OVER (PARTITION BY R.SortId, R.DebiteurId ORDER BY SortId + CASE WHEN [R].[xShopState] = 1 THEN 1 ELSE 0 END DESC, CASE WHEN [12] IS NULL THEN 1 END ASC, [12] DESC, CASE WHEN [14] IS NULL THEN 1 END ASC, [14] ASC, RIGHT([RecordId], 2)%(DATEPART(WEEKDAY, GETDATE()) + 3) ASC, [RecordId] ASC) AS [PartRank] FROM (SELECT *, CASE WHEN [xPF] IS NOT NULL THEN CASE WHEN [xTT] = 1 THEN CAST([xPF] / ((100 + [xTP]) / 100) AS DECIMAL(9, 2)) ELSE [xPF] END END AS [xPE], CASE WHEN [xPF] IS NOT NULL THEN CASE WHEN [xTT] = 0 THEN CAST([xPF] * ((100 + [xTP]) / 100) AS DECIMAL(9, 2)) ELSE [xPF] END END AS [xPI], CASE WHEN [xPF] IS NOT NULL THEN CASE WHEN [xTT] = 0 THEN CAST([xPF] * ((100 + [xTP]) / 100) AS DECIMAL(9, 2)) ELSE [xPF] END END AS [14] FROM (SELECT *, CASE WHEN [xPS] = 1 AND [xPR] IS NOT NULL THEN CAST(CASE WHEN [xPD] IS NOT NULL THEN (CAST((100 - ISNULL([xPD], 0)) AS DECIMAL) / 100) * [xPR] ELSE [xPR] END AS DECIMAL(10, 2)) END AS [xPF] FROM (SELECT [R].[RecordId], (ISNULL(CASE WHEN [R].[Shop] = 1 THEN ISNULL([R].[PriceShop],ROUND ( [R].[Prijs] * ((100 + ISNULL([D].[ShopPricePercentage], 0)) / 100), 2)) END, [R].[Prijs])) AS [xPR], CASE WHEN [R].[PrijsTonen] IS NOT NULL THEN [R].[PrijsTonen] WHEN [R].[SoortId] = 0 THEN [D].[OOLPrijzenG] WHEN [R].[SoortId] = 1 THEN [D].[OOLPrijzenR] WHEN [R].[SoortId] = 2 THEN [D].[OOLPrijzenN] ELSE 1 END AS [xPS], (SELECT [T].[Discount] FROM dbo.[AutomatePartDiscount] [T] WHERE [T].[SupplierId] = [R].[DebiteurId] AND [T].[StateId] = [R].[SoortId] AND [T].[PartAutomateId] = [R].[DeelId]) AS [xPD], ISNULL([VT].[General], 21) AS [xTP], CASE WHEN [R].[SoortId] = 0 AND NOT ISNULL([R].[PrijsSoort], 0) = 1 THEN 2 WHEN [D].[OOLPrijzenExcl] = 0 THEN 1 ELSE 0 END AS [xTT], CASE WHEN NOT [D].[ShopActive] = 1 THEN 11 ELSE ISNULL([ss].[StateId], 6) END AS [xShopState], xShippingState AS [xShippingState], [R].[SortId], [R].[DebiteurId], [R].[Bouwjaar] AS [12], NULL AS [Match], CASE WHEN [RM].[xPM] = 4 THEN 1 END AS [XChange] FROM (SELECT [RM].[RecordId], MAX([RM].[xPM]) AS [xPM] FROM (SELECT [R].[RecordId], 10 AS [xPM] FROM dbo.[OOLInternet] [R] WITH (NOLOCK) WHERE [R].[DeelId] IN ('8851A') AND [R].[RecordId] IN (SELECT [OT].[RecordId] FROM dbo.[OOLGearboxcodes] [OT] WITH (NOLOCK) WHERE [OT].[CodeId] IN (SELECT [CT].[Id] FROM dbo.[CodeGearbox] [CT] WHERE [CT].[Code] LIKE 'P510%')) AND [R].[DebiteurId] IN (SELECT [DT].[DebtorId] FROM #TD [DT]) UNION ALL SELECT [R].[RecordId], 4 AS [xPM] FROM dbo.[OOLInternet] [R] WITH (NOLOCK) WHERE [R].[DebiteurId] IN (SELECT [DT].[DebtorId] FROM #TD [DT]) AND [R].[DeelId] = '8851A' AND ([R].[RecordId] IN (SELECT [OX].[RecordId] FROM dbo.[OOLXchg] [OX] WITH (NOLOCK) WHERE [OX].[CollectionId] IN (SELECT [DX].[CollectionId] FROM dbo.[DebtorXchgGearboxcode] [DX] WHERE [DX].[CodeId] IN (SELECT [CT].[Id] FROM dbo.[CodeGearbox] [CT] WHERE [CT].[Code] LIKE 'P510%'))))) [RM] GROUP BY [RM].[RecordId]) [RM] LEFT JOIN dbo.[OOLInternet] [R] ON [R].[RecordId] = [RM].[RecordId] LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1) LEFT JOIN [Basis].dbo.[CountryVatRate] [VT] ON [VT].[CountryId] = [D].[LandId] AND [VT].[Active] = 1 OUTER APPLY dbo.fnGetOOLShippingStateExtendedTVF([R].[DebiteurId], [R].[DebiteurLocatieId], [R].[DeelNr], 528, NULL) [SHS] OUTER APPLY dbo.[fn_OOL_HasPriceInline]([R].[RecordId]) [hp] OUTER APPLY dbo.[fnGetOOLShopStateInline2]([R].[RecordId], [R].[DebiteurId], [R].[Aantal], [R].[QuantityInfinite], [R].[GreenCasionExpiresAt], [R].[Shop], [D].[ShopEnabled], ISNULL([hp].[HasPrice], 0), 1, NULL, NULL, 1, xShippingState) [ss]) [R]) [R]) [R]) [R]; SELECT [R].[DeelId], [R].[SoortId], COUNT(*) AS [Aantal] FROM (SELECT [R].[DeelId], [R].[SoortId], [R].[RecordId], [R].[DebiteurId], [xPR], [xPF], [xPD], [xPS], [xPE], [xPI], [xTP], [xTT], [xShopState], [xShippingState], [XChange] FROM #RM [RM] LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) ON [R].[RecordId] = [RM].[RecordId]) [R] GROUP BY [R].[DeelId], [R].[SoortId]; SELECT [R].*, [xTP] AS [PrijsTaxPerc], [xPD] AS [PrijsKorting], (SELECT [VIBM].[Bouwmaand] FROM dbo.[VOLInternet] [VIBM] WHERE [VIBM].[RecordId] = [R].[AutoRecordId]) AS [ConstructionMonth], [xPE] AS [PrijsAlt], STUFF((SELECT '|' + CAST([V].[VeldId] AS VARCHAR(10)) + '^' + [V].[Waarde] FROM (SELECT [V].[VeldId], [V].[Waarde], [V].[OrderId] FROM dbo.[OOLVelden] [V] WHERE [V].[RecordId] = [R].[RecordId] AND [V].[VeldId] IN (26, 230, 231, 244)) [V] ORDER BY [V].[VeldId], [V].[OrderId] FOR XML PATH('')), 1, 1, '') AS [Automate2Velden], [xShopState] AS [ShopState], CASE WHEN [R].[AldocModelCode] IS NOT NULL THEN (SELECT ISNULL((STUFF((SELECT '^' + [T3].[NaamInternet] + '~' + [T2].[NaamInternet] FROM [Basis].dbo.[AutomateModellenTranslated] [T2] LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [T3] ON [T3].[MerkId] = [T2].[MerkId] AND [T3].[LanguageId] = 1 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 1 AND [T2].[Synoniem] = 0 FOR XML PATH('')), 1, 1,'')), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocModelOmschrijvingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode] AND [T].[LanguageId] = 1), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 1), '')) END AS [AldocDescription] FROM (SELECT [R].* FROM (SELECT [R].[SortId], [R].[RecordId], [R].[DebiteurId], [R].[ExternalId], [R].[ReferenceId], [R].[Youtube] AS [181], [184], [190], ISNULL([R].[Fotos], (SELECT 'G^' + CAST([G].[GroupId] AS VARCHAR(20)) + '^' + [G].[Images] FROM dbo.[OOLFotoGroups] [G] WHERE [G].[DebiteurId] = [R].[DebiteurId] AND [G].[SModelId] = [R].[SModelId] AND [G].[DeelId] = [R].[DeelId])) AS [58], [R].[SoortId] AS [StateId], CASE WHEN SUBSTRING([R].[ModelId], 1, 3) IN ('00X', '0XX') THEN NULL ELSE [MET].[NaamInternet] + '^' + [MOT].[NaamInternet] END AS [MakeModel], [xPS] AS [PrijsTonen], CASE WHEN [xTT] IN (0, 1) THEN 1 ELSE [xTT] END AS [PrijsTaxType], [DOT].[Enkelvoud] AS [Onderdeel], [xPI] AS [14], [R].[Bouwjaar] AS [12], [R].[AutoRecordId], CASE WHEN [135] IS NULL THEN CASE WHEN [R].[SoortId] = 0 THEN [D].[OOLGarantieG] WHEN [R].[SoortId] = 1 THEN [D].[OOLGarantieR] WHEN [R].[SoortId] = 2 THEN [D].[OOLGarantieN] ELSE NULL END ELSE [135] END AS [135], [37], STUFF((SELECT '|' + [XVT].[NaamLang] FROM dbo.[OOLVelden] [XOV] LEFT JOIN [Basis].dbo.[AutomateVeldWaardenTranslated] [XVT] ON [XVT].[VeldId] = [XOV].[VeldId] AND [XVT].[LanguageId] = 1 AND [XVT].[Waarde] = [XOV].[Waarde] WHERE [XOV].[RecordId] = [R].[RecordId] AND [XOV].[VeldId] = 17 ORDER BY [XOV].[OrderId] FOR XML PATH('')), 1, 1, '') AS [17], [R].[Motorcodes] AS [108], TRY_CAST([18] AS INT) AS [18], [V19].[NaamLang] AS [19], CASE WHEN [36] = '4' THEN '4x4' WHEN [36] = 'A' THEN 'Achterwiel' WHEN [36] = 'V' THEN 'Voorwiel' WHEN ISNULL([36], '') = '' THEN NULL ELSE [36] END AS [36], CASE WHEN [XChange] = 1 THEN ISNULL([R].[Versnellingsbakcodes] + '|', '') + ISNULL((SELECT TOP 1 [CT].[Code] FROM dbo.[OOLXchg] [X] LEFT JOIN dbo.[DebtorXchgGearboxcode] [XP] ON [XP].[CollectionId] = [X].[CollectionId] LEFT JOIN dbo.[CodeGearbox] [CT] ON [CT].[Id] = [XP].[CodeId] WHERE [X].[RecordId] = [R].[RecordId] AND [CT].[Code] LIKE 'P510%'), 'P510') ELSE [R].[Versnellingsbakcodes] END AS [114], (SELECT TOP 1 [XOV].[Waarde] FROM dbo.[OOLVelden] [XOV] WHERE [XOV].[RecordId] = [R].[RecordId] AND [XOV].[VeldId] = 241 ORDER BY [XOV].[OrderId]) AS [241], TRY_CAST([26] AS INT) AS [26], [25], [R].[Artikelnummers] AS [21], ISNULL([D].[Bedrijfsnaam], '') + '|' + ISNULL([D].[BedrijfKort], '') AS [Leverancier], [R].[BijzonderheidInet], [R].[WarrantyText] AS [GarantieToelichting], [R].[Shop], [R].[Created], [xShippingState] AS [ShippingState], [R].[WarrantyConstruction] AS [WarrantyInstallation], [R].[DeelId], [R].[DebiteurRecordId], [R].[AldocModelCode], [R].[AldocTypeId], [xPR], [xPF], [xPD], [xPS], [xPE], [xPI], [xTP], [xTT], [xShopState], [xShippingState], [XChange], [R].[SModelId], [R].[ModelId], [R].[PrijsSoort], [R].[PriceShop], [R].[RowId] FROM (SELECT * FROM (SELECT [R].*, [OV].[VeldId], [OV].[Waarde] FROM (SELECT [RM].[RowId], [R].[SortId], [R].[RecordId], [R].[DebiteurId], [R].[ExternalId], [R].[ReferenceId], [R].[Youtube], [R].[Fotos], [R].[SoortId], [R].[PrijsTonen], [R].[Prijs], [R].[Bouwjaar], [R].[AutoRecordId], [R].[Motorcodes], [R].[Versnellingsbakcodes], [R].[Artikelnummers], [R].[BijzonderheidInet], [R].[WarrantyText], [R].[Shop], [R].[Created], [R].[WarrantyConstruction], [R].[DeelId], [R].[DebiteurRecordId], [R].[AldocModelCode], [R].[AldocTypeId], [R].[DebiteurLocatieId], [R].[SModelId], [R].[ModelId], [R].[PrijsSoort], [R].[PriceShop], [xPR], [xPF], [xPD], [xPS], [xPE], [xPI], [xTP], [xTT], [xShopState], [xShippingState], [XChange] FROM #RM [RM] LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) ON [R].[RecordId] = [RM].[RecordId] WHERE [RM].[RowId] BETWEEN 1 AND 10) AS [R] LEFT JOIN dbo.[OOLVelden] [OV] WITH (INDEX(PK_OOLVelden)) ON [OV].[RecordId] = [R].[RecordId] AND [OV].[VeldId] IN (184, 190, 135, 37, 18, 19, 36, 241, 26, 25)) [R] PIVOT (MAX([Waarde]) FOR [VeldId] IN ([184], [190], [135], [37], [18], [19], [36], [241], [26], [25])) AS [R]) [R] LEFT JOIN [Basis].dbo.[AutomateVeldWaardenTranslated] [V19] ON [V19].[VeldId] = 19 AND [V19].[Waarde] = [19] AND [V19].[LanguageId] = 1 LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 1 AND [MOT].[Synoniem] = 0 LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 1 LEFT JOIN [Basis].dbo.[AutomateOnderdelenTranslated] [DOT] ON [DOT].[DeelId] = [R].[DeelId] AND [DOT].[LanguageId] = 1 AND [DOT].[OrderId] = CASE WHEN [19] IN ('A', 'D', 'SA') THEN 2 ELSE 1 END LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)) [R] ORDER BY [SortId] DESC, + CASE WHEN [R].[xShopState] = 1 THEN 1 ELSE 0 END DESC, [RowId] ASC OFFSET 0 ROWS FETCH NEXT 10 ROWS ONLY) [R]; WITH [R] AS (SELECT [R].[RecordId], [xPR], [xPF], [xPD], [xPS], [xPE], [xPI], [xTP], [xTT], [xShopState], [xShippingState], [XChange], [Bouwjaar], [xPI] AS [Prijs], [ModelId] FROM #RM [RM] LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) ON [R].[RecordId] = [RM].[RecordId] LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)) SELECT [VeldId], [Waarde] AS [Value], NULL AS [ValueMIN], NULL AS [ValueMAX] FROM dbo.[OOLVelden] [OV] WHERE [RecordId] IN (SELECT [R].[RecordId] FROM [R]) AND [VeldId] IN (184,190,37,17,19,36,241,25) GROUP BY [VeldId], [Waarde] UNION SELECT [VeldId], NULL AS [Value], MIN([Waarde]) AS [ValueMIN], MAX([Waarde]) AS [ValueMAX] FROM (SELECT [VeldId], TRY_CAST([Waarde] AS INT) AS [Waarde] FROM dbo.[OOLVelden] [OV] WHERE [RecordId] IN (SELECT [R].[RecordId] FROM [R]) AND [VeldId] IN (135,18,26)) [OV] GROUP BY [VeldId] UNION SELECT 12, NULL AS [Value], MIN([R].[Bouwjaar]) AS [ValueMIN], MAX([R].[Bouwjaar]) AS [ValueMAX] FROM [R] UNION SELECT 14, NULL AS [Value], MIN(CAST([Prijs] AS INT)) AS [ValueMIN], MAX(CAST([Prijs] AS INT)) AS [ValueMAX] FROM [R] UNION SELECT 1, [ModelId], NULL AS [ValueMIN], NULL AS [ValueMAX] FROM [R] ORDER BY 1, 2; SELECT DISTINCT [R].[DebiteurId] FROM (SELECT DISTINCT [DebiteurId] FROM dbo.[OOLInternet] [R] WITH (NOLOCK) WHERE [R].[RecordId] In (SELECT [RM].[RecordId] FROM #RM [RM])) [R] IF OBJECT_ID('tempdb..#RM') IS NOT NULL DROP TABLE #RM; IF OBJECT_ID('tempdb..#TD') IS NOT NULL DROP TABLE #TD;" }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 32, "SizeMax": 150, "SetMax": false, "GetIndexMax": 4, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "22996200": 1, "12224589": 2, "17322798": 3, "14566267": 4, "23729003": 5, "24928493": 6, "6586271": 7, "14355163": 8, "25158679": 9, "17902110": 10 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "Nederland", "CountryId": 528, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }{ "Data": { "SessionId": 4, "Match": null, "Timestamp": "2026-08-20T21:51:17.5871441+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/pd8644475/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/onderdeelnummer/pd8644475/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/pd8644475/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }{ "Data": { "SessionId": 5, "Match": null, "Timestamp": "2026-08-20T21:51:19.1496442+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/a2059008428/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/onderdeelnummer/a2059008428/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/a2059008428/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }{ "Data": { "SessionId": 6, "Match": null, "Timestamp": "2026-08-20T21:51:20.4309062+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/a005ta6292g/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/onderdeelnummer/a005ta6292g/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/a005ta6292g/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }{ "Data": { "SessionId": 7, "Match": null, "Timestamp": "2026-08-20T21:51:21.4364425+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/06n145702d/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/onderdeelnummer/06n145702d/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/06n145702d/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }{ "Data": { "SessionId": 8, "Match": null, "Timestamp": "2026-08-20T21:51:22.3895755+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/magazijn/onderdeelnummer/2q0907686e/onderdeel/dode-hoek-sensor/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/magazijn/onderdeelnummer/2q0907686e/onderdeel/dode-hoek-sensor/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/magazijn/onderdeelnummer/2q0907686e/onderdeel/dode-hoek-sensor/" ], "UrlSet": false, "Query": "SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; IF OBJECT_ID('tempdb..#TD') IS NOT NULL DROP TABLE #TD; CREATE TABLE #TD ([DebtorId] INT PRIMARY KEY NOT NULL); INSERT INTO #TD ([DebtorId]) SELECT DISTINCT [DebiteurId] FROM dbo.[Debiteuren] WHERE [OOL] = 1 AND [OOLGeenVoorraad] = 0 AND [DebiteurId] NOT IN (101190); IF OBJECT_ID('tempdb..#RM') IS NOT NULL DROP TABLE #RM; CREATE TABLE #RM ([RecordId] BIGINT NOT NULL, [xPR] DECIMAL(9, 2), [xPS] BIT NOT NULL, [xPD] INT, [xTP] DECIMAL(5, 2) NOT NULL, [xTT] INT NOT NULL, [xShopState] INT, [xShippingState] TINYINT, [Match] INT, [XChange] BIT, [xPF] DECIMAL(9, 2), [xPE] DECIMAL(9, 2), [xPI] DECIMAL(9, 2), [RowId] INT PRIMARY KEY CLUSTERED ([RecordId] ASC)) INSERT INTO #RM ([RecordId], [xPR], [xPS], [xPD], [xTP], [xTT], [xShopState], [xShippingState], [Match], [XChange], [xPF], [xPE], [xPI], [RowId]) SELECT [R].[RecordId], [R].[xPR], [R].[xPS], [R].[xPD], [R].[xTP], [R].[xTT], [R].[xShopState], [R].[xShippingState], [R].[Match], [R].[XChange], [R].[xPF], [R].[xPE], [R].[xPI], ROW_NUMBER() OVER (ORDER BY [SortId] DESC, + CASE WHEN [R].[xShopState] = 1 THEN 1 ELSE 0 END DESC, [PartRank] ASC, RIGHT([RecordId], 2)%(DATEPART(WEEKDAY, GETDATE()) + 3) ASC, [R].[RecordId] ASC) AS [RowId] FROM (SELECT [R].[RecordId], [R].[xPR], [R].[xPS], [R].[xPD], [R].[xTP], [R].[xTT], [R].[xShopState], [R].[xShippingState], [R].[Match], [R].[XChange], [R].[xPF], [R].[xPE], [R].[xPI], [R].[SortId], ROW_NUMBER() OVER (PARTITION BY R.SortId, R.DebiteurId ORDER BY SortId + CASE WHEN [R].[xShopState] = 1 THEN 1 ELSE 0 END DESC, CASE WHEN [12] IS NULL THEN 1 END ASC, [12] DESC, CASE WHEN [14] IS NULL THEN 1 END ASC, [14] ASC, RIGHT([RecordId], 2)%(DATEPART(WEEKDAY, GETDATE()) + 3) ASC, [RecordId] ASC) AS [PartRank] FROM (SELECT *, CASE WHEN [xPF] IS NOT NULL THEN CASE WHEN [xTT] = 1 THEN CAST([xPF] / ((100 + [xTP]) / 100) AS DECIMAL(9, 2)) ELSE [xPF] END END AS [xPE], CASE WHEN [xPF] IS NOT NULL THEN CASE WHEN [xTT] = 0 THEN CAST([xPF] * ((100 + [xTP]) / 100) AS DECIMAL(9, 2)) ELSE [xPF] END END AS [xPI], CASE WHEN [xPF] IS NOT NULL THEN CASE WHEN [xTT] = 0 THEN CAST([xPF] * ((100 + [xTP]) / 100) AS DECIMAL(9, 2)) ELSE [xPF] END END AS [14] FROM (SELECT *, CASE WHEN [xPS] = 1 AND [xPR] IS NOT NULL THEN CAST(CASE WHEN [xPD] IS NOT NULL THEN (CAST((100 - ISNULL([xPD], 0)) AS DECIMAL) / 100) * [xPR] ELSE [xPR] END AS DECIMAL(10, 2)) END AS [xPF] FROM (SELECT [R].[RecordId], (ISNULL(CASE WHEN [R].[Shop] = 1 THEN ISNULL([R].[PriceShop],ROUND ( [R].[Prijs] * ((100 + ISNULL([D].[ShopPricePercentage], 0)) / 100), 2)) END, [R].[Prijs])) AS [xPR], CASE WHEN [R].[PrijsTonen] IS NOT NULL THEN [R].[PrijsTonen] WHEN [R].[SoortId] = 0 THEN [D].[OOLPrijzenG] WHEN [R].[SoortId] = 1 THEN [D].[OOLPrijzenR] WHEN [R].[SoortId] = 2 THEN [D].[OOLPrijzenN] ELSE 1 END AS [xPS], (SELECT [T].[Discount] FROM dbo.[AutomatePartDiscount] [T] WHERE [T].[SupplierId] = [R].[DebiteurId] AND [T].[StateId] = [R].[SoortId] AND [T].[PartAutomateId] = [R].[DeelId]) AS [xPD], ISNULL([VT].[General], 21) AS [xTP], CASE WHEN [R].[SoortId] = 0 AND NOT ISNULL([R].[PrijsSoort], 0) = 1 THEN 2 WHEN [D].[OOLPrijzenExcl] = 0 THEN 1 ELSE 0 END AS [xTT], CASE WHEN NOT [D].[ShopActive] = 1 THEN 11 ELSE ISNULL([ss].[StateId], 6) END AS [xShopState], xShippingState AS [xShippingState], [R].[SortId], [R].[DebiteurId], [R].[Bouwjaar] AS [12], NULL AS [Match], CASE WHEN [RM].[xPM] = 4 THEN 1 END AS [XChange] FROM (SELECT [RM].[RecordId], MAX([RM].[xPM]) AS [xPM] FROM (SELECT [R].[RecordId], 10 AS [xPM] FROM dbo.[OOLInternet] [R] WITH (NOLOCK) WHERE [R].[DeelId] IN ('0361X') AND [R].[RecordId] IN (SELECT [OT].[RecordId] FROM dbo.[OOLPartnumbers] [OT] WITH (NOLOCK) WHERE [OT].[CodeId] IN (SELECT [CT].[Id] FROM dbo.[CodePartnumber] [CT] WHERE ([CT].[Code] LIKE '2Q0907686E%' OR [CT].[CodeReversed] LIKE 'E6867090Q2%'))) AND [R].[DebiteurId] IN (SELECT [DT].[DebtorId] FROM #TD [DT]) UNION ALL SELECT [R].[RecordId], 4 AS [xPM] FROM dbo.[OOLInternet] [R] WITH (NOLOCK) WHERE [R].[DebiteurId] IN (SELECT [DT].[DebtorId] FROM #TD [DT]) AND [R].[DeelId] = '0361X' AND ([R].[RecordId] IN (SELECT [OX].[RecordId] FROM dbo.[OOLXchg] [OX] WITH (NOLOCK) WHERE [OX].[CollectionId] IN (SELECT [DX].[CollectionId] FROM dbo.[DebtorXchgPartnumber] [DX] WHERE [DX].[CodeId] IN (SELECT [CT].[Id] FROM dbo.[CodePartnumber] [CT] WHERE ([CT].[Code] LIKE '2Q0907686E%' OR [CT].[CodeReversed] LIKE 'E6867090Q2%')))))) [RM] GROUP BY [RM].[RecordId]) [RM] LEFT JOIN dbo.[OOLInternet] [R] ON [R].[RecordId] = [RM].[RecordId] LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1) LEFT JOIN [Basis].dbo.[CountryVatRate] [VT] ON [VT].[CountryId] = [D].[LandId] AND [VT].[Active] = 1 OUTER APPLY dbo.fnGetOOLShippingStateExtendedTVF([R].[DebiteurId], [R].[DebiteurLocatieId], [R].[DeelNr], 528, NULL) [SHS] OUTER APPLY dbo.[fn_OOL_HasPriceInline]([R].[RecordId]) [hp] OUTER APPLY dbo.[fnGetOOLShopStateInline2]([R].[RecordId], [R].[DebiteurId], [R].[Aantal], [R].[QuantityInfinite], [R].[GreenCasionExpiresAt], [R].[Shop], [D].[ShopEnabled], ISNULL([hp].[HasPrice], 0), 1, NULL, NULL, 1, xShippingState) [ss]) [R]) [R]) [R]) [R]; SELECT [R].[DeelId], [R].[SoortId], COUNT(*) AS [Aantal] FROM (SELECT [R].[DeelId], [R].[SoortId], [R].[RecordId], [R].[DebiteurId], [xPR], [xPF], [xPD], [xPS], [xPE], [xPI], [xTP], [xTT], [xShopState], [xShippingState], [XChange] FROM #RM [RM] LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) ON [R].[RecordId] = [RM].[RecordId]) [R] GROUP BY [R].[DeelId], [R].[SoortId]; SELECT [R].*, [xTP] AS [PrijsTaxPerc], [xPD] AS [PrijsKorting], (SELECT [VIBM].[Bouwmaand] FROM dbo.[VOLInternet] [VIBM] WHERE [VIBM].[RecordId] = [R].[AutoRecordId]) AS [ConstructionMonth], [xPE] AS [PrijsAlt], STUFF((SELECT '|' + CAST([V].[VeldId] AS VARCHAR(10)) + '^' + [V].[Waarde] FROM (SELECT [V].[VeldId], [V].[Waarde], [V].[OrderId] FROM dbo.[OOLVelden] [V] WHERE [V].[RecordId] = [R].[RecordId] AND [V].[VeldId] IN (26, 28)) [V] ORDER BY [V].[VeldId], [V].[OrderId] FOR XML PATH('')), 1, 1, '') AS [Automate2Velden], [xShopState] AS [ShopState], CASE WHEN [R].[AldocModelCode] IS NOT NULL THEN (SELECT ISNULL((STUFF((SELECT '^' + [T3].[NaamInternet] + '~' + [T2].[NaamInternet] FROM [Basis].dbo.[AutomateModellenTranslated] [T2] LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [T3] ON [T3].[MerkId] = [T2].[MerkId] AND [T3].[LanguageId] = 1 WHERE [T2].[ModelId] IN (SELECT [T].[ModelId] FROM [Basis].dbo.[AldocModelKoppelingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode]) AND [T2].[LanguageId] = 1 AND [T2].[Synoniem] = 0 FOR XML PATH('')), 1, 1,'')), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocModelOmschrijvingen] [T] WHERE [T].[ModelCode] = [R].[AldocModelCode] AND [T].[LanguageId] = 1), '') + '|' + ISNULL((SELECT [T].[Omschrijving] FROM [Basis].dbo.[AldocTypeOmschrijvingen] [T] WHERE [T].[TypeId] = [R].[AldocTypeId] AND [T].[LanguageId] = 1), '')) END AS [AldocDescription] FROM (SELECT [R].* FROM (SELECT [R].[SortId], [R].[RecordId], [R].[DebiteurId], [R].[ExternalId], [R].[ReferenceId], [R].[Youtube] AS [181], [184], [190], ISNULL([R].[Fotos], (SELECT 'G^' + CAST([G].[GroupId] AS VARCHAR(20)) + '^' + [G].[Images] FROM dbo.[OOLFotoGroups] [G] WHERE [G].[DebiteurId] = [R].[DebiteurId] AND [G].[SModelId] = [R].[SModelId] AND [G].[DeelId] = [R].[DeelId])) AS [58], [R].[SoortId] AS [StateId], CASE WHEN SUBSTRING([R].[ModelId], 1, 3) IN ('00X', '0XX') THEN NULL ELSE [MET].[NaamInternet] + '^' + [MOT].[NaamInternet] END AS [MakeModel], [xPS] AS [PrijsTonen], CASE WHEN [xTT] IN (0, 1) THEN 1 ELSE [xTT] END AS [PrijsTaxType], [xPI] AS [14], [R].[Bouwjaar] AS [12], [R].[AutoRecordId], CASE WHEN [135] IS NULL THEN CASE WHEN [R].[SoortId] = 0 THEN [D].[OOLGarantieG] WHEN [R].[SoortId] = 1 THEN [D].[OOLGarantieR] WHEN [R].[SoortId] = 2 THEN [D].[OOLGarantieN] ELSE NULL END ELSE [135] END AS [135], [37], CASE WHEN [22] = '2' THEN '2Dr' WHEN [22] = '4' THEN '4Dr' WHEN ISNULL([22], '') = '' THEN NULL ELSE [22] END AS [22], [V23].[NaamLang] AS [23], CASE WHEN [182] = 'L' THEN 'Links' WHEN [182] = 'M' THEN 'Midden' WHEN [182] = 'R' THEN 'Rechts' WHEN ISNULL([182], '') = '' THEN NULL ELSE [182] END AS [182], [25], CASE WHEN [XChange] = 1 THEN ISNULL([R].[Artikelnummers] + '|', '') + ISNULL((SELECT TOP 1 [CT].[Code] FROM dbo.[OOLXchg] [X] LEFT JOIN dbo.[DebtorXchgPartnumber] [XP] ON [XP].[CollectionId] = [X].[CollectionId] LEFT JOIN dbo.[CodePartnumber] [CT] ON [CT].[Id] = [XP].[CodeId] WHERE [X].[RecordId] = [R].[RecordId] AND ([CT].[Code] LIKE '2Q0907686E%' OR [CT].[CodeReversed] LIKE 'E6867090Q2%')), '2Q0907686E') + '^0' ELSE [R].[Artikelnummers] END AS [21], ISNULL([D].[Bedrijfsnaam], '') + '|' + ISNULL([D].[BedrijfKort], '') AS [Leverancier], [R].[BijzonderheidInet], [R].[WarrantyText] AS [GarantieToelichting], [R].[Shop], [R].[Created], [xShippingState] AS [ShippingState], [R].[WarrantyConstruction] AS [WarrantyInstallation], [R].[DeelId], [R].[DebiteurRecordId], [R].[AldocModelCode], [R].[AldocTypeId], [xPR], [xPF], [xPD], [xPS], [xPE], [xPI], [xTP], [xTT], [xShopState], [xShippingState], [XChange], [R].[SModelId], [R].[ModelId], [R].[PrijsSoort], [R].[PriceShop], [R].[RowId] FROM (SELECT * FROM (SELECT [R].*, [OV].[VeldId], [OV].[Waarde] FROM (SELECT [RM].[RowId], [R].[SortId], [R].[RecordId], [R].[DebiteurId], [R].[ExternalId], [R].[ReferenceId], [R].[Youtube], [R].[Fotos], [R].[SoortId], [R].[PrijsTonen], [R].[Prijs], [R].[Bouwjaar], [R].[AutoRecordId], [R].[Artikelnummers], [R].[BijzonderheidInet], [R].[WarrantyText], [R].[Shop], [R].[Created], [R].[WarrantyConstruction], [R].[DeelId], [R].[DebiteurRecordId], [R].[AldocModelCode], [R].[AldocTypeId], [R].[DebiteurLocatieId], [R].[SModelId], [R].[ModelId], [R].[PrijsSoort], [R].[PriceShop], [xPR], [xPF], [xPD], [xPS], [xPE], [xPI], [xTP], [xTT], [xShopState], [xShippingState], [XChange] FROM #RM [RM] LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) ON [R].[RecordId] = [RM].[RecordId] WHERE [RM].[RowId] BETWEEN 1 AND 10) AS [R] LEFT JOIN dbo.[OOLVelden] [OV] WITH (INDEX(PK_OOLVelden)) ON [OV].[RecordId] = [R].[RecordId] AND [OV].[VeldId] IN (184, 190, 135, 37, 22, 23, 182, 25)) [R] PIVOT (MAX([Waarde]) FOR [VeldId] IN ([184], [190], [135], [37], [22], [23], [182], [25])) AS [R]) [R] LEFT JOIN [Basis].dbo.[AutomateVeldWaardenTranslated] [V23] ON [V23].[VeldId] = 23 AND [V23].[Waarde] = [23] AND [V23].[LanguageId] = 1 LEFT JOIN [Basis].dbo.[AutomateModellenTranslated] [MOT] ON [MOT].[ModelId] = [R].[ModelID] AND [MOT].[LanguageId] = 1 AND [MOT].[Synoniem] = 0 LEFT JOIN [Basis].dbo.[AutomateMerkenTranslated] [MET] ON [MET].[MerkId] = [MOT].[MerkId] AND [MET].[LanguageId] = 1 LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)) [R] ORDER BY [SortId] DESC, + CASE WHEN [R].[xShopState] = 1 THEN 1 ELSE 0 END DESC, [RowId] ASC OFFSET 0 ROWS FETCH NEXT 10 ROWS ONLY) [R]; WITH [R] AS (SELECT [R].[RecordId], [xPR], [xPF], [xPD], [xPS], [xPE], [xPI], [xTP], [xTT], [xShopState], [xShippingState], [XChange], [Bouwjaar], [xPI] AS [Prijs], [ModelId] FROM #RM [RM] LEFT JOIN dbo.[OOLInternet] [R] With (NOLOCK FORCESEEK) ON [R].[RecordId] = [RM].[RecordId] LEFT JOIN dbo.[DebiteurLocatieData] [D] ON [D].[DebiteurId] = [R].[DebiteurId] AND [D].[LocatieId] = ISNULL([R].[DebiteurLocatieId], 1)) SELECT [VeldId], [Waarde] AS [Value], NULL AS [ValueMIN], NULL AS [ValueMAX] FROM dbo.[OOLVelden] [OV] WHERE [RecordId] IN (SELECT [R].[RecordId] FROM [R]) AND [VeldId] IN (184,190,37,22,23,182,25) GROUP BY [VeldId], [Waarde] UNION SELECT [VeldId], NULL AS [Value], MIN([Waarde]) AS [ValueMIN], MAX([Waarde]) AS [ValueMAX] FROM (SELECT [VeldId], TRY_CAST([Waarde] AS INT) AS [Waarde] FROM dbo.[OOLVelden] [OV] WHERE [RecordId] IN (SELECT [R].[RecordId] FROM [R]) AND [VeldId] IN (135)) [OV] GROUP BY [VeldId] UNION SELECT 12, NULL AS [Value], MIN([R].[Bouwjaar]) AS [ValueMIN], MAX([R].[Bouwjaar]) AS [ValueMAX] FROM [R] UNION SELECT 14, NULL AS [Value], MIN(CAST([Prijs] AS INT)) AS [ValueMIN], MAX(CAST([Prijs] AS INT)) AS [ValueMAX] FROM [R] UNION SELECT 1, [ModelId], NULL AS [ValueMIN], NULL AS [ValueMAX] FROM [R] ORDER BY 1, 2; SELECT DISTINCT [R].[DebiteurId] FROM (SELECT DISTINCT [DebiteurId] FROM dbo.[OOLInternet] [R] WITH (NOLOCK) WHERE [R].[RecordId] In (SELECT [RM].[RecordId] FROM #RM [RM])) [R] IF OBJECT_ID('tempdb..#RM') IS NOT NULL DROP TABLE #RM; IF OBJECT_ID('tempdb..#TD') IS NOT NULL DROP TABLE #TD;" }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 4, "SizeMax": 150, "SetMax": false, "GetIndexMax": 1, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": { "24203980": 1, "23702510": 2, "25216959": 3, "21689076": 4 }, "Sort": "", "SortDirection": "Ascending", "CountryName": "Nederland", "CountryId": 528, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }{ "Data": { "SessionId": 9, "Match": null, "Timestamp": "2026-08-20T21:51:23.1708119+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/carid/6441818/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/carid/6441818/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/carid/6441818/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }{ "Data": { "SessionId": 10, "Match": null, "Timestamp": "2026-08-20T21:51:23.9949548+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/06a103221bh/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/onderdeelnummer/06a103221bh/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/06a103221bh/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }{ "Data": { "SessionId": 11, "Match": null, "Timestamp": "2026-08-20T21:51:24.9636868+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/bm5t14b321cd/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/onderdeelnummer/bm5t14b321cd/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/bm5t14b321cd/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }{ "Data": { "SessionId": 12, "Match": null, "Timestamp": "2026-08-20T21:51:25.4480601+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/7701477846/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/onderdeelnummer/7701477846/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/7701477846/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }{ "Data": { "SessionId": 13, "Match": null, "Timestamp": "2026-08-20T21:51:25.8230583+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/2751034/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/onderdeelnummer/2751034/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/2751034/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }{ "Data": { "SessionId": 14, "Match": null, "Timestamp": "2026-08-20T21:51:27.2918148+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/31359703/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/onderdeelnummer/31359703/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/31359703/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }{ "Data": { "SessionId": 15, "Match": null, "Timestamp": "2026-08-20T21:51:28.0886826+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/735470645/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/onderdeelnummer/735470645/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/735470645/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }{ "Data": { "SessionId": 16, "Match": null, "Timestamp": "2026-08-20T21:51:29.3855603+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/a6429008101/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/onderdeelnummer/a6429008101/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/a6429008101/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }{ "Data": { "SessionId": 17, "Match": null, "Timestamp": "2026-08-20T21:51:30.1355562+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/1412156/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/onderdeelnummer/1412156/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/1412156/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }{ "Data": { "SessionId": 18, "Match": null, "Timestamp": "2026-08-20T21:51:31.308465+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/8200485589/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/onderdeelnummer/8200485589/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/8200485589/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }{ "Data": { "SessionId": 19, "Match": null, "Timestamp": "2026-08-20T21:51:32.8553398+02:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/9800494077/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/zoeken/onderdeelnummer/9800494077/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/zoeken/onderdeelnummer/9800494077/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }
Load
{ "Data": { "SessionId": 20, "Match": null, "Timestamp": "0001-01-01T00:00:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/onderdeel/motorcode/132/onderdeel/startmotor/onderdeelid/22434430/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/onderdeel/motorcode/132/onderdeel/startmotor/onderdeelid/22434430/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/onderdeel/motorcode/132/onderdeel/startmotor/onderdeelid/22434430/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }
LoadAlternatives
{ "Data": { "SessionId": 20, "Match": null, "Timestamp": "0001-01-01T00:00:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/onderdeel/motorcode/132/onderdeel/startmotor/onderdeelid/22434430/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/onderdeel/motorcode/132/onderdeel/startmotor/onderdeelid/22434430/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/onderdeel/motorcode/132/onderdeel/startmotor/onderdeelid/22434430/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }
Complete
{ "Data": { "SessionId": 20, "Match": null, "Timestamp": "0001-01-01T00:00:00", "UrlRawCurrent": "/auto-onderdelen-voorraad/onderdeel/motorcode/132/onderdeel/startmotor/onderdeelid/22434430/", "UrlAbsoluteCurrent": "/url_voorraad/auto-onderdelen-voorraad/onderdeel/motorcode/132/onderdeel/startmotor/onderdeelid/22434430/", "UrlAbsoluteReferer": "", "UrlReferers": [ "/auto-onderdelen-voorraad/onderdeel/motorcode/132/onderdeel/startmotor/onderdeelid/22434430/" ], "UrlSet": false, "Query": null }, "Gridview": { "Type": "Detailed", "Properties": { "Index": 1, "Size": 10, "Rows": 0, "SizeMax": 150, "SetMax": false, "GetIndexMax": 0, "GetSizeValid": true, "GetIndex": 1, "GetQuery": { "Min": 1, "Max": 10, "Rows": 10, "Offset": 0 } }, "Rows": {}, "Sort": "", "SortDirection": "Ascending", "CountryName": null, "CountryId": 0, "Remarks": true, "Images": true, "Distance": false, "Zipcode": "", "UseSortPartitioning": true } }