The SQL SELECT DISTINCT Statement

Posted 3 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.

Reply to

Use Markdown with GitHub-flavored code blocks.