Join Examples

Back to Test Home
Click on a button to view the detail about the specific query type



The tables used in these examples are defined as follows:
    CREATE TABLE "dbo"."EMPLOYEES" (
    	"id" "int" IDENTITY (1, 1) NOT NULL ,
    	"emp_number" "int" NOT NULL ,
    	"full_name" "varchar" (50) NOT NULL 
    ) ON "PRIMARY"
    GO
    
    CREATE TABLE "dbo"."EMPLOYEE_COURSES" (
    	"id" "int" IDENTITY (1, 1) NOT NULL ,
    	"employee_id" "int" NOT NULL ,
    	"course" "varchar" (30) NOT NULL 
    ) ON "PRIMARY"
    GO
    
    CREATE TABLE "dbo"."EMPLOYEE_OFFICES" (
        "id" "int" identity(1, 1) NOT NULL
        , "employee_id" "int" NOT NULL
        , "office_location" "varchar"(10) NOT NULL
        , "building" "varchar"(10) NOT NULL
    )
    GO