Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- `Vehicle.where(vin_status: :invalid).where('vin in (?)', reload_vins)`.
- Vehicle.where(vin_status: :invalid)
- .joins("
- join temp_cars.reload_cars tcar
- on tcar.vin = vehicles.vin
- where tcar.registration_id is not null
- ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement