Find Jobs
Hire Freelancers

316088 add to select query

N/A

Teljesítve
Kiadva ekkor: körülbelül 15 évvel ezelőtt

N/A

Teljesítéskor fizetve
We have a script that has an issue. The problem is if we created a work order for the same product 4 different times in a year then it's telling us to pull each item 4 times. So basically it's pulling up info for all the work orders for this product...and we need it tied to only the current work order that we are working on. The old code commented out didn't have this problem so i looked at it and i see this: LEFT JOIN work_order wo ON [login to view URL] = '$work_order_id' so that is what i think we are missing in the new code but i'm not a programmer and couldn't figure out where or how to put it. Here is the new code we have: $res_herbs = $db->query("SELECT [login to view URL], [login to view URL], [login to view URL], [login to view URL], [login to view URL], [login to view URL] FROM product p, pulling_herbs ph, lot l WHERE [login to view URL] IN ( SELECT [login to view URL] FROM pulling_herbs ph LEFT JOIN pulling g ON ph.pulling_id = [login to view URL] LEFT JOIN product p ON [login to view URL] = [login to view URL] LEFT JOIN lot l ON [login to view URL] = ph.lot_id WHERE [login to view URL] = '$sku' ) AND [login to view URL] IN ( SELECT [login to view URL] FROM pulling_herbs ph LEFT JOIN pulling g ON ph.pulling_id = [login to view URL] LEFT JOIN product p ON [login to view URL] = [login to view URL] WHERE [login to view URL] = '$sku' ) AND [login to view URL] = [login to view URL] AND [login to view URL] = ph.lot_id"); So to clarify we don't need anything taken away from the code...we just need it to only show the data that is tied to the [login to view URL] that we are currently working on.
Projektazonosító: 2061887

A projektről

1 ajánlat
Távolról teljesíthető projekt
Aktiválva: 12 évvel ezelőtt

Szeretne pénzt keresni?

A Freelancer oldalán történő árajánlatadás előnyei

Határozzon meg költségvetést és időkeretet
Kapja meg fizetését a munkáért
Vázolja ajánlatát
Ingyen regisztrálhat és adhat árajánlatot munkákra
Neki odaítélve:
Felhasználó avatár
I can do it easily . Please see PMB. Thanks
$15 USD 1 napon belül
5,0 (54 értékelés)
4,9
4,9

Az ügyfélről

UNITED STATES zászlója
Payson, United States
4,9
95
Tagság kezdete: márc. 18, 2005

Ügyfél-hitelesítés

Köszönjük! E-mailben elküldtük a linket, melyen átveheti ajándék egyenlegét.
E-mailje elküldése során valami hiba történt. Kérjük, próbálja újra.
Regisztrált Felhasználók Összes Közzétett Munka
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Előnézet betöltése
Hozzáférést adott a helymeghatározáshoz.
Belépési munkamenete lejárt, és kijelentkeztettük. Kérjük, lépjen be újra.