Find Jobs
Hire Freelancers

need help on SQL query

$30-250 USD

In Progress
Posted almost 14 years ago

$30-250 USD

Paid on delivery
This should be a pretty easy project for someone with a working knowledge of SQL. I need guidance on how to correct a query. If you can tell me how to correct my query, I will gladly consider that completion of the project. BACKGROUND: We use an inventory system called Fishbowl inventory. I have created a custom sales report using a program called iReport. The query pulls data from a sales order, sales order line, and payments. When there is one payment applied to the sales order, the report looks fine. However, when multiple payments have been made, the sales order lines are duplicated. If two payments are made, each line is repeated twice. If three payments are made, each line is repeated three times. etc, etc, etc... I have tried some aggregate functions and the DISTINCT key word, but I cannot get this to work. I believe the issue is in how the payment table is being queried: "......COALESCE([login to view URL], 0) AS "POSAmount ....." I have attached a sample report where the duplication is happening. I have also attached the query text itself. If you can tell me how to modify the query on my end, I would consider the job complete. I can modify and test here locally, so no configuration is needed on your end.
Project ID: 748853

About the project

10 proposals
Remote project
Active 14 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
10 freelancers are bidding on average $64 USD for this job
User Avatar
Please check the PMB. ready to start
$55 USD in 1 day
4.9 (186 reviews)
8.0
8.0
User Avatar
Hi, please, check your PM
$50 USD in 0 day
5.0 (329 reviews)
7.5
7.5
User Avatar
hello, check pmb, please
$50 USD in 1 day
4.9 (71 reviews)
6.9
6.9
User Avatar
i can do it
$70 USD in 2 days
4.9 (107 reviews)
6.3
6.3
User Avatar
Hi, Please check PM. Regards.
$100 USD in 0 day
4.2 (54 reviews)
6.1
6.1
User Avatar
Please give me the details. i will correct your queries..
$150 USD in 2 days
5.0 (5 reviews)
5.0
5.0
User Avatar
Hi, please check PMB.
$40 USD in 1 day
5.0 (14 reviews)
4.7
4.7
User Avatar
.....please see PM....
$75 USD in 1 day
4.5 (3 reviews)
3.5
3.5
User Avatar
i can do it .. now a days i m work on sql with concern to the oracle.(orasoft) which is very famous among sql programmers
$70 USD in 15 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Brooklyn, United States
5.0
5
Payment method verified
Member since Oct 5, 2009

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.