J'ai trois tables existante tel que :
Code : Tout sélectionner
CREATE TABLE enumereintituleprestation
-- This table created by SQLite2008 Pro Enterprise Manager
-- Osen Kusnadi - http://www.osenxpsuite.net
-- Created date: 2008-02-26 16:23:31
(
idIntitule INTEGER PRIMARY KEY autoincrement ,
NomIntitule TEXT,
DesignationIntitule TEXT
);
INSERT INTO "enumereintituleprestation" VALUES(1,'Forfait 1','Pose d'ongle');
CREATE TABLE enumerenbrepiece
-- This table created by SQLite2008 Pro Enterprise Manager
-- Osen Kusnadi - http://www.osenxpsuite.net
-- Created date: 2008-02-26 16:23:31
(
idPiece INTEGER PRIMARY KEY autoincrement ,
TitrePiece TEXT
);
INSERT INTO "enumerenbrepiece" VALUES(1,'Maillot un piece');
CREATE TABLE enumereprixforfait1
-- This table created by SQLite2008 Pro Enterprise Manager
-- Osen Kusnadi - http://www.osenxpsuite.net
-- Created date: 2008-02-26 16:23:32
(
id INTEGER PRIMARY KEY autoincrement ,
idIntitule INTEGER,
idPiece INTEGER,
PrixTtc REAL
);
INSERT INTO "enumereprixforfait1" VALUES(1,2,1,220);Code : Tout sélectionner
SELECT A.PrixTtc as `PrixTtc`,B.TitrePiece as `TitrePiece`,C.NomIntitule as `NomIntitule`,C.DesignationIntitule as `DesignationIntitule`
FROM enumereprixforfait1 as `A`
INNER JOIN enumerenbrepiece as `B` ON A.idPiece=B.idPiece
INNER JOIN enumereintituleprestation as `C` ON A.idIntitule=C.idIntitule
Est ce possible en une seule et meme requete.
Merci à tous*