create table customer
(
cname char(20) not null,
street char(30),
city char(30),
primary key(cname)
)
create table branch
create table account
(
bname char(15) not null,
bcity char(30),
assets integer,
primary key(bname),
check(assets>0)
)
(
account # char(10) not null,
(
bname char(15),
balance integer,
primary key(account#)
forigen key (bname) reference branch,
check(balance>0)
)
)
Mallika_2 0 Newbie Poster
pritaeas 2,211 ¯\_(ツ)_/¯ Moderator Featured Poster
Mallika_2 commented: is solution is correct for joining the two table? +0
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.