chenchomelo
Technical User
Is it possible to create queries using different databases?
I created the following query thinking it would be possible but it didn't work. DB 1 is called menagerie, DB 2 is called sampdb.
SELECT menagerie.pet.name, menagerie.pet.birth,
sampdb.president.last_name, sampdb.president.birth
FROM menagerie.pet, sampdb.president
WHERE MONTH(menagerie.pet) = MONTH(sampdb.president);
I created the following query thinking it would be possible but it didn't work. DB 1 is called menagerie, DB 2 is called sampdb.
SELECT menagerie.pet.name, menagerie.pet.birth,
sampdb.president.last_name, sampdb.president.birth
FROM menagerie.pet, sampdb.president
WHERE MONTH(menagerie.pet) = MONTH(sampdb.president);