DAIHATSU MIRA eS
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 ='mira_es' AND KAT.HYOJIFLG = 1 ORDER BY NENSHIKIFR,NENSHIKITO, MC,GRADE
Array
(
[mira_es_la300s_310s_1] => Array
(
[NAME] => LA300S/310S
[NAMEEN] => LA300S/310S
[SHANAMEEN] => MIRA eS
[ORDER] => 30
[GRADE] => 全車対応
[MC] => MC前後
[MODELYEAR] => '11/09-'17/05
[YEAR] => '11/09-'17/05
[COUNT] => 0
)
[mira_es_la350s_1] => Array
(
[NAME] => LA350S/360S
[NAMEEN] => LA350S/360S
[SHANAMEEN] => MIRA eS
[ORDER] => 30
[GRADE] => 全車対応
[MC] =>
[MODELYEAR] => '17/05-
[YEAR] => '17/05-
[COUNT] => 1
)
)
LA300S/310S '11/09-'17/05
LA350S/360S '17/05-