Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. select Brand, year, a.modelType, j.carType as carType, year,
  2. transmission, cylinderCapacity, replace(replace(priceRange,'.',''),'Rp','') as priceRange, carTypeID
  3. from tableRajaMobil2 a
  4. join (
  5. select carTypeID,carType, c.modelType from CarType b
  6. JOIN modeltype c on b.modelTypeID = c.modeltypeID
  7. where b.carType <> 'default'
  8. )as j
  9. where a.carType like concat(j.carType, '%')
  10. and a.modelType like concat(j.modeltype, '%');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement