Find Jobs
Hire Freelancers

MySQL Query problem

$10-30 USD

Closed
Posted 2 months ago

$10-30 USD

Paid on delivery
My query below doesnt work i need [login to view URL] AS order_total BUT ONLY WHEN [login to view URL] = 'ot_total' and i also need [login to view URL] AS shipping_method BUT ONLY WHEN [login to view URL] = 'ot_shipping' my strategy below failed as it seems i can only use the [login to view URL] condition in the normal WHERE clause near the bottom i.e WHERE o.orders_status = s.orders_status_id AND s.language_id = '1' AND [login to view URL] = 'ot_total' however this means [login to view URL] will return data for the ot_total class but i want it for the ot_shipping class im simply trying to add 2 conditions 1. return [login to view URL] AS order_total for the [login to view URL] = 'ot_total' 2. return [login to view URL] AS shipping_method for the [login to view URL] = 'ot_shipping' i dont want [login to view URL] for [login to view URL] = 'ot_total' so help me ? is this not possible or do i have to execute a completely sepearate query?? that seems a waste of code and resources... i know i can do it in 2 seperate queries but i am tryin to combine it in one query thanks SELECT o.orders_id, o.customers_name, o.payment_method, o.payment_module, o.date_purchased, o.last_modified, [login to view URL], o.currency_value, s.orders_status_name, [login to view URL] AS order_total WHERE [login to view URL] = 'ot_total', [login to view URL] AS shipping_method WHERE [login to view URL] = 'ot_shipping' FROM `orders` o LEFT JOIN `orders_total` ot ON (o.orders_id = ot.orders_id), `orders_status` s WHERE o.orders_status = s.orders_status_id AND s.language_id = '1' ORDER BY o.orders_id DESC
Project ID: 37830279

About the project

51 proposals
Remote project
Active 1 mo 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
51 freelancers are bidding on average $60 USD for this job
User Avatar
I know exactly how to get around with such situation and how to make this query work. Please get in touch over chat and i will share details
$40 USD in 7 days
5.0 (44 reviews)
7.5
7.5
User Avatar
Hi I read your project's description and would like you to help with it. I have more then 12 years of expertise in PHP and MYSQL. Message me in PM so we can start, looking forward to it. Check my profile and reviews to understand the quality of work i delivered before. Thanks Sam
$10 USD in 1 day
5.0 (193 reviews)
7.2
7.2
User Avatar
Hi, I am a Database professional with 10+ years of experience in database technology.I had a good experience as a freelancer with Best quality and on time delivery of services as per requirement. I believe Freelancer would be the Best platform to prove myself in reaching Client satisfaction. Thank you so much for going through my profile. Please reach out to me for any assistance. Thanks
$38 USD in 1 day
4.8 (209 reviews)
7.6
7.6
User Avatar
Hi, have you tried to use select subquery inside your select, like you wrote but the syntax isn't correct? If you are interested, feel free to message me and i will try to help immediately. I am available right now. Thanks, Milan
$20 USD in 1 day
5.0 (393 reviews)
7.0
7.0
User Avatar
Hi, The query needs to modify..then will see result as require. I need both that tables..then will show you result. I am Wordpress,PHP programmer having 10 years of experience. I am very good in wordpress,php,mysql,joomla.
$30 USD in 1 day
4.8 (548 reviews)
7.4
7.4
User Avatar
Hello, I'm web developer, I have 10+ years experience in html, css, jquery, php, laravel, api, wordpress, joomla,.... I'll give you best quality and support :) Please discuss, thank you!
$35 USD in 7 days
4.9 (211 reviews)
7.3
7.3
User Avatar
HI! I am an expert web programmer. I have a lot of work experience in Laravel, Codeigniter, PHP, Wordpress, JavaScript, HTML, Vuejs, Reactjs, React Native, and MySQL. I can start right away. I want to discuss this project in detail. Please contact me to discuss more regarding this project. For more details Chat with me
$30 USD in 1 day
4.9 (144 reviews)
7.1
7.1
User Avatar
I have some questions in relation to the specifications of the project. Could we please have a word? My Skills: SQL, Database Programming, MySQL and PHP
$10 USD in 10 days
4.7 (167 reviews)
7.1
7.1
User Avatar
Hello, I am a software developer with more than 8 years of experience, specialized in web and mobile application development. Im an mysql expert I can help you whit the query. Thank you. Matias.
$20 USD in 1 day
4.9 (59 reviews)
5.2
5.2
User Avatar
Hi There, I am a database development expert. I have great working exposure on Oracle, MYSQL, complex SQL queries, joins, query optimisation, procedures, packages, functions, triggers etc. I have delivered many projects successfully related with database requirements. I can quickly start work on your requirement. Feel free to contact me to discuss further on your requirement.
$20 USD in 1 day
4.9 (24 reviews)
4.8
4.8
User Avatar
Hi there, I'm interested in your project and eager to help. Your confidence in my ability to complete this task easily is greatly appreciated. Please share the the tables. Rest assured, I'll ensure good progress and deliver excellent results. I'm looking forward to working on this project and demonstrating my capabilities. Your satisfaction is my priority. Thank you for considering me for this opportunity. Best regards, Asif
$30 USD in 1 day
4.9 (25 reviews)
4.6
4.6
User Avatar
As a highly experienced and versatile developer, I assure you that I can confidently tackle your current MySQL query problem. I specialize in Database Programming, MySQL, PHP, and SQL - all the skills needed to resolve your issue effectively. With my deep understanding of complex database structures, I'm sure we can merge your separate queries into one cohesive and efficient one, maximizing code economy and resource allocation. Throughout my career, I have encountered numerous challenges similar to yours and found creative solutions without alienating the primary project objectives. This blend of technical proficiency and analytical thinking will enable me to craft a query that successfully accommodates both of your required conditions. No data will go missing and no resources will be wasted. In addition to my skill set, working with me guarantees efficient communication, prompt responses, and respect for time deadlines. I value client satisfaction above all else and extend a 30 days money-back guarantee showing my determination to deliver nothing but high-quality work that exceeds your expectations.I look forward to efficiently handling your task while maintaining utmost quality. Let's get started converting this waste of resources into an elegant single-query solution!
$20 USD in 7 days
5.0 (12 reviews)
4.4
4.4
User Avatar
Hello, I've checked your project description right now. I really excite for your project purpose. Because I feel very confidence in your project and I can finish project asap in according to your requirements. Please contact me for more discussion. Thanks for job posting.
$30 USD in 1 day
4.6 (7 reviews)
4.1
4.1
User Avatar
As an experienced Database Programmer with a strong proficiency in MySQL and PHP, I am confident I can help you solve your query issues while keeping your code efficient. My first step would be to restructure the problematic part of your query by leveraging subqueries which will enable us to include the additional conditions smoothly. This approach eliminates the need for extra resources or separating the query into two separate ones. I believe in optimizing code as it leads to better performance. Additionally, my skills as a Data Entry professional allow me to understand and analyze complex datasets- an essential factor when working with queries like yours. I ensure a meticulous approach towards the segregation of data where selecting information based on precise checks like yours does not require redundant queries. By combining my database programming skills, meticulous attention to detail, and experience with data handling on various platforms using Microsoft Office, Transcription, Web Search, etc., I am confident in providing you with an optimal solution for your query.
$20 USD in 1 day
4.8 (5 reviews)
3.4
3.4
User Avatar
As an experienced Full Stack developer with over 8+ years in the industry, I have worked extensively with database programming and SQL, which makes me a perfect fit for your MySQL query problem. I understand your frustration and the desire to combine the conditions into one query instead of running separate queries. Rest assured, I have dealt with similar complex situations before, and I know how to craft an efficient solution while maintaining code quality and resource optimization. Being proficient in various JavaScript frameworks, including Node.js on the backend, helps me not only understand the problem statement but also allows me to leverage my grasp on SQL to provide creative solutions. I'm fully confident that I can design a single query that meets your requirements without compromising performance or writing additional lines of code. In addition to my technical skills, my commitment to timely deliver outstanding project results has always earned me clients' trust and satisfaction. My goal is not just to get the job done but also to ensure the final output exceeds your expectations. Let's make your MySQL queries more manageable, efficient and bring you one step closer to successful application development!
$15 USD in 2 days
3.2 (3 reviews)
2.0
2.0
User Avatar
Hi, I have gone through your description. This is my area of specialization, and I can complete it 100 % perfectly. Please ping me in person. I can help you to complete all tasks. I have hands-on experience in this field. I have already done similar types of projects. Connect with me for more details. Rest assured your satisfaction is guaranteed. Looking forward to your response.
$20 USD in 1 day
5.0 (2 reviews)
0.5
0.5
User Avatar
Hi there. As an experienced PHP,Laravel,React,MySQL specialist with a deep understanding of site configuration and diagnosing plugin errors, I am well-equipped to address this challenge swiftly and effectively. My experience with PHP development spans 5 years, during which I have encountered and successfully resolved numerous related issues. While I have specifically worked this issue before and my proficiency in debugging and troubleshooting various PHP issues allows me to quickly get up to speed and identify the root cause of the problem. ✔ I will thoroughly examine the error logs and conduct a comprehensive review of your site's configuration to pinpoint the exact cause of the run issue and I will propose a suitable solution tailored to your specific situation. ✔ After confirm the solution, I will rigorously test it to ensure that it addresses the issue effectively without causing any unintended side effects. ✔ I will commit to delivering results promptly and effectively, with a focus on minimizing run time and ensuring the seamless operation of your website. I can start work right now and I will support full time developing and good communication. I look forward to the opportunity to work with you and restore your website to its full functionality and I will create something exceptional together.
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
❤❤❤ Dear client ❤❤❤ As you can see in my profile,it's a piece of cake for me. I succeed the similar task a few days before. Please send me message so that i can start now...
$20 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I can complete this for you within an hour, message me or hire me to start. :) i have time to get it done right away. Hello! I am Moe from Time2sync, and I understand your frustrations about the MySQL query. Allow me to alleviate your concerns and find an optimal solution for you. Pitch: With extensive expertise in MySQL, PHP, and database management, I am well-positioned to solve your query challenge while maximizing code efficiency and avoiding wastage of resources. My approach centers around comprehensively understanding your code architecture to ensure smoother integration of functions. At Time2sync, we don't just write codes; we tailor them to fit your unique needs. This underscores our customer-centric approach and ability to deliver robust solutions that align perfectly with client expectations. I assure you that despite the complexity of this issue, combining the conditions in a single query is indeed possible - without impacting functionality or performance. Drawing on my experience in full-stack development and solid knowledge of different platforms including Linux servers, ASP.net, C#, and web development with HTML and PHP, I will ensure these combined conditions make perfect sense in your final result. Partner with me today, and let's explore ingenious ways to enhance your queries' efficiency while maintaining a clean codebase. Consider it done - expertly!
$49 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hey, how's it going? I have read the query and I think it can be solved by using CTE. If you agree, I can do it. I just need a sample data to validate the query result. It doesn't have to be the real data, but a sample to make sure I understood the case.
$30 USD in 4 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED KINGDOM
Clydebank, United Kingdom
4.9
28
Payment method verified
Member since Aug 17, 2010

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.