Hi - thanks for your reply
Unfortunately that doesn't return any results
I don't know the 'USING' part and I can't find a reference to it in the manual - what I want to do is something like this :
SELECT t1.* FROM comm_li AS t1 INNER JOIN comm_li AS t2 ON t2.ID_Commande_Site=t1.ID_Commande_Site WHERE t2.AR_REF=t1.AR_REF
but that doesn't seem to work either
the table in question looks like this
CREATE TABLE IF NOT EXISTS `comm_li` (
`DO_Piece` varchar(9) NOT NULL,
`ID_Commande_Site` int(11) NOT NULL,
`AR_REF` varchar(19) NOT NULL,
`AR_PrixHT` decimal(6,2) NOT NULL,
`QUANTITE` decimal(6,2) NOT NULL,
KEY `AR_REF` (`AR_REF`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `comm_li` (`DO_Piece`, `ID_Commande_Site`, `AR_REF`, `AR_PrixHT`, `QUANTITE`) VALUES
('298378', 258377, '02PACA_PANI', '3.50', '1.00');
does anyone have any other ideas ?