Link to home
Start Free TrialLog in
Avatar of chalie001
chalie001

asked on

query oracle data block with two tables

one data block named Employees  ( which is a Table )

one canvas on which you are showing its data

in menu there are options like:

  Employees

  Employees History

 

when user select Employees then first data block appear and show the data

when user select Employees History then this will show data from table Employees History ( both tables have same number of columns and column names )


create table EMPLOYEES  
(  
  employee_id    NUMBER(6) not null,  
  first_name     VARCHAR2(20),  
  last_name      VARCHAR2(25) not null,  
  email          VARCHAR2(25) not null,  
  phone_number   VARCHAR2(20),  
  hire_date      DATE not null,  
  job_id         VARCHAR2(10) not null,  
  salary         NUMBER(8,2),  
  commission_pct NUMBER(2,2),  
  manager_id     NUMBER(6),  
  department_id  NUMBER(4)  
);  
  
  
  
  
  
  
create table EMPLOYEE_HISTORY  
(  
  employee_id    NUMBER(6) not null,  
  first_name     VARCHAR2(20),  
  last_name      VARCHAR2(25) not null,  
  email          VARCHAR2(25) not null,  
  phone_number   VARCHAR2(20),  
  hire_date      DATE not null,  
  job_id         VARCHAR2(10) not null,  
  salary         NUMBER(8,2),  
  commission_pct NUMBER(2,2),  
  manager_id     NUMBER(6),  
  department_id  NUMBER(4)  
); 

Open in new window

SOLUTION
Avatar of PortletPaul
PortletPaul
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chalie001
chalie001

ASKER

where must run this union as one table is been used in data blocck already
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I what to use one data block
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial