Find Jobs
Hire Freelancers

Help with mysql query

$10-30 USD

Completed
Posted over 5 years ago

$10-30 USD

Paid on delivery
I need someone freelancer to help me to fix the query below: select count(distinct p.products_id) as total from (products p) left join manufacturers m on (m.manufacturers_id=p.manufacturers_id) left join specials s on p.products_id = s.products_id left join tax_rates tr on p.products_tax_class_id = tr.tax_class_id left join zones_to_geo_zones gz on tr.tax_zone_id = gz.geo_zone_id and (gz.zone_country_id is null or gz.zone_country_id = '0' or gz.zone_country_id = '30') and (gz.zone_id is null or gz.zone_id = '0' or gz.zone_id = '188'), products_description pd, categories c, products_to_categories p2c where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '4' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and (case when [login to view URL] = '1' then (s.specials_new_products_price+(s.specials_new_products_price *(REPLACE(tr.tax_description, '%', '') /100))) else (p.products_price+(p.products_price *(REPLACE(tr.tax_description, '%', '') /100)) end) >= '112.639') and tr.tax_class_id = p.products_tax_class_id and p.products_id in (257,258,259,260,261,1,6,57,117,5,90,275,278,279) obs.: the error message follows on attachment.
Project ID: 17566468

About the project

29 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi 112.639 is a number not string Remove quotes from it
$10 USD in 1 day
5.0 (6 reviews)
2.8
2.8
29 freelancers are bidding on average $20 USD for this job
User Avatar
hello, i understand your requirements... please contact me or accept my bid so that we can discuss more and start soon... i m expert in this type of projectInfo... u can also see my portfolio... please, give me a chance to fulfil your requirements.. hope u will do i m waiting for your response.. thank you.. :)
$15 USD in 0 day
5.0 (518 reviews)
7.6
7.6
User Avatar
Hi, Hope you will be doing well!! Looking forward to discuss the project with you in detailed and get started. Thanks!!
$30 USD in 1 day
4.8 (120 reviews)
6.7
6.7
User Avatar
I am having experience from past 9+ years & completed 120+ projects in PHP & MTSQL development. I can easily achieve the results that you are asking for. Looking forward from your end. Thanks
$25 USD in 1 day
4.8 (71 reviews)
6.4
6.4
User Avatar
Hi, I would like to solve the syntax error in this query. Get in touch to discuss more. Available to start now. Regards, Manish
$13 USD in 0 day
4.9 (129 reviews)
6.3
6.3
User Avatar
Hi there. I see an error in your query and I know how to fix it. Message me - I'm online and can do that now. Regards.
$30 USD in 1 day
5.0 (74 reviews)
5.8
5.8
User Avatar
Hi, Didn't you missing the ) in the end of line 6 of your sql command image... Let me know if you have still issue... Regards
$25 USD in 1 day
4.9 (21 reviews)
4.7
4.7
User Avatar
Hi, I can do this work, ping me for more details...
$25 USD in 1 day
4.8 (27 reviews)
4.4
4.4
User Avatar
Hi, I can help you with your query. It looks like you have an extra paren ")". Also, need to check the formula, something seems ambiguous... Hope we can work together... EDIT: I think I have it done. Indeed, looks like a paren issue... I would like you to test the fix...
$15 USD in 1 day
5.0 (12 reviews)
3.8
3.8
User Avatar
Hello my friend, give me your phpmyadmin credentials and i’ll help you really quick. I’m an expert mysql dev
$10 USD in 1 day
5.0 (6 reviews)
3.6
3.6
User Avatar
can do
$10 USD in 1 day
3.3 (21 reviews)
4.9
4.9
User Avatar
I am a Data Scientist with 3+ years of experience. I am comfortable in SQL along with various other tech. I can help you with this and provide full explanation of the fixes done. Relevant Skills and Experience SQL Data Scientist
$20 USD in 1 day
4.2 (1 review)
2.4
2.4
User Avatar
Dear Client, I have seen your query, I will help for solve query from our end. Thanks & Regards, Marmik Patel
$12 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello dear contractor, I have plenty experience working with mysql queries, Just by looking at the image with the error, I'm pretty sure I can fix the error you have in your query in no time. It'd be good if I could connect to your computer or have access to the tables (could be a demo with sample data) so I can test what I think will fix the issue. If you're interested let me know so we can fix this ASAP. Looking forward to your positive response. Regards,
$30 USD in 0 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I think i can help you. Can you tell me objective of this sql(means:output)so that i can solve it faster. Thank you
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi sir, you just simply misplaced ) sign. Please let me contact me sir, i will give you correct SQL query. I have finished correcting your SQL query...
$10 USD in 0 day
5.0 (1 review)
0.0
0.0
User Avatar
Hi, I got the problem and I can help you to fix it. Because something got mixed up, It only requires a minute to solve it. Please contact me in private for the solution.
$10 USD in 0 day
0.0 (0 reviews)
0.0
0.0
User Avatar
i think there is a minor error..u are having an extra parenthesis
$10 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of BRAZIL
Brasília, Brazil
5.0
77
Payment method verified
Member since Dec 11, 2016

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.