create table bok( isbn varchar(13) not null, tittel varchar(50), forfatter varchar(50), sider int check(sider>0), primary key (isbn) );
og
insert into bok values('0-8053-7565-1','A practical guide to the UNIX system','Mark G. Sobell',800); insert into bok values('0-201-34287-1','Database systems','Connoly, Strachan, Begg',1094); insert into bok values('82-91915-21-0','Datamodellering-praksis og teori','Edgar Bostrøm',151); insert into bok values('1-55950-106-5','Secrets of a super hacker',NULL,205);
gir:
select * from bok; select tittel, sider from bok where sider > 750; select * from bok where forfatter is null;
gir: