Beruflich Dokumente
Kultur Dokumente
*/
/*
InstPubs.SQL - Creates the Pubs database
*/
/*
*/
/*
** Copyright Microsoft, Inc. 1994 - 2000
** All Rights Reserved.
*/
SET NOCOUNT ON
GO
set nocount
on
set dateformat mdy
USE master
declare @dttm varchar(55)
select @dttm=convert(varchar,getdate(),113)
raiserror('Beginning InstPubs.SQL at %s ....',1,1,@dttm) with
nowait
GO
if exists (select * from sysdatabases where name='pubs')
begin
raiserror('Dropping existing pubs database ....',0,1)
DROP database pubs
end
GO
CHECKPOINT
go
raiserror('Creating pubs database....',0,1)
go
/*
Use default size with autogrow
*/
CREATE DATABASE pubs
GO
CHECKPOINT
GO
USE pubs
GO
if db_name() <> 'pubs'
varchar(40)
varchar(20)
NOT NULL,
NOT NULL,
phone
char(12)
NOT NULL
DEFAULT ('UNKNOWN'),
address
city
state
varchar(40)
varchar(20)
char(2)
NULL,
NULL,
NULL,
zip
char(5)
NULL
contract
bit
NOT NULL
GO
CREATE TABLE publishers
(
pub_id
char(4)
NOT NULL
varchar(40)
varchar(20)
char(2)
NULL,
NULL,
NULL,
country
varchar(30)
NULL
DEFAULT('USA')
)
GO
varchar(80)
NOT NULL,
type
char(12)
NOT NULL
DEFAULT ('UNDECIDED'),
pub_id
char(4)
NULL
REFERENCES publishers(pub_id),
price
advance
royalty
ytd_sales
notes
money
money
int
int
varchar(200)
pubdate
datetime
NULL,
NULL,
NULL,
NULL,
NULL,
NOT NULL
DEFAULT (getdate())
GO
CREATE TABLE titleauthor
(
au_id
id
REFERENCES authors(au_id),
title_id
tid
REFERENCES titles(title_id),
au_ord
royaltyper
tinyint
int
NULL,
NULL,
GO
CREATE TABLE stores
(
stor_id
char(4)
NOT NULL
stor_name
stor_address
city
state
zip
varchar(40)
varchar(40)
varchar(20)
char(2)
char(5)
NULL,
NULL,
NULL,
NULL,
NULL
GO
CREATE TABLE sales
(
stor_id
char(4)
NOT NULL
REFERENCES stores(stor_id),
ord_num
ord_date
qty
payterms
varchar(20)
datetime
smallint
varchar(12)
title_id
tid
NOT
NOT
NOT
NOT
NULL,
NULL,
NULL,
NULL,
REFERENCES titles(title_id),
CONSTRAINT UPKCL_sales PRIMARY KEY CLUSTERED (stor_id,
ord_num, title_id)
)
GO
CREATE TABLE roysched
(
title_id
tid
REFERENCES titles(title_id),
lorange
hirange
royalty
int
int
int
NULL,
NULL,
NULL
GO
CREATE TABLE discounts
(
discounttype
varchar(40)
stor_id
NOT NULL,
char(4) NULL
REFERENCES stores(stor_id),
lowqty
highqty
discount
smallint
smallint
dec(4,2)
NULL,
NULL,
NOT NULL
GO
CREATE TABLE jobs
(
job_id
smallint
IDENTITY(1,1)
varchar(50)
NOT NULL
tinyint
NOT NULL
tinyint
NOT NULL
GO
CREATE TABLE pub_info
(
pub_id
char(4)
NOT NULL
REFERENCES publishers(pub_id)
CONSTRAINT UPKCL_pubinfo PRIMARY KEY CLUSTERED,
logo
pr_info
image
text
GO
CREATE TABLE employee
NULL,
NULL
emp_id
empid
CONSTRAINT PK_emp_id PRIMARY KEY NONCLUSTERED
[FM]'),
fname
minit
lname
varchar(20)
char(1)
varchar(30)
NOT NULL,
NULL,
NOT NULL,
job_id
smallint
NOT NULL
DEFAULT 1
REFERENCES jobs(job_id),
job_lvl
tinyint
DEFAULT 10,
pub_id
char(4)
NOT NULL
DEFAULT ('9952')
REFERENCES publishers(pub_id),
hire_date
)
datetime
NOT NULL
DEFAULT (getdate())
GO
raiserror('Now at the create trigger section ...',0,1)
GO
CREATE TRIGGER employee_insupd
ON employee
FOR insert, UPDATE
AS
--Get the range of level for this job type from the jobs table.
declare @min_lvl tinyint,
@max_lvl tinyint,
@emp_lvl tinyint,
@job_id smallint
select @min_lvl = min_lvl,
@max_lvl = max_lvl,
@emp_lvl = i.job_lvl,
@job_id = i.job_id
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.
This is sample text data for New Moon Books, publisher 0736 in
the pubs database. New Moon Books is located in Boston,
Massachusetts.')
insert pub_info values('0877',
0x4749463839618B002F00B30F000000008000000080008080000000808000800
08080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F904
0100000F002C000000008B002F004004FFF0C949ABBD38EBCDBBFFA0048464089
CE384A62BD596309CC6F4F58A287EBA79ED73B3D26A482C1A8FC8A47249FCCD76
BC1F3058D94135579C9345053D835768560CFE6A555D343A1B6D3FC6DC2A377E6
6DBA5F8DBEBF6EEE1FF2A805B463A47828269871F7A3D7C7C8A3E899093947F66
6A756567996E6C519E167692646E7D9C98A42295ABAC24A092AD364C737EB15EB
61B8E8DB58FB81DB0BE8C6470A0BE58C618BAC365C5C836CEA1BCBBC4C0D0AAD6
D14C85CDD86FDDDFAB5F43A580DCB519A25B9BAE989BC3EEA9A7EBD9BF54619A7
DF8BBA87475EDA770D6C58B968C59A27402FB99E2378FC7187010D5558948B15C
C58B4E20CE9A762E62B558CAB86839FC088D24AB90854662BCD60D653E832BBD7
924F49226469327FDEC91C6AD2538972E6FFEE429720D4E63472901251A33A9D2
8DB47A5A731A7325D56D50B36ADDAA2463D5AF1EAE82F5F84FAA946656AA21AC3
1D0C4BF85CBA87912D6D194D4B535C5DDDBA93221CB226D022E9437D89C594305
FD321C0CB7DFA5C58223036E088F3139B9032563DD0BE66D2ACD8B2BCB9283CED
EE3C6A53EE39BA7579A62C1294917DC473035E0B9E3183F9A3BB6F7ABDE608B01
8800003B,
'This is sample text data for Binnet & Hardley, publisher 0877 in
the pubs database. Binnet & Hardley is located in Washington,
D.C.
This is sample text data for Binnet & Hardley, publisher 0877 in
the pubs database. Binnet & Hardley is located in Washington,
D.C.
This is sample text data for Binnet & Hardley, publisher 0877 in
the pubs database. Binnet & Hardley is located in Washington,
D.C.
This is sample text data for Binnet & Hardley, publisher 0877 in
the pubs database. Binnet & Hardley is located in Washington,
D.C.
This is sample text data for Binnet & Hardley, publisher 0877 in
the pubs database. Binnet & Hardley is located in Washington,
D.C.')
insert pub_info values('1389',
0x474946383961C2001D00B30F000000008000000080008080000000808000800
08080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F904
0100000F002C00000000C2001D004004FFF0C949ABBD38EBCDBBFF60288E1C609
E2840AE2C969E6D2CCFB339D90F2CE1F8AEE6BC9FEF26EC01413AA3F2D76BAA96
C7A154EA7CC29C449AC7A8ED7A2FDC2FED25149B29E4D479FD55A7CBD931DC35C
FA4916171BEFDAABC51546541684C8285847151537F898A588D89806045947491
757B6C9A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A95A6A3E64169923B0901A775B756
6B25D7F8C888A5150BE7B8F93847D8DC3C07983BEBDC1878BCFAF6F44BBD0AD71
C9CBD653BFD5CEC7D1C3DFDB8197D8959CB9AAB8B7EBEEEFF0BA92F1B6B5F4A0F
6F776D3FA9EBCFD748C01DCB4AB5DBF7C03CF1454070F61423D491C326BA18E21
1081250C7AB12867619825F37F2ECE1168AC242B6A274556D121D28FA46C11E78
564C5B295308F21BBF5CAD6CCE52C7018813932C4ED5C517346B7C1C268336834
9D49A19D0439D31538A452A916135A0B19A59AAB9E6A835A0EABD00E5CD11D1D4
78C1C59714053AA4C4955AB4B9956879AB497F62E1CBA2373DA25B752239F8787
119390AB5806C74E1100003B,
'This is sample text data for Algodata Infosystems, publisher
1389 in the pubs database. Algodata Infosystems is located in
Berkeley, California.
This is sample text data for Algodata Infosystems, publisher 1389
in the pubs database. Algodata Infosystems is located in
Berkeley, California.
This is sample text data for Algodata Infosystems, publisher 1389
2C6AA89899B68588961C5B82C366693359F1CA89ACACB959971D76F6E6607B6E4
10E9D57B1A9196A52BDD56636CC08BA519C5E1EDA8743688906DA9D53F2E36799
9656A96292E2781397A6264E62A04E25FE49A59354696958409B11F527639DEAC
84E7795553A9AACA85C68E8977D2A7919A5A7F83329A46F0D79698BF60D98688C
CC118A6C3F8F38E6D89C8C12F635E49145F6132D69DCCE684725FC0546C3B4087
5D79E70A5867A8274E69E8BAEAC1FEEC02E92EE3AA7ADA015365BEFBE83F2EB6F
351100003B,
'This is sample text data for Five Lakes Publishing, publisher
1622 in the pubs database. Five Lakes Publishing is located in
Chicago, Illinois.
This is sample text data for Five Lakes Publishing, publisher
1622 in the pubs database. Five Lakes Publishing is located in
Chicago, Illinois.
This is sample text data for Five Lakes Publishing, publisher
1622 in the pubs database. Five Lakes Publishing is located in
Chicago, Illinois.
This is sample text data for Five Lakes Publishing, publisher
1622 in the pubs database. Five Lakes Publishing is located in
Chicago, Illinois.
This is sample text data for Five Lakes Publishing, publisher
1622 in the pubs database. Five Lakes Publishing is located in
Chicago, Illinois.
This is sample text data for Five Lakes Publishing, publisher
1622 in the pubs database. Five Lakes Publishing is located in
Chicago, Illinois.
This is sample text data for Five Lakes Publishing, publisher
1622 in the pubs database. Five Lakes Publishing is located in
Chicago, Illinois.
This is sample text data for Five Lakes Publishing, publisher
1622 in the pubs database. Five Lakes Publishing is located in
Chicago, Illinois.
This is sample text data for Five Lakes Publishing, publisher
1622 in the pubs database. Five Lakes Publishing is located in
Chicago, Illinois.
This is sample text data for Five Lakes Publishing, publisher
1622 in the pubs database. Five Lakes Publishing is located in
Chicago, Illinois.
This is sample text data for Five Lakes Publishing, publisher
1622 in the pubs database. Five Lakes Publishing is located in
Chicago, Illinois.
This is sample text data for Five Lakes Publishing, publisher
1622 in the pubs database. Five Lakes Publishing is located in
Chicago, Illinois.
AFA5FA96C93AF50AA6AFBEFE263C1DC0FCA2AB8AC210472C310A1100003B,
'This is sample text data for Ramona Publishers, publisher 1756
in the pubs database. Ramona Publishers is located in Dallas,
Texas.')
insert pub_info values('9901',
0x4749463839615D002200B30F000000008000000080008080000000808000800
08080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F904
0100000F002C000000005D0022004004FFF0C949ABBD38EBCDFB03DF078C24989
5A386AA68BB9E6E0ACE623ABD1BC9E9985DFFB89E8E366BED782C5332563ABA42
45A6744AAD5AAF4D2276CBED5EA1D026C528B230CD38B2C92721D78CC47725267
48F9F611EB28DE7AFE25E818283604A1E8788898A7385838E8F55856F6C2C1D86
392F6B9730708D6C5477673758A3865E92627E94754E173697A6A975809368949
BB2AE7B9A6865AA734F80A2A17DA576AA5BB667C290CDCE4379CFD2CE9ED3D6A7
CCD7DAA4D9C79341C8B9DF5FC052A8DEBA9BB696767B9C7FD5B8BBF23EABB9706
BCAE5F05AB7E6C4C7488DDAF7251BC062530EFE93638C5B3580ECD4951312C217
C425E73E89D38709D79D810D393BD20A528CE0AA704AA2D4D3082E583C89BD2C2
D720753E1C8922697D44CF6AE53BF6D4041750B4AD467C54548932A1D7374A9D3
A789004400003B,
'This is sample text data for GGG&G, publisher 9901 in the pubs
database. GGG&G is located in Mnchen, Germany.')
insert pub_info values('9952',
0x47494638396107012800B30F000000008000000080008080000000808000800
08080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F904
0100000F002C00000000070128004004FFF0C949ABBD38EBCDBBFF60288E64696
60005AC2C7BB56D05A7D24C4F339E3F765FC716980C3824F28418E4D1A552DA8A
CCA5517A7B526F275912690D2A9BD11D14AB8B8257E7E9776BDEE452C2279C47A
5CBEDEF2B3C3FBF9FC85981821D7D76868588878A898C8B838F1C8D928E733890
829399949B979D9E9FA074A1A3A4A5A6A7458F583E69803F53AF4C62AD5E6DB13
B6B3DAEAC6EBA64B365B26BB7ABBEB5C07FB428BCC4C8C1CCC7BBB065637C7A9B
7BBE8CDADBDA8B7C31D9E1D88E2FA89E9AE9E49AE7EDA48DA2EEF2F3F4F597AEF
6F9FAFBFC805D6CD28C0164C64D18BE3AAD88D87AA5C1DBC07FD59CE54293F0E0
882AC39ED9CA2886E3308FB3FF262EBC726D591823204F2E0C09A4A3B32CFEACB
C24198D86C48FD3E208D43832E3C0671A2D89737167281AA333219AC048D06149
9A3C83BEC8090BD84E5A99DE808B730DE9516B727CE85AE7C122BF73EAD29255C
B76ADDBB6EC549C8504F7AD5DB37343A98D97576EDDBF7CFB0AEE8457EF5D4E83
132BAEB1B8B1E3C749204B9EACB830E5CB984DE1F339A4E1CC88C93CB7D989D72
234D1D3A672FEF85055C483C80A06742ADB664F3563119E417D5A8F52DFB1512A
EC5D82E9C8662A477FB19A72B6F2E714413F8D0654AA75A8C4C648FDBC346ACDC
D5487AFC439BE8BC8E8AA7F6BD77D2B7DF4E6C5882E57DFBDE2F56AEE6D87DFB8
BFE06BE7E8F1C6CBCE4D2DC15751803C5956567EFA1D47A041E5F1176183CC1D5
71D21C2850396565CF5B1D5571D8AC21D08E099A15E85269E87207B1736B31E6F
E620324E582116F5215178C86763518A9068DF7FE8C9C6207DCD0104A47B6B717
388901EFA27238E3482454E43BB61E8D388F7FD44DD32473E79D43A5276332325
61E6F86536660256891699D175989A6F1A020A9C75C9D5E68274C619D79D91B5C
5189F7906CA67297129D88F9E881A3AA83E8AB623E85E8B0EDAE89C892216E9A5
84B80318A69C7E3269A7A046FA69A8A4B6094004003B,
'This is sample text data for Scootney Books, publisher 9952 in
the pubs database. Scootney Books is located in New York City,
New York.')
insert pub_info values('9999',
0x474946383961A9002400B30F000000008000000080008080000000808000800
08080808080C0C0C0FF000000FF00FFFF000000FFFF00FF00FFFFFFFFFF21F904
0100000F002C00000000A90024004004FFF0C949ABBD38EBCDBBFF60F8011A609
E67653EA8D48A702CCFF44566689ED67CEFFF23D58E7513B686444A6EA26B126F
C8E74AC82421A7ABE5F4594D61B7BBF0D6F562719A68A07ACDC6389925749AFC6
EDBEFBCA24D3E96E2FF803D7A1672468131736E494A8B5C848D8633834B916E59
8B657E4A83905F7D9B7B56986064A09BA2A68D63603A2E717C9487B2B3209CA7A
D52594751B4BD80B65D75B799BEC5BFAF7CC6CACB6638852ACC409F901BD33EB6
BCCDC1D1CEA9967B23C082C3709662A69FA4A591E7AE84D87A5FA0AB502F43AC5
D74EB9367B0624593FA5CB101ED144173E5F4315AE8485B4287FCBE39E446B162
4173FEAC59DC2809594623D9C3388A54E4ACD59C642353E2F098E919319530DD6
1C405C7CBCB9831C5E5A2192C244E983A3FFE1CDA21282CA248ABB18C25336952
A389D689E489B0D24483243B66CD8775A315801AA5A60A6B2DAC074E3741D6BBA
8902BA687E9A6D1A3B6D6D15C7460C77AA3E3E556D79EBAF4AAAAB2CFCF578671
DFDE657598305D51F7BE5E5A25361ED3388EED0A84B2B7535D6072C1D62DB5588
BE5CCA5B1BDA377B99E3CBE9EDA31944A951ADF7DB15263A1429B37BB7E429D8E
C4D754B87164078F2B87012002003B,
'This is sample text data for Lucerne Publishing, publisher 9999
in the pubs database. Lucerne publishing is located in Paris,
France.
This is sample text data for Lucerne Publishing, publisher 9999
in the pubs database. Lucerne publishing is located in Paris,
France.
This is sample text data for Lucerne Publishing, publisher 9999
in the pubs database. Lucerne publishing is located in Paris,
France.
This is sample text data for Lucerne Publishing, publisher 9999
in the pubs database. Lucerne publishing is located in Paris,
France.')
GO
raiserror('Now at the inserts to titles ....',0,1)
GO
insert titles values ('PC8888', 'Secrets of Silicon Valley',
'popular_comp', '1389',
$20.00, $8000.00, 10, 4095,
'Muckraking reporting on the world''s largest computer hardware
and software manufacturers.',
'06/12/94')
insert titles values ('BU1032', 'The Busy Executive''s Database
Guide', 'business',
'1389', $19.99, $5000.00, 10, 4095,
'An overview of available database systems with emphasis on
common business applications. Illustrated.',
'06/12/91')
insert titles values ('PS7777', 'Emotional Security: A New
Algorithm', 'psychology',
GO
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
titleauthor
values('409-56-7008',
values('486-29-1786',
values('486-29-1786',
values('712-45-1867',
values('172-32-1176',
values('213-46-8915',
values('238-95-7766',
values('213-46-8915',
values('998-72-3567',
values('899-46-2035',
values('998-72-3567',
values('722-51-5454',
values('899-46-2035',
values('807-91-6654',
values('274-80-9391',
values('427-17-2319',
values('846-92-7186',
values('756-30-7391',
values('724-80-9391',
values('724-80-9391',
values('267-41-2394',
values('672-71-3249',
values('267-41-2394',
values('472-27-2349',
values('648-92-1872',
'BU1032',
'PS7777',
'PC9999',
'MC2222',
'PS3333',
'BU1032',
'PC1035',
'BU2075',
'PS2091',
'PS2091',
'PS2106',
'MC3021',
'MC3021',
'TC3218',
'BU7832',
'PC8888',
'PC8888',
'PS1372',
'PS1372',
'BU1111',
'BU1111',
'TC7777',
'TC7777',
'TC7777',
'TC4203',
1,
1,
1,
1,
1,
2,
1,
1,
1,
2,
1,
1,
2,
1,
1,
1,
2,
1,
2,
1,
2,
1,
2,
3,
1,
60)
100)
100)
100)
100)
40)
100)
100)
50)
50)
100)
75)
25)
100)
100)
50)
50)
75)
25)
60)
40)
40)
30)
30)
100)
GO
raiserror('Now at the inserts to stores ....',0,1)
GO
insert stores values('7066','Barnum''s','567 Pasadena
Ave.','Tustin','CA','92789')
insert stores values('7067','News & Brews','577 First St.','Los
Gatos','CA','96745')
insert stores values('7131','Doc-U-Mat: Quality Laundry and
Books',
'24-A Avogadro Way','Remulade','WA','98014')
insert stores values('8042','Bookbeat','679 Carson
St.','Portland','OR','89076')
insert stores values('6380','Eric the Read Books','788 Catamaugus
Ave.',
'Seattle','WA','98056')
insert stores values('7896','Fricative Bookshop','89 Madison
St.','Fremont','CA','90019')
GO
raiserror('Now at the inserts to sales ....',0,1)
GO
roysched
roysched
roysched
roysched
values('BU1032',
values('BU1032',
values('PC1035',
values('PC1035',
0, 5000, 10)
5001, 50000, 12)
0, 2000, 10)
2001, 3000, 12)
insert
insert
insert
insert
insert
insert
roysched
roysched
roysched
roysched
roysched
roysched
values('PC1035',
values('PC1035',
values('PC1035',
values('BU2075',
values('BU2075',
values('BU2075',
roysched
roysched
roysched
roysched
roysched
roysched
roysched
roysched
roysched
roysched
values('BU2075',
values('BU2075',
values('BU2075',
values('BU2075',
values('BU2075',
values('PS2091',
values('PS2091',
values('PS2091',
values('PS2091',
values('PS2106',
roysched
roysched
roysched
roysched
roysched
roysched
roysched
roysched
roysched
roysched
values('PS2106',
values('PS2106',
values('PS2106',
values('MC3021',
values('MC3021',
values('MC3021',
values('MC3021',
values('MC3021',
values('MC3021',
values('MC3021',
roysched
roysched
roysched
roysched
roysched
roysched
roysched
roysched
roysched
roysched
roysched
values('MC3021',
values('TC3218',
values('TC3218',
values('TC3218',
values('TC3218',
values('TC3218',
values('TC3218',
values('TC3218',
values('TC3218',
values('PC8888',
values('PC8888',
roysched
roysched
roysched
roysched
roysched
values('PC8888',
values('PC8888',
values('PS7777',
values('PS7777',
values('PS3333',
GO
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
GO
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
GO
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
GO
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
roysched
roysched
roysched
roysched
roysched
roysched
values('PS3333',
values('PS3333',
values('PS3333',
values('BU1111',
values('BU1111',
values('BU1111',
roysched
roysched
roysched
roysched
roysched
roysched
roysched
roysched
roysched
values('BU1111',
values('BU1111',
values('BU1111',
values('BU1111',
values('BU1111',
values('MC2222',
values('MC2222',
values('MC2222',
values('MC2222',
roysched
roysched
roysched
roysched
roysched
roysched
roysched
roysched
roysched
roysched
values('MC2222',
values('MC2222',
values('TC7777',
values('TC7777',
values('TC7777',
values('TC4203',
values('TC4203',
values('TC4203',
values('TC4203',
values('TC4203',
roysched
roysched
roysched
roysched
roysched
roysched
roysched
roysched
roysched
roysched
values('TC4203',
values('TC4203',
values('BU7832',
values('BU7832',
values('BU7832',
values('BU7832',
values('BU7832',
values('BU7832',
values('BU7832',
values('BU7832',
roysched
roysched
roysched
roysched
roysched
values('PS1372',
values('PS1372',
values('PS1372',
values('PS1372',
values('PS1372',
0, 10000, 10)
10001, 20000,
20001, 30000,
30001, 40000,
40001, 50000,
GO
insert
insert
insert
insert
insert
insert
insert
insert
insert
GO
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
GO
insert
insert
insert
insert
insert
insert
insert
insert
insert
insert
GO
insert
insert
insert
insert
insert
GO
12)
14)
16)
18)
jobs
jobs
jobs
jobs
jobs
jobs
jobs
jobs
jobs
jobs
jobs
jobs
jobs
jobs
values
values
values
values
values
values
values
values
values
values
values
values
values
values
GO
raiserror('Now at the inserts to employee ....',0,1)
GO
insert employee values ('PTC11962M',
215, '9952', '11/11/89')
insert employee values ('AMD15433F',
'9952', '07/16/91')
insert employee values ('F-C16315M',
227, '9952', '11/03/90')
insert employee values ('LAL21447M',
5, 175, '0736', '06/03/90')
insert employee values ('PXH22250M',
159, '0877', '08/19/93')
insert employee values ('SKO22412M',
150, '1389', '04/05/91')
insert employee values ('RBM23061F',
198, '1622', '10/09/93')
insert employee values ('MJP25939M',
246, '1756', '03/01/89')
GO
insert employee values ('MGK44605M',
6, 220, '0736', '05/01/94')
insert employee values ('PDI47470M',
195, '0736', '05/09/93')
insert employee values ('MMS49649F',
175, '0736', '06/29/93')
insert employee values ('GHT50241M',
170, '0736', '08/09/88')
insert employee values ('MFS52347M',
165, '0736', '04/13/90')
insert employee values ('R-M53550M',
150, '0736', '09/05/91')
insert employee values ('HAS54740M',
100, '0736', '11/19/88')
insert employee values ('TPO55093M',
13, 100, '0736', '06/19/88')
insert employee values ('KFJ64308F',
100, '0736', '10/17/92')
insert employee values ('DWR65030M',
192, '1389', '12/16/91')
insert employee values ('M-L67958F',
135, '1389', '03/27/92')
insert employee values ('PSP68661F',
125, '1389', '01/19/94')
insert employee values ('MAS70474F',
78, '1389', '09/29/88')
insert employee values ('A-C71970F',
'1389', '10/26/91')
insert employee values ('MAP77183M',
GO
raiserror('Now at the create procedure section ....',0,1)
GO
CREATE PROCEDURE byroyalty @percentage int
AS
select au_id from titleauthor
where titleauthor.royaltyper = @percentage
GO
CREATE PROCEDURE reptq1 AS
select
case when grouping(pub_id) = 1 then 'ALL' else pub_id end as
pub_id,
avg(price) as avg_price
from titles
where price is NOT NULL
group by pub_id with rollup
order by pub_id
GO
CREATE PROCEDURE reptq2 AS
select
case when grouping(type) = 1 then 'ALL' else type end as
type,
case when grouping(pub_id) = 1 then 'ALL' else pub_id end as
pub_id,
avg(ytd_sales) as avg_ytd_sales
from titles
where pub_id is NOT NULL
group by pub_id, type with rollup
GO
CREATE PROCEDURE reptq3 @lolimit money, @hilimit money,
@type char(12)
AS
select
case when grouping(pub_id) = 1 then 'ALL' else pub_id end as
pub_id,
case when grouping(type) = 1 then 'ALL' else type end as
type,
count(title_id) as cnt
from titles
where price >@lolimit AND price <@hilimit AND type = @type OR
type LIKE '%cook%'
group by pub_id, type with rollup
GO
UPDATE
UPDATE
UPDATE
UPDATE
UPDATE
UPDATE
UPDATE
UPDATE
UPDATE
UPDATE
UPDATE
STATISTICS
STATISTICS
STATISTICS
STATISTICS
STATISTICS
STATISTICS
STATISTICS
STATISTICS
STATISTICS
STATISTICS
STATISTICS
publishers
employee
jobs
pub_info
titles
authors
titleauthor
sales
roysched
stores
discounts
GO
CHECKPOINT
GO
USE master
GO
CHECKPOINT
GO
declare @dttm varchar(55)
select @dttm=convert(varchar,getdate(),113)
raiserror('Ending InstPubs.SQL at %s ....',1,1,@dttm) with nowait
GO
-- -