V
V
Vanya Huk2017-05-29 21:29:56
MySQL
Vanya Huk, 2017-05-29 21:29:56

How to make 2 requests for min and max in laravel ORM?

How to return min and max value of a column in one laravel orm request?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Barmunk, 2017-05-29
@vanyahuk

SELECT MIN(id), MAX(id) FROM table

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question