Find Jobs
Hire Freelancers

316088 add to select query

N/A

Đã hoàn thành
Đã đăng vào khoảng 15 năm trước

N/A

Thanh toán khi bàn giao
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.
Mã dự án: 2061887

Về dự án

1 đề xuất
Dự án từ xa
Hoạt động 12 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
Đã trao cho:
Avatar người dùng
I can do it easily . Please see PMB. Thanks
$15 USD trong 1 ngày
5,0 (54 nhận xét)
4,9
4,9

Về khách hàng

Cờ của UNITED STATES
Payson, United States
4,9
95
Thành viên từ thg 3 18, 2005

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.