create table customer
(cust_id integer not null,
cust_name char(20) not null ,
cust_address varchar2(200) ,
emp_id integer not null,
constraint pk_customer primary key(cust_id)
);
create table account
(account_number integer not null,
account_balance number(8,2) not null,
constraint pk_acount primary key(account_number)
);
create table has
(cust_id integer not null,
account_number integer not null,
constraint pk_has primary key(cust_id, account_number)
);
alter table has
add constraint fk_account_has foreign key(account_number)
references account(account_number);
alter table has
add constraint fk_customer_has foreign key(cust_id)
references customer(cust_id);
alter table customer
add constraint fk_employee_customer foreign key(emp_id)
references employee(emp_id);
Q1 Показать всю информацию о клиентах с номером счета 101 и номером счета 102
Q2 Показать номера счетов и идентификаторы клиентов для всех клиентов с остатком на счете более 500.
Q3 Показать всю информацию о клиентах с остатками на счетах, отличными от 500.