select join distinct
$items = DB::table('item')->select('item_name')->distinct()->get();
select join distinct
$items = DB::table('item')->select('item_name')->distinct()->get();
select distinct after join
SELECT DISTINCT table1.field1, table2.field2 FROM table1
JOIN table2 ON table1.id = table2.id
inner join distinct
SELECT valueC
FROM C
INNER JOIN
(
SELECT DISTINCT lookupC
FROM B INNER JOIN
(
SELECT DISTINCT lookupB
FROM A
)
A2 ON B.id = A2.lookupB
)
B2 ON C.id = B2.lookupC
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us