hydrazi
09-25-2009, 02:47 PM
Hello,
I am helping a client leave Access for PHP and MySQL. I am having an SQL issue right now with this statement:
SELECT
`getbankid`.OrderID,
`getbankid`.`Customer Name`,
`getbankid`.`Bank Name`,
`getbankid`.BankID,
`getbankid`.Filenumid & ((Max(Right(filesthisyear.`GCE File`,6)))+100) AS Expr1,
`getbankid`.Filenumid
FROM
`getbankid` LEFT JOIN `filesthisyear` ON `getbankid`.BankID = `filesthisyear`.Lender
GROUP BY `getbankid`.OrderID, `getbankid`.`Customer Name`, `getbankid`.`Bank Name`, `getbankid`.BankID, `getbankid`.Filenumid;
Basically, it runs, but Expr1 has a value of 0 on every record. Any ideas are greatly appreciated.
I am helping a client leave Access for PHP and MySQL. I am having an SQL issue right now with this statement:
SELECT
`getbankid`.OrderID,
`getbankid`.`Customer Name`,
`getbankid`.`Bank Name`,
`getbankid`.BankID,
`getbankid`.Filenumid & ((Max(Right(filesthisyear.`GCE File`,6)))+100) AS Expr1,
`getbankid`.Filenumid
FROM
`getbankid` LEFT JOIN `filesthisyear` ON `getbankid`.BankID = `filesthisyear`.Lender
GROUP BY `getbankid`.OrderID, `getbankid`.`Customer Name`, `getbankid`.`Bank Name`, `getbankid`.BankID, `getbankid`.Filenumid;
Basically, it runs, but Expr1 has a value of 0 on every record. Any ideas are greatly appreciated.