Support the ongoing development of Laravel.io →
posted 7 years ago
Eloquent
Last updated 2 years ago.
0

you can break the query in to smaller queries and build it.

i'm too lazy to write the whole query for you. it would be something like this to get started with.

DB::join(DB::raw('(' . DB::table('bi000')->select('mt000.BarCode' , 'bu000.Qty')->join('mt000', 'bi000.MatGUID', '=', 'bi000.ParentGUID')->toSql() . ') as bills'))->join('FirstBegInvMyd', 'FirstBegInvMyd.BarCode', '=', 'bills.BarCode')
Last updated 7 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.