I have one query that I have below two tables ..
CREATE table "EMPLOYEE" (
"EMP_ID" NUMBER,
"ENAME" VARCHAR2(4000),
"SALARY" VARCHAR2(4000),
"COMPANY" VARCHAR2(4000),
"CONTACTNO." NUMBER,
"GENDER" CHAR(100),
constraint "EMPLOYEE_PK" primary key ("EMP_ID")
)
CREATE TABLE "DEPARTMENT"
(
"DEPT_ID" NUMBER,
"DEPT_NAME" VARCHAR2(4000),
"LOCATION" VARCHAR2(4000),
"CONTACTNO." NUMBER,
CONSTRAINT "DEPARTMENT_PK" PRIMARY KEY ("DEPT_ID") ENABLE
)
Now what will be the output If I write select * from EMPLOYEE,DEPARTMENT
With only a schema, nothing. If the tables had data, you’d get a cross-join of everything in each table.