The SQL SELECT DISTINCT Statement

Posted 2 years ago by sanainfotech

Hi I want to run a query just give me value with no duplicate.

What would be the query in laravel 5 using eloquent.

SQL query:

SELECT DISTINCT column_name
FROM table_name;
SELECT DISTINCT `ad_advertiser` FROM `adverts`

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.