1
I have a query in SQL Ansi:
select * from payments as P, receipts as R
where P.created_at < CURRENT_DATE AND P.updated_at < CURRENT_DATE AND R.created_at < CURRENT_DATE AND R.updated_at < CURRENT_DATE
Precious to perform the same query in the Standard:
public function relatorioBI(){
//1 A pagar
$query = $this->newQuery();
$query->where('created_at','1');
return $this->doQuery($query, $take, $paginate);
}
I need to perform the query in both tables, and test the conditional value!
You can use DB::select!
– novic
Have some example to demonstrate???
– alexjosesilva
https://answall.com/search?q=DB%3A%3Aselect a few examples
– novic