Query : display column1 with column2
SELECT vendeur.nom as "vendeur",vendeur.nom as "Superviseur"
From vendeur
Where numero = numeroSuperviseur;
Hi everyone , im new here and i encounter some probleme as this one above.
What i want to do is the result looks like this (image)
But i don't know why my code is wrong
This is my insert INTO
INSERT INTO `vendeur` VALUES (5,'Judith',NULL);
INSERT INTO `vendeur` VALUES (4,'Pierre',5);
INSERT INTO `vendeur` VALUES (1,'Renaud',4);
INSERT INTO `vendeur` VALUES (2,'Favreau',4);
INSERT INTO `vendeur` VALUES (3,'Hachette',5);
This is my table Vendeur :
CREATE TABLE vendeur(
numero int PRIMARY KEY,
nom VARCHAR (50),
numeroSuperviseur int REFERENCES vendeur(numero)
);
PS : The result is in French.
Thanks for your help