- Mon Mar 27, 2023 11:33 pm
#830473
ON SQL if there is possible to get Five Different ID on One product i have a code but nothing appears or i have something missing in my SQL
" Select IFNULL(format(sum(Amount),2),0) from tblsalesperformance where CustomerID ("","","","","") and YearCode = '2021' and MonthCodeint >= @@text0000000097 and ProductID = @#dropdown0000000005 "
ON my 2022 is a single ID but only one Customer
" Select IFNULL(format(sum(Amount),2),0) From tblsalesperformanceproduct Where UserID = @@text0000000085 and CustomerID = @#dropdown0000000005 and YearCode = '2022' "
" Select IFNULL(format(sum(Amount),2),0) from tblsalesperformance where CustomerID ("","","","","") and YearCode = '2021' and MonthCodeint >= @@text0000000097 and ProductID = @#dropdown0000000005 "
ON my 2022 is a single ID but only one Customer
" Select IFNULL(format(sum(Amount),2),0) From tblsalesperformanceproduct Where UserID = @@text0000000085 and CustomerID = @#dropdown0000000005 and YearCode = '2022' "
Attachments
(246.17 KiB) Downloaded 123 times