TOYOTA RAV4
SQL
SELECT * , KAT.URLNAME AS KATURLNAME FROM M_KATASHIKI KAT LEFT OUTER JOIN M_SHASHU SHA ON SHA.SHACODE = KAT.SHACODE AND SHA.MAKCODE = KAT.MAKCODE LEFT OUTER JOIN ( SELECT MAKCODE , SHACODE ,KATNAME AS KATNAME1 , MIN(NENSHIKIFR) AS FROMOLD, MAX(NENSHIKIFR) AS FROMNEW, MIN(NENSHIKITO) AS TOOLD, MAX(NENSHIKITO) AS TONEW FROM M_KATASHIKI KAT WHERE KAT.HYOJIFLG = 1 GROUP BY MAKCODE, SHACODE, KATNAME1 ) kts ON kts.MAKCODE= KAT.MAKCODE AND kts.SHACODE= KAT.SHACODE AND kts.KATNAME1= KAT.KATNAME WHERE SHA.URLNAME ='rav4' AND KAT.HYOJIFLG = 1 ORDER BY NENSHIKIFR,NENSHIKITO, MC,GRADE
Array
(
[rav4_30series_1] => Array
(
[NAME] => 30系
[NAMEEN] => 30series
[SHANAMEEN] => RAV4
[ORDER] => 99
[GRADE] => 全車対応
[MC] => MC前後
[MODELYEAR] => '05/11-'13/11
[YEAR] => '05/11-'13/11
[COUNT] => 0
)
[rav4_mxaa52] => Array
(
[NAME] => MXAA52
[NAMEEN] => mxaa52
[SHANAMEEN] => RAV4
[ORDER] => 99
[GRADE] => 全車対応
[MC] =>
[MODELYEAR] => '19/04-
[YEAR] => '19/04-
[COUNT] => 1
)
)
30系 '05/11-'13/11
MXAA52 '19/04-