Question : SQL Query

Below is a simplified version of the query I'm working with. When the query is not joined to the Payments table everything works fine, and only one row is returned. However, the query below is joined to the Payments table, and returns 2 rows exactly identicle. What can I do to show DISTINCT rows. I tried using DISTINCT in front of SUM but that doesn't do any good. I tried grouping by InvNo, but that does nothing either. Any other advice?

SELECT SUM(Invoices.InvAmt)
FROM Invoices LEFT OUTER JOIN Payments ON Payments.InvNo = Invoices.InvNo
WHERE Invoices.InvNo = 123456

Answer : SQL Query

you can set visibility through style

document.getElementById('idofelement').style.display("none"); //hide element
document.getElementById('idofelement').style.display(""); //display element

css display will make the element invisible and also hide it from the page so elements will shift as if the element you hid was gone from the page

document.getElementById('idofelement').style.visibility("hidden"); //hide element
document.getElementById('idofelement').style.visibility("visible"); //display element

css visibility will make the item invisible, but it will still hold it's place on the page

for example if you had 3 images, and you used css display property to hide the middle image, the third image would move to be next to the first image, as if there was no 2nd image there. If you used visibility to hide the middle image, then the middle image would disappear and it would look like there was an empty space the size of the middle picture between pictures 1 and 3
Random Solutions  
 
programming4us programming4us