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')
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community