-
Notifications
You must be signed in to change notification settings - Fork 1
/
pubs-db-script-20220425.sql
3223 lines (2998 loc) · 491 KB
/
pubs-db-script-20220425.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* ==Scripting Parameters==
Source Server Version : SQL Server 2019 (15.0.2000)
Source Database Engine Edition : Microsoft SQL Server Enterprise Edition
Source Database Engine Type : Standalone SQL Server
Target Server Version : SQL Server 2019
Target Database Engine Edition : Microsoft SQL Server Enterprise Edition
Target Database Engine Type : Standalone SQL Server
*/
USE [master]
GO
/****** Object: Database [pubs] Script Date: 4/24/2022 7:57:09 PM ******/
CREATE DATABASE [pubs]
CONTAINMENT = NONE
ON PRIMARY
( NAME = N'pubs', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\DATA\pubs.mdf' , SIZE = 8192KB , MAXSIZE = UNLIMITED, FILEGROWTH = 65536KB )
LOG ON
( NAME = N'pubs_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\DATA\pubs_log.ldf' , SIZE = 8192KB , MAXSIZE = 2048GB , FILEGROWTH = 65536KB )
WITH CATALOG_COLLATION = DATABASE_DEFAULT
GO
ALTER DATABASE [pubs] SET COMPATIBILITY_LEVEL = 150
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [pubs].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [pubs] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [pubs] SET ANSI_NULLS OFF
GO
ALTER DATABASE [pubs] SET ANSI_PADDING OFF
GO
ALTER DATABASE [pubs] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [pubs] SET ARITHABORT OFF
GO
ALTER DATABASE [pubs] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [pubs] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [pubs] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [pubs] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [pubs] SET CURSOR_DEFAULT GLOBAL
GO
ALTER DATABASE [pubs] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [pubs] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [pubs] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [pubs] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [pubs] SET DISABLE_BROKER
GO
ALTER DATABASE [pubs] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [pubs] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [pubs] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [pubs] SET ALLOW_SNAPSHOT_ISOLATION OFF
GO
ALTER DATABASE [pubs] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [pubs] SET READ_COMMITTED_SNAPSHOT OFF
GO
ALTER DATABASE [pubs] SET HONOR_BROKER_PRIORITY OFF
GO
ALTER DATABASE [pubs] SET RECOVERY SIMPLE
GO
ALTER DATABASE [pubs] SET MULTI_USER
GO
ALTER DATABASE [pubs] SET PAGE_VERIFY CHECKSUM
GO
ALTER DATABASE [pubs] SET DB_CHAINING OFF
GO
ALTER DATABASE [pubs] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF )
GO
ALTER DATABASE [pubs] SET TARGET_RECOVERY_TIME = 60 SECONDS
GO
ALTER DATABASE [pubs] SET DELAYED_DURABILITY = DISABLED
GO
ALTER DATABASE [pubs] SET ACCELERATED_DATABASE_RECOVERY = OFF
GO
EXEC sys.sp_db_vardecimal_storage_format N'pubs', N'ON'
GO
ALTER DATABASE [pubs] SET QUERY_STORE = OFF
GO
USE [pubs]
GO
/****** Object: Schema [Audit] Script Date: 4/24/2022 7:57:09 PM ******/
CREATE SCHEMA [Audit]
GO
/****** Object: UserDefinedDataType [dbo].[empid] Script Date: 4/24/2022 7:57:09 PM ******/
CREATE TYPE [dbo].[empid] FROM [char](9) NOT NULL
GO
/****** Object: UserDefinedDataType [dbo].[id] Script Date: 4/24/2022 7:57:09 PM ******/
CREATE TYPE [dbo].[id] FROM [varchar](11) NOT NULL
GO
/****** Object: UserDefinedDataType [dbo].[tid] Script Date: 4/24/2022 7:57:09 PM ******/
CREATE TYPE [dbo].[tid] FROM [varchar](6) NOT NULL
GO
/****** Object: UserDefinedFunction [dbo].[fn_GenerateFirstName] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [dbo].[fn_GenerateFirstName]()
RETURNS VARCHAR(100) AS
BEGIN
DECLARE @fname VARCHAR(100)
SET @fname =
(
SELECT TOP 1 p.FirstName
FROM AdventureWorks.Person.Person p
ORDER BY (SELECT id FROM dbo.view_NewID)
)
RETURN @fname
END;
GO
/****** Object: UserDefinedFunction [dbo].[fn_GenerateLastName] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [dbo].[fn_GenerateLastName]()
RETURNS VARCHAR(100) AS
BEGIN
DECLARE @lname VARCHAR(100)
SET @lname =
(
SELECT TOP 1 p.LastName
FROM AdventureWorks.Person.Person p
ORDER BY (SELECT id FROM dbo.view_NewID)
)
RETURN @lname
END;
GO
/****** Object: UserDefinedFunction [dbo].[fn_GenerateRandomAddress] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [dbo].[fn_GenerateRandomAddress]()
RETURNS VARCHAR(200) AS
BEGIN
DECLARE @address VARCHAR(200)
SET @address =
(
SELECT TOP 1 ad.AddressLine1
FROM AdventureWorks.Person.Address ad
WHERE AddressLine1 IS NOT NULL
ORDER BY (SELECT id FROM dbo.view_NewID)
)
RETURN @address
END;
GO
/****** Object: UserDefinedFunction [dbo].[fn_GenerateRandomAuthorId] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [dbo].[fn_GenerateRandomAuthorId](
@RAND FLOAT
)
RETURNS VARCHAR(11) AS
BEGIN
DECLARE @author_id VARCHAR(11)
DECLARE @isFound BIT = 0
WHILE (@isFound = 0)
BEGIN
DECLARE @a1 AS CHAR(3) = (SELECT(CAST((FLOOR(@RAND*(999-100+1)+100)) AS CHAR)))
DECLARE @a2 AS CHAR(2) = (SELECT(CAST((FLOOR(@RAND*(99-10+1)+10)) AS CHAR)))
DECLARE @a3 AS CHAR(4) = (SELECT(CAST((FLOOR(@RAND*(9999-1000+1)+1000)) AS CHAR)))
SET @author_id = (SELECT @a1 + '-' + @a2 + '-' + @a3)
IF EXISTS(SELECT TOP 1 1 FROM [authors] WHERE au_id = @author_id)
BEGIN
CONTINUE
END
ELSE
BEGIN
SET @isFound = 1
END
END
RETURN @author_id
END;
/*
DECLARE @author_id VARCHAR(11)
SET @author_id = [dbo].[fn_GenerateRandomAuthorId](RAND())
PRINT(@author_id)
*/
GO
/****** Object: UserDefinedFunction [dbo].[fn_GenerateRandomDate] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [dbo].[fn_GenerateRandomTitleId](
@RAND FLOAT
)
RETURNS [dbo].[tid] AS
BEGIN
DECLARE @random_title_id [dbo].[tid]
DECLARE @isFound BIT = 0
WHILE (@isFound = 0)
BEGIN
DECLARE @randomid1 UNIQUEIDENTIFIER = (SELECT id FROM dbo.view_NewID)
DECLARE @randomid2 UNIQUEIDENTIFIER = (SELECT id FROM dbo.view_NewID)
DECLARE @t1 AS CHAR(1) = (SELECT SUBSTRING('ABCDEFGHIJKLMNOPQRSTUVWXYZ',(ABS(CHECKSUM(@randomid1)) % 26) + 1, 1))
DECLARE @t2 AS CHAR(1) = (SELECT SUBSTRING('ABCDEFGHIJKLMNOPQRSTUVWXYZ',(ABS(CHECKSUM(@randomid2)) % 26) + 1, 1))
DECLARE @t3 AS CHAR(1) = (SELECT(CAST((FLOOR(@RAND*(9-1+1)+1)) AS CHAR)))
DECLARE @t4 AS CHAR(1) = (SELECT(CAST((FLOOR(@RAND*(9-1+1)+1)) AS CHAR)))
DECLARE @t5 AS CHAR(1) = (SELECT(CAST((FLOOR(@RAND*(9-1+1)+1)) AS CHAR)))
DECLARE @t6 AS CHAR(1) = (SELECT(CAST((FLOOR(@RAND*(9-1+1)+1)) AS CHAR)))
SET @random_title_id = (SELECT @t1 + @t2 + @t3 + @t4 + @t5 + @t6)
IF EXISTS(SELECT TOP 1 1 FROM [titles] WHERE title_id = @random_title_id)
BEGIN
CONTINUE
END
ELSE
BEGIN
SET @isFound = 1
END
END
RETURN @random_title_id
END;
/*
DECLARE @random_title_id [dbo].[tid]
SET @random_title_id = [dbo].[fn_GenerateRandomTitleId](RAND())
PRINT(@random_title_id)
*/
GO
/****** Object: UserDefinedFunction [dbo].[fn_GenerateRandomDate] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [dbo].[fn_GenerateRandomDate](
@DateStart DATE
,@DateEnd DATE
,@RAND FLOAT
)
RETURNS DATE AS
BEGIN
DECLARE @randomDate DATE
SET @randomDate = DateAdd(Day, @RAND * DateDiff(Day, @DateStart, @DateEnd), @DateStart)
RETURN @randomDate
END;
GO
/****** Object: UserDefinedFunction [dbo].[fn_GenerateRandomPhone] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [dbo].[fn_GenerateRandomPhone](
@RAND FLOAT
)
RETURNS VARCHAR(12) AS
BEGIN
DECLARE @phone VARCHAR(12)
DECLARE @p1 AS CHAR(3) = (SELECT(CAST((FLOOR(@RAND*(999-100+1)+100)) AS CHAR)))
DECLARE @p2 AS CHAR(3) = (SELECT(CAST((FLOOR(@RAND*(999-100+1)+100)) AS CHAR)))
DECLARE @p3 AS CHAR(4) = (SELECT(CAST((FLOOR(@RAND*(9999-1000+1)+1000)) AS CHAR)))
SET @phone = (SELECT @p1 + '-' + @p2 + '-' + @p3)
RETURN @phone
END;
GO
/****** Object: UserDefinedFunction [dbo].[fn_GenerateRandomSsn] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [dbo].[fn_GenerateRandomSsn](
@RAND FLOAT
)
RETURNS VARCHAR(11) AS
BEGIN
DECLARE @ssn VARCHAR(11)
SET @ssn = (
CAST(CAST(100 + (898 * @RAND) AS INT) AS VARCHAR(3)) +
'-' +
CAST(CAST(10 + (88 * @RAND) AS INT) AS VARCHAR(2)) +
'-' +
CAST(CAST(1000 + (8998 * @RAND) AS INT) AS VARCHAR(4))
)
RETURN @ssn
END;
GO
/****** Object: UserDefinedFunction [dbo].[fn_GetRandomNumber] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [dbo].[fn_GetRandomNumber] (
@Lower INT,
@Upper INT,
@RAND FLOAT
)
RETURNS INT AS
BEGIN
IF NOT (@Lower < @Upper)
BEGIN
--RAISERROR('@Lower parameter can not be greater than or equal to the @Upper parameter', 16, 1)
RETURN -1
END
DECLARE @Random INT;
SET @Random = ROUND(((@Upper - @Lower -1) * @RAND + @Lower), 0)
RETURN @Random
END;
GO
/****** Object: Table [dbo].[authors] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[authors](
[au_id] [dbo].[id] NOT NULL,
[au_lname] [varchar](40) NOT NULL,
[au_fname] [varchar](20) NOT NULL,
[phone] [char](12) NOT NULL,
[address] [varchar](40) NULL,
[city] [varchar](20) NULL,
[state] [char](2) NULL,
[zip] [char](5) NULL,
[contract] [bit] NOT NULL,
CONSTRAINT [UPKCL_auidind] PRIMARY KEY CLUSTERED
(
[au_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[titles] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[titles](
[title_id] [dbo].[tid] NOT NULL,
[title] [varchar](100) NULL,
[pub_id] [char](4) NULL,
[price] [money] NULL,
[advance] [money] NULL,
[royalty] [int] NULL,
[ytd_sales] [int] NULL,
[notes] [varchar](800) NULL,
[pubdate] [datetime] NOT NULL,
[prequel_id] [varchar](6) NULL,
[ISBN] [varchar](17) NULL,
CONSTRAINT [UPKCL_titleidind] PRIMARY KEY CLUSTERED
(
[title_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[titleauthor] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[titleauthor](
[au_id] [dbo].[id] NOT NULL,
[title_id] [dbo].[tid] NOT NULL,
[au_ord] [tinyint] NULL,
[royaltyper] [int] NULL,
CONSTRAINT [UPKCL_taind] PRIMARY KEY CLUSTERED
(
[au_id] ASC,
[title_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: View [dbo].[titleview] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/****** Object: View [dbo].[view_NewID] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
Create View [dbo].[view_NewID] As Select NEWID() as id
GO
/****** Object: Table [Audit].[Book] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Audit].[Book](
[pub_id] [char](4) NULL,
[pub_name] [varchar](40) NULL,
[pub_city] [varchar](20) NULL,
[pub_state] [char](2) NULL,
[pub_country] [varchar](30) NULL,
[random_title_id] [dbo].[tid] NOT NULL,
[prequel_id] [varchar](11) NULL,
[book_title] [varchar](100) NULL,
[book_type] [char](40) NULL,
[book_price] [money] NULL,
[book_advance] [money] NULL,
[book_royalty] [int] NULL,
[book_ytd_sales] [int] NULL,
[book_notes] [varchar](800) NULL,
[book_pubdate] [datetime] NULL,
[random_au_id] [dbo].[id] NOT NULL,
[au_lname] [varchar](40) NULL,
[au_fname] [varchar](20) NULL,
[au_phone] [char](12) NULL,
[au_address] [varchar](40) NULL,
[au_city] [varchar](20) NULL,
[au_state] [char](2) NULL,
[au_zip] [char](5) NULL,
[au_contract] [bit] NULL,
[royalty_per] [int] NULL,
[au_ord] [tinyint] NULL,
[created_date] [datetime] NULL,
[created_by] [varchar](255) NULL
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[bookcopies] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[bookcopies](
[copy_id] [int] NOT NULL,
[title_id] [dbo].[tid] NOT NULL,
[branch_id] [int] NOT NULL,
[condition] [varchar](10) NOT NULL,
[isavailable] [bit] NOT NULL,
[isactive] [bit] NOT NULL,
CONSTRAINT [PK__bookcopi__3C21D2D253AA47D8] PRIMARY KEY CLUSTERED
(
[copy_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[bookcopy_history] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[bookcopy_history](
[id] [int] NOT NULL,
[copy_id] [int] NOT NULL,
[note] [varchar](400) NOT NULL,
[createddate] [date] NOT NULL,
CONSTRAINT [PK__bookcopy__3213E83F46802883] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[books_borrowed] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[books_borrowed](
[id] [int] NOT NULL,
[copy_id] [int] NOT NULL,
[card_id] [int] NOT NULL,
[borroweddate] [date] NOT NULL,
[duedate] [date] NOT NULL,
[isReturned] [bit] NOT NULL,
[returndate] [date] NULL,
CONSTRAINT [PK__books_bo__3213E83F6B6BA886] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[borrowers] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[borrowers](
[id] [int] NOT NULL,
[card_id] [int] NOT NULL,
[ssn] [varchar](11) NOT NULL,
[first_name] [varchar](100) NOT NULL,
[last_name] [varchar](100) NOT NULL,
[address] [varchar](200) NOT NULL,
[phone] [char](12) NOT NULL,
[birthdate] [date] NOT NULL,
[card_issuedate] [date] NOT NULL,
[balancedue] [decimal](6, 2) NOT NULL,
[isexpired] [bit] NOT NULL,
[lg_address] [varchar](200) NULL,
[lg_name] [varchar](200) NULL,
[lg_phoneNumber] [varchar](12) NULL,
CONSTRAINT [PK__borrower__3213E83F5E95B92D] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[branchs] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[branchs](
[branch_id] [int] NOT NULL,
[name] [varchar](100) NOT NULL,
[address] [varchar](200) NOT NULL,
[phone] [char](12) NOT NULL,
[fax] [char](12) NULL,
CONSTRAINT [PK__branch__E55E37DE621CD3A4] PRIMARY KEY CLUSTERED
(
[branch_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[category] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[category](
[type_id] [int] NOT NULL,
[type] [varchar](100) NOT NULL,
CONSTRAINT [PK__title_ty__2C00059800C71E4A] PRIMARY KEY CLUSTERED
(
[type_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[degrees] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[degrees](
[id] [int] NOT NULL,
[name] [varchar](100) NOT NULL,
CONSTRAINT [PK__Degrees__3213E83FA6B40251] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[discounts] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[discounts](
[discounttype] [varchar](40) NOT NULL,
[stor_id] [char](4) NULL,
[lowqty] [smallint] NULL,
[highqty] [smallint] NULL,
[discount] [decimal](4, 2) NOT NULL
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[employee_type] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[employee_type](
[id] [int] NOT NULL,
[type] [varchar](100) NOT NULL,
CONSTRAINT [PK__employee__3213E83FB416B887] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[employees] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[employees](
[employee_id] [int] NOT NULL,
[first_name] [varchar](100) NOT NULL,
[last_name] [varchar](100) NOT NULL,
[address] [varchar](200) NOT NULL,
[homephone] [char](12) NULL,
[cellphone] [char](12) NOT NULL,
[salary_type] [char](1) NOT NULL,
[salary] [decimal](6, 0) NULL,
[birthdate] [date] NOT NULL,
[hiredate] [date] NOT NULL,
[vacation_hours] [int] NOT NULL,
[degree_id] [int] NOT NULL,
[school_id] [int] NOT NULL,
[branch_id] [int] NOT NULL,
[ishead_librarian] [bit] NOT NULL,
[employee_type_id] [int] NOT NULL,
[degreedate] [date] NULL,
[isActive] [bit] NOT NULL,
CONSTRAINT [PK__libraria__C52E0BA85F7A3A37] PRIMARY KEY CLUSTERED
(
[employee_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[paychecks] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[paychecks](
[id] [int] NOT NULL,
[employee_id] [int] NOT NULL,
[amount] [decimal](8, 2) NOT NULL,
[createddate] [date] NOT NULL,
CONSTRAINT [PK__paycheck__3213E83F3EB48EB3] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[pub_info] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[pub_info](
[pub_id] [char](4) NOT NULL,
[logo] [image] NULL,
[pr_info] [text] NULL,
CONSTRAINT [UPKCL_pubinfo] PRIMARY KEY CLUSTERED
(
[pub_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object: Table [dbo].[publishers] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[publishers](
[pub_id] [char](4) NOT NULL,
[pub_name] [varchar](40) NULL,
[city] [varchar](20) NULL,
[state] [char](2) NULL,
[country] [varchar](30) NULL,
CONSTRAINT [UPKCL_pubind] PRIMARY KEY CLUSTERED
(
[pub_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[sales] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[sales](
[stor_id] [char](4) NOT NULL,
[ord_num] [varchar](20) NOT NULL,
[ord_date] [datetime] NOT NULL,
[qty] [smallint] NOT NULL,
[payterms] [varchar](12) NOT NULL,
[title_id] [dbo].[tid] NOT NULL,
CONSTRAINT [UPKCL_sales] PRIMARY KEY CLUSTERED
(
[stor_id] ASC,
[ord_num] ASC,
[title_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[schools] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[schools](
[id] [int] NOT NULL,
[name] [varchar](100) NOT NULL,
CONSTRAINT [PK__Schools__3213E83FA4AD8ACB] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[shift_logs] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[shift_logs](
[id] [int] NOT NULL,
[employee_id] [int] NOT NULL,
[hours] [int] NOT NULL,
[shiftdate] [date] NOT NULL,
CONSTRAINT [PK__shift_lo__3213E83F896BA1A4] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[stores] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[stores](
[stor_id] [char](4) NOT NULL,
[stor_name] [varchar](40) NULL,
[stor_address] [varchar](40) NULL,
[city] [varchar](20) NULL,
[state] [char](2) NULL,
[zip] [char](5) NULL,
CONSTRAINT [UPK_storeid] PRIMARY KEY CLUSTERED
(
[stor_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[titlecategory] Script Date: 4/24/2022 7:57:09 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[titlecategory](
[id] [int] NOT NULL,
[title_id] [dbo].[tid] NOT NULL,
[title_type_id] [int] NOT NULL,
CONSTRAINT [UPKCL_ttind] PRIMARY KEY CLUSTERED
(
[title_type_id] ASC,
[title_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9910', N'Allen & Unwin', N'London', NULL, N'UK', N'UX2157', N'EX5727', N'The Two Towers', N' Fantasy', 40.0000, 200000.0000, 20, 50000000, N'The Two Towers is the second volume of J. R. R. Tolkiens high fantasy novel The Lord of the Rings. It is preceded by The Fellowship of the Ring and followed by The Return of the King.', CAST(N'1954-08-29T00:00:00.000' AS DateTime), N'254-26-6712', N'J.R.R.', N'Tolkien', N'', NULL, N'London', NULL, NULL, NULL, 100, 1, CAST(N'2022-04-16T18:40:36.707' AS DateTime), N'sa')
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9910', N'Allen & Unwin', N'London', NULL, N'UK', N'ZJ4675', N'UX2157', N'The Return of the King', N'Fantasy', 40.0000, 200000.0000, 20, 50000000, N'The Return of the King is the third and final volume of J. R. R. Tolkiens The Lord of the Rings, following The Fellowship of the Ring and The Two Towers. It was published in 1955. The story begins in the kingdom of Gondor, which is soon to be attacked by the Dark Lord Sauron.', CAST(N'1955-10-20T00:00:00.000' AS DateTime), N'254-26-6712', N'J.R.R.', N'Tolkien', N'', NULL, N'London', NULL, NULL, NULL, 100, 1, CAST(N'2022-04-16T20:31:32.060' AS DateTime), N'sa')
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9910', N'Allen & Unwin', N'London', NULL, N'UK', N'GE1743', NULL, N'The Hobbit', N'Fantasy', 60.0000, 50000.0000, 15, 50000000, N'The Hobbit, or There and Back Again is a childrens fantasy novel by English author J. R. R. Tolkien. It was published in 1937 to wide critical acclaim, being nominated for the Carnegie Medal and awarded a prize from the New York Herald Tribune for best juvenile fiction. The book remains popular and is recognized as a classic in childrens literature.', CAST(N'1937-09-21T00:00:00.000' AS DateTime), N'254-26-6712', N'J.R.R.', N'Tolkien', N'', NULL, N'London', NULL, NULL, NULL, 100, 1, CAST(N'2022-04-16T20:37:36.807' AS DateTime), N'sa')
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9910', N'Allen & Unwin', N'London', NULL, N'UK', N'UU5128', NULL, N'The Silmarillion', N'Mythopoeia Fantasy', 45.0000, 2500000.0000, 40, 50000000, N'The Silmarillion is a collection of mythopoeic stories by the English writer J. R. R. Tolkien, edited and published posthumously by his son Christopher Tolkien in 1977 with assistance from the fantasy author Guy Gavriel Kay. The Silmarillion tells of Ea, a fictional universe that includes the Blessed Realm of Valinor, the once-great region of Beleriand, the sunken island of Numenor, and the continent of Middle-earth, where Tolkiens most popular works are set. After the success of The Hobbit, Tolkiens publisher Stanley Unwin requested a sequel, and Tolkien offered a draft of the stories that would later become The Silmarillion.', CAST(N'1977-09-15T00:00:00.000' AS DateTime), N'254-26-6712', N'J.R.R.', N'Tolkien', N'', NULL, N'London', NULL, NULL, NULL, 100, 1, CAST(N'2022-04-16T20:41:43.403' AS DateTime), N'sa')
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9911', N'Crown Publishing Group', N'New York City', N'NY', N'US', N'BR5671', NULL, N'Why Nations Fail', N'Comparative Politics, Economics', 70.0000, 100000.0000, 30, 500000, N'Why Nations Fail: The Origins of Power, Prosperity, and Poverty, first published in 2012, is a book by economists Daron Acemoglu and James Robinson. It summarizes and popularizes previous research by the authors and many other scientists. Building on the new institutional economics, Robinson and Acemoglu see in political and economic institutions — a set of rules and enforcement mechanisms that exist in society — the main reason for differences in the economic and social development of different states, considering, that other factors (geography, climate, genetics, culture, religion, elite ignorance) are secondary.', CAST(N'2012-03-20T00:00:00.000' AS DateTime), N'408-40-8965', N'Acemoglu', N'Daron', N'999 000-0000', N'65, rue Faubourg St Antoine', N'Newton', N'MA', N'99402', 0, 50, 1, CAST(N'2022-04-16T21:07:32.383' AS DateTime), N'sa')
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9912', N'Cambridge University Press', N'Cambridge', NULL, N'UK', N'FK3916', NULL, N'Economic Origins of Dictatorship and Democracy', N'Economics, Macroeconomics', 30.0000, 50000.0000, 15, 500000, N'Book develops a framework for analyzing the creation and consolidation of democracy. Different social groups prefer different political institutions because of the way they allocate political power and resources. Thus democracy is preferred by the majority of citizens, but opposed by elites. Dictatorship nevertheless is not stable when citizens can threaten social disorder and revolution.', CAST(N'2012-09-01T00:00:00.000' AS DateTime), N'408-40-8965', N'Acemoglu', N'Daron', N'999 000-0000', NULL, N'Newton', N'MA', NULL, NULL, 50, 1, CAST(N'2022-04-16T21:19:14.683' AS DateTime), N'sa')
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9913', N'Bloomsbury Publishing', N'London', N' ', N'UK', N'VC5136', NULL, N'Harry Potter and the Philosopher''s Stone', N'Fantasy', 45.0000, 1000000.0000, 40, 120000000, N'Harry Potter and the Philosopher''s Stone is a fantasy novel written by British author J. K. Rowling. The first novel in the Harry Potter series and Rowling''s debut novel, it follows Harry Potter, a young wizard who discovers his magical heritage on his eleventh birthday, when he receives a letter of acceptance to Hogwarts School of Witchcraft and Wizardry.', CAST(N'1997-06-26T00:00:00.000' AS DateTime), N'182-52-8743', N'Rowling', N'Joanne', N'999 000-0000', N'3833, boulevard Beau Marchais', N'YATE', N' ', N'99796', 0, 100, 1, CAST(N'2022-04-17T17:09:52.727' AS DateTime), N'sa')
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9913', N'Bloomsbury Publishing', N'London', N' ', N'UK', N'BT6646', N'VC5136', N'Harry Potter and the Chamber of Secrets', N'Fantasy', 45.0000, 1500000.0000, 40, 100000000, N'Harry Potter and the Chamber of Secrets is a fantasy novel written by British author J. K. Rowling and the second novel in the Harry Potter series. The plot follows Harry''s second year at Hogwarts School of Witchcraft and Wizardry, during which a series of messages on the walls of the school''s corridors warn that the "Chamber of Secrets" has been opened and that the "heir of Slytherin" would kill all pupils who do not come from all-magical families.', CAST(N'1998-07-02T00:00:00.000' AS DateTime), N'182-52-8743', N'Rowling', N'Joanne', N'999 000-0000', NULL, N'YATE', N' ', NULL, NULL, 100, 1, CAST(N'2022-04-17T17:16:05.440' AS DateTime), N'sa')
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9913', N'Bloomsbury Publishing', N'London', N' ', N'UK', N'YE3356', N'BT6646', N'Harry Potter and the Prisoner of Azkaban', N'Fantasy', 45.0000, 1500000.0000, 40, 100000000, N'Harry Potter and the Prisoner of Azkaban is a fantasy novel written by British author J. K. Rowling and is the third in the Harry Potter series. The book follows Harry Potter, a young wizard, in his third year at Hogwarts School of Witchcraft and Wizardry. Along with friends Ronald Weasley and Hermione Granger, Harry investigates Sirius Black, an escaped prisoner from Azkaban, the wizard prison, believed to be one of Lord Voldemort''s old allies.', CAST(N'1999-07-08T00:00:00.000' AS DateTime), N'182-52-8743', N'Rowling', N'Joanne', N'999 000-0000', NULL, N'YATE', N' ', NULL, NULL, 100, 1, CAST(N'2022-04-17T17:17:20.160' AS DateTime), N'sa')
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9913', N'Bloomsbury Publishing', N'London', N' ', N'UK', N'TL7666', N'YE3356', N'Harry Potter and the Goblet of Fire', N'Fantasy', 45.0000, 1500000.0000, 40, 100000000, N'Harry Potter and the Goblet of Fire is a fantasy novel written by British author J. K. Rowling and the fourth novel in the Harry Potter series. It follows Harry Potter, a wizard in his fourth year at Hogwarts School of Witchcraft and Wizardry, and the mystery surrounding the entry of Harry''s name into the Triwizard Tournament, in which he is forced to compete.', CAST(N'2000-07-08T00:00:00.000' AS DateTime), N'182-52-8743', N'Rowling', N'Joanne', N'999 000-0000', NULL, N'YATE', N' ', NULL, NULL, 100, 1, CAST(N'2022-04-17T17:18:25.333' AS DateTime), N'sa')
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9912', N'Cambridge University Press', N'Cambridge', NULL, N'UK', N'BL4371', NULL, N'Modern Computer Algebra', N'Computer Science', 100.0000, 50000.0000, 10, 10000, N'Computer algebra systems are now ubiquitous in all areas of science and engineering. This highly successful textbook, widely regarded as the bible of computer algebra, gives a thorough introduction to the algorithmic basis of the mathematical engine in computer algebra systems.', CAST(N'2013-01-01T00:00:00.000' AS DateTime), N'388-60-7495', N'Von Zur Gathen', N'Joachim', N'000 000-0000', N'9918 Scottsdale Rd.', N'Bonn', NULL, N'99409', 0, 50, 1, CAST(N'2022-04-16T21:39:33.237' AS DateTime), N'sa')
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9913', N'Bloomsbury Publishing', N'London', N' ', N'UK', N'QD5712', N'TL7666', N'Harry Potter and the Order of the Phoenix', N'Fantasy', 45.0000, 1500000.0000, 40, 100000000, N'Harry Potter and the Order of the Phoenix is a fantasy novel written by British author J. K. Rowling and the fifth novel in the Harry Potter series. It follows Harry Potter''s struggles through his fifth year at Hogwarts School of Witchcraft and Wizardry, including the surreptitious return of the antagonist Lord Voldemort, O.W.L. exams, and an obstructive Ministry of Magic.', CAST(N'2003-06-27T00:00:00.000' AS DateTime), N'182-52-8743', N'Rowling', N'Joanne', N'999 000-0000', NULL, N'YATE', N' ', NULL, NULL, 100, 1, CAST(N'2022-04-17T17:19:41.263' AS DateTime), N'sa')
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9913', N'Bloomsbury Publishing', N'London', N' ', N'UK', N'LS2238', N'QD5712', N'Harry Potter and the Half-Blood Prince', N'Fantasy', 45.0000, 1500000.0000, 40, 100000000, N'Harry Potter and the Half-Blood Prince is a fantasy novel written by British author J.K. Rowling and the sixth and penultimate novel in the Harry Potter series. Set during Harry Potter''s sixth year at Hogwarts, the novel explores the past of the boy wizard''s nemesis, Lord Voldemort, and Harry''s preparations for the final battle against Voldemort alongside his headmaster and mentor Albus Dumbledore.', CAST(N'2005-07-16T00:00:00.000' AS DateTime), N'182-52-8743', N'Rowling', N'Joanne', N'999 000-0000', NULL, N'YATE', N' ', NULL, NULL, 100, 1, CAST(N'2022-04-17T17:20:48.030' AS DateTime), N'sa')
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9913', N'Bloomsbury Publishing', N'London', N' ', N'UK', N'GU4539', N'LS2238', N'Harry Potter and the Deathly Hallows', N'Fantasy', 45.0000, 1500000.0000, 40, 100000000, N'Harry Potter and the Deathly Hallows is a fantasy novel written by British author J. K. Rowling and the seventh and final novel of the main Harry Potter series. It was released on 14 July 2007 in the United Kingdom by Bloomsbury Publishing, in the United States by Scholastic, and in Canada by Raincoast Books. The novel chronicles the events directly following Harry Potter and the Half-Blood Prince (2005) and the final confrontation between the wizards Harry Potter and Lord Voldemort.', CAST(N'2007-07-14T00:00:00.000' AS DateTime), N'182-52-8743', N'Rowling', N'Joanne', N'999 000-0000', NULL, N'YATE', N'', NULL, NULL, 100, 1, CAST(N'2022-04-17T17:21:41.303' AS DateTime), N'sa')
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9914', N'Bantam Spectra', N'New York City', N'NY', N'USA', N'CI5668', NULL, N'A Game of Thrones', N'Epic Fantasy', 70.0000, 1000000.0000, 40, 1000000, N'A Game of Thrones is the first novel in A Song of Ice and Fire, a series of fantasy novels by the American author George R. R. Martin. It was first published on August 1, 1996. The novel won the 1997 Locus Award and was nominated for both the 1997 Nebula Award and the 1997 World Fantasy Award. The novella Blood of the Dragon, comprising the Daenerys Targaryen chapters from the novel, won the 1997 Hugo Award for Best Novella. In January 2011, the novel became a New York Times Bestseller and reached No. 1 on the list in July 2011.', CAST(N'1996-08-01T00:00:00.000' AS DateTime), N'585-43-6756', N'Martin', N'George Raymond Richa', N'999 000-0000', N'5496 Village Pl.', N'New Jersey', N'NJ', N'99534', 1, 100, 1, CAST(N'2022-04-17T18:29:49.517' AS DateTime), N'sa')
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9914', N'Bantam Spectra', N'New York City', N'NY', N'USA', N'OX4936', N'CI5668', N'A Clash of Kings', N'Epic Fantasy', 70.0000, 1000000.0000, 40, 1000000, N'A Clash of Kings is the second novel in A Song of Ice and Fire, an epic fantasy series by American author George R. R. Martin expected to consist of seven volumes. It was first published on November 16, 1998 in the United Kingdom; the first United States edition followed on February 2, 1999. Like its predecessor, A Game of Thrones, it won the Locus Award (in 1999) for Best Novel and was nominated for the Nebula Award (also in 1999) for best novel. In May 2005, Meisha Merlin released a limited edition of the novel, fully illustrated by John Howe.', CAST(N'1998-11-16T00:00:00.000' AS DateTime), N'585-43-6756', N'Martin', N'George Raymond Richa', N'999 000-0000', NULL, N'New Jersey', N'NJ', NULL, NULL, 100, 1, CAST(N'2022-04-17T18:34:23.980' AS DateTime), N'sa')
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9914', N'Bantam Spectra', N'New York City', N'NY', N'USA', N'DU8845', N'OX4936', N'A Storm of Swords', N'Epic Fantasy', 70.0000, 1000000.0000, 40, 1000000, N'A Storm of Swords is the third of seven planned novels in A Song of Ice and Fire, a fantasy series by American author George R. R. Martin. It was first published on August 8, 2000, in the United Kingdom, with a United States edition following in November 2000. Its publication was preceded by a novella called Path of the Dragon, which collects some of the Daenerys Targaryen chapters from the novel into a single book.', CAST(N'2000-08-08T00:00:00.000' AS DateTime), N'585-43-6756', N'Martin', N'George Raymond Richa', N'999 000-0000', NULL, N'New Jersey', N'NJ', NULL, NULL, 100, 1, CAST(N'2022-04-17T18:35:30.763' AS DateTime), N'sa')
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9914', N'Bantam Spectra', N'New York City', N'NY', N'USA', N'SU4434', N'DU8845', N'A Feast for Crows', N'Epic Fantasy', 70.0000, 1000000.0000, 40, 1000000, N'A Feast for Crows is the fourth of seven planned novels in the epic fantasy series A Song of Ice and Fire by American author George R. R. Martin. The novel was first published on October 17, 2005, in the United Kingdom, with a United States edition following on November 8, 2005.', CAST(N'2005-08-01T00:00:00.000' AS DateTime), N'585-43-6756', N'Martin', N'George Raymond Richa', N'999 000-0000', NULL, N'New Jersey', N'NJ', NULL, NULL, 100, 1, CAST(N'2022-04-17T18:36:25.470' AS DateTime), N'sa')
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9914', N'Bantam Spectra', N'New York City', N'NY', N'USA', N'MW2447', N'SU4434', N'A Dance with Dragons', N'Epic Fantasy', 70.0000, 1000000.0000, 40, 1000000, N'A Dance with Dragons is the fifth novel of seven planned in the epic fantasy series A Song of Ice and Fire by American author George R. R. Martin. In some areas, the paperback edition was published in two parts, titled Dreams and Dust and After the Feast. It was the only novel in the series to be published during the eight-season run of the HBO adaptation of the series, Game of Thrones, and runs to 1,040 pages with a word count of almost 415,000.', CAST(N'2011-07-12T00:00:00.000' AS DateTime), N'585-43-6756', N'Martin', N'George Raymond Richa', N'999 000-0000', NULL, N'New Jersey', N'NJ', NULL, NULL, 100, 1, CAST(N'2022-04-17T18:37:44.370' AS DateTime), N'sa')
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9914', N'Bantam Spectra', N'New York City', N'NY', N'USA', N'TC2266', N'MW2447', N'The Winds of Winter', N'Epic Fantasy', 70.0000, 1000000.0000, 40, 1000000, N'The Winds of Winter is the planned sixth novel in the epic fantasy series A Song of Ice and Fire by American writer George R. R. Martin. Martin believes the last two volumes of the series will total over 3,000 manuscript pages. Martin has refrained from making hard estimates for the final release date of the novel.', CAST(N'2023-01-01T00:00:00.000' AS DateTime), N'585-43-6756', N'Martin', N'George Raymond Richa', N'999 000-0000', NULL, N'New Jersey', N'NJ', NULL, NULL, 100, 1, CAST(N'2022-04-17T18:39:01.020' AS DateTime), N'sa')
INSERT [Audit].[Book] ([pub_id], [pub_name], [pub_city], [pub_state], [pub_country], [random_title_id], [prequel_id], [book_title], [book_type], [book_price], [book_advance], [book_royalty], [book_ytd_sales], [book_notes], [book_pubdate], [random_au_id], [au_lname], [au_fname], [au_phone], [au_address], [au_city], [au_state], [au_zip], [au_contract], [royalty_per], [au_ord], [created_date], [created_by]) VALUES (N'9914', N'Bantam Spectra', N'New York City', N'NY', N'USA', N'SA4547', N'TC2266', N'A Dream of Spring', N'Epic Fantasy', 70.0000, 1000000.0000, 40, 1000000, N'A Dream of Spring is the planned title of the seventh volume of George R. R. Martin''s A Song of Ice and Fire series. The book is to follow The Winds of Winter and is intended to be the final volume of the series.', CAST(N'2024-01-01T00:00:00.000' AS DateTime), N'585-43-6756', N'Martin', N'George Raymond Richa', N'999 000-0000', NULL, N'New Jersey', N'NJ', NULL, NULL, 100, 1, CAST(N'2022-04-17T18:40:22.920' AS DateTime), N'sa')
GO
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'172-32-1176', N'White', N'Johnson', N'408 496-7223', N'10932 Bigge Rd.', N'Menlo Park', N'CA', N'94025', 1)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'182-52-8743', N'Rowling', N'Joanne', N'999 000-0000', N'3833, boulevard Beau Marchais', N'YATE', N' ', N'99796', 0)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'213-46-8915', N'Green', N'Marjorie', N'415 986-7020', N'309 63rd St. #411', N'Oakland', N'CA', N'94618', 1)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'238-95-7766', N'Carson', N'Cheryl', N'415 548-7723', N'589 Darwin Ln.', N'Berkeley', N'CA', N'94705', 1)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'254-26-6712', N'J.R.R.', N'Tolkien', N' ', N'448 Roanoke Dr.', N'London', NULL, N'99852', 1)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'267-41-2394', N'O''Leary', N'Michael', N'408 286-2428', N'22 Cleveland Av. #14', N'San Jose', N'CA', N'95128', 1)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'274-80-9391', N'Straight', N'Dean', N'415 834-2919', N'5420 College Av.', N'Oakland', N'CA', N'94609', 1)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'341-22-1782', N'Smith', N'Meander', N'913 843-0462', N'10 Mississippi Dr.', N'Lawrence', N'KS', N'66044', 0)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'388-60-7495', N'Von Zur Gathen', N'Joachim', N'000 000-0000', N'9918 Scottsdale Rd.', N'Bonn', NULL, N'99409', 0)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'408-40-8965', N'Acemoglu', N'Daron', N'999 000-0000', N'65, rue Faubourg St Antoine', N'Newton', N'MA', N'99402', 0)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'409-56-7008', N'Bennet', N'Abraham', N'415 658-9932', N'6223 Bateman St.', N'Berkeley', N'CA', N'94705', 1)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'427-17-2319', N'Dull', N'Ann', N'415 836-7128', N'3410 Blonde St.', N'Palo Alto', N'CA', N'94301', 1)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'472-27-2349', N'Gringlesby', N'Burt', N'707 938-6445', N'PO Box 792', N'Covelo', N'CA', N'95428', 1)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'486-29-1786', N'Locksley', N'Charlene', N'415 585-4620', N'18 Broadway Av.', N'San Francisco', N'CA', N'94130', 1)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'527-72-3246', N'Greene', N'Morningstar', N'615 297-2723', N'22 Graybar House Rd.', N'Nashville', N'TN', N'37215', 0)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'585-43-6756', N'Martin', N'George Raymond Richa', N'999 000-0000', N'5496 Village Pl.', N'New Jersey', N'NJ', N'99534', 1)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'648-92-1872', N'Blotchet-Halls', N'Reginald', N'503 745-6402', N'55 Hillsdale Bl.', N'Corvallis', N'OR', N'97330', 1)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'672-71-3249', N'Yokomoto', N'Akiko', N'415 935-4228', N'3 Silver Ct.', N'Walnut Creek', N'CA', N'94595', 1)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'712-45-1867', N'del Castillo', N'Innes', N'615 996-8275', N'2286 Cram Pl. #86', N'Ann Arbor', N'MI', N'48105', 1)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'722-51-5454', N'DeFrance', N'Michel', N'219 547-9982', N'3 Balding Pl.', N'Gary', N'IN', N'46403', 1)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'724-08-9931', N'Stringer', N'Dirk', N'415 843-2991', N'5420 Telegraph Av.', N'Oakland', N'CA', N'94609', 0)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'724-80-9391', N'MacFeather', N'Stearns', N'415 354-7128', N'44 Upland Hts.', N'Oakland', N'CA', N'94612', 1)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'756-30-7391', N'Karsen', N'Livia', N'415 534-9219', N'5720 McAuley St.', N'Oakland', N'CA', N'94609', 1)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'807-91-6654', N'Panteley', N'Sylvia', N'301 946-8853', N'1956 Arlington Pl.', N'Rockville', N'MD', N'20853', 1)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'846-92-7186', N'Hunter', N'Sheryl', N'415 836-7128', N'3410 Blonde St.', N'Palo Alto', N'CA', N'94301', 1)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'893-72-1158', N'McBadden', N'Heather', N'707 448-4982', N'301 Putnam', N'Vacaville', N'CA', N'95688', 0)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'899-46-2035', N'Ringer', N'Anne', N'801 826-0752', N'67 Seventh Av.', N'Salt Lake City', N'UT', N'84152', 1)
INSERT [dbo].[authors] ([au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract]) VALUES (N'998-72-3567', N'Ringer', N'Albert', N'801 826-0752', N'67 Seventh Av.', N'Salt Lake City', N'UT', N'84152', 1)
GO
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (1, N'BL4371', 1, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (2, N'BL4371', 2, N'NEW', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (3, N'BL4371', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (4, N'BL4371', 4, N'EXCELLENT', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (5, N'BL4371', 5, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (6, N'BL4371', 6, N'POOR', 0, 0)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (7, N'BL4371', 7, N'POOR', 0, 0)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (8, N'BR5671', 1, N'POOR', 0, 0)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (9, N'BR5671', 2, N'EXCELLENT', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (10, N'BR5671', 3, N'EXCELLENT', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (11, N'BR5671', 4, N'EXCELLENT', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (12, N'BR5671', 5, N'EXCELLENT', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (13, N'BR5671', 6, N'GOOD', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (14, N'BR5671', 7, N'WORN', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (15, N'BT6646', 1, N'NEW', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (16, N'BT6646', 2, N'NEW', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (17, N'BT6646', 3, N'EXCELLENT', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (18, N'BT6646', 4, N'EXCELLENT', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (19, N'BT6646', 5, N'POOR', 0, 0)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (20, N'BT6646', 6, N'POOR', 0, 0)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (21, N'ZJ4675', 1, N'POOR', 0, 0)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (22, N'ZJ4675', 2, N'POOR', 0, 0)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (23, N'ZJ4675', 3, N'POOR', 0, 0)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (24, N'ZJ4675', 4, N'GOOD', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (25, N'ZJ4675', 5, N'GOOD', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (26, N'ZJ4675', 6, N'GOOD', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (27, N'ZJ4675', 7, N'EXCELLENT', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (28, N'ZJ4675', 9, N'EXCELLENT', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (29, N'ZJ4675', 10, N'EXCELLENT', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (30, N'EX5727', 10, N'EXCELLENT', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (31, N'EX5727', 1, N'GOOD', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (32, N'EX5727', 2, N'GOOD', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (33, N'EX5727', 3, N'POOR', 0, 0)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (34, N'EX5727', 4, N'POOR', 0, 0)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (35, N'EX5727', 5, N'POOR', 0, 0)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (36, N'UX2157', 1, N'POOR', 0, 0)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (37, N'UX2157', 2, N'POOR', 0, 0)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (38, N'UX2157', 3, N'POOR', 0, 0)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (39, N'UX2157', 4, N'POOR', 0, 0)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (40, N'UX2157', 5, N'GOOD', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (41, N'UX2157', 6, N'GOOD', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (42, N'UX2157', 9, N'GOOD', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (43, N'UX2157', 10, N'GOOD', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (44, N'CI5668', 1, N'GOOD', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (45, N'CI5668', 10, N'GOOD', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (46, N'CI5668', 9, N'GOOD', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (47, N'CI5668', 2, N'GOOD', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (48, N'CI5668', 3, N'NEW', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (49, N'CI5668', 4, N'NEW', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (50, N'CI5668', 5, N'NEW', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (51, N'CI5668', 6, N'NEW', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (52, N'CI5668', 7, N'NEW', 0, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (53, N'OX4936', 1, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (54, N'MW2447', 1, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (55, N'SA4547', 1, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (56, N'SU4434', 1, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (57, N'DU8845', 1, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (58, N'PC1035', 1, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (59, N'PS1372', 1, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (60, N'BU1111', 1, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (61, N'FK3916', 1, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (62, N'PS7777', 1, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (63, N'TC4203', 1, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (64, N'GU4539', 1, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (65, N'TL7666', 1, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (66, N'LS2238', 1, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (67, N'QD5712', 1, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (68, N'VC5136', 1, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (69, N'YE3356', 1, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (70, N'OX4936', 2, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (71, N'MW2447', 2, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (72, N'SA4547', 2, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (73, N'SU4434', 2, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (74, N'DU8845', 2, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (75, N'PC1035', 2, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (76, N'PS1372', 2, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (77, N'BU1111', 2, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (78, N'FK3916', 2, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (79, N'PS7777', 2, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (80, N'TC4203', 2, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (81, N'GU4539', 2, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (82, N'TL7666', 2, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (83, N'LS2238', 2, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (84, N'QD5712', 2, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (85, N'VC5136', 2, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (86, N'YE3356', 2, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (87, N'PS2091', 2, N'EXCELLENT', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (88, N'PS2106', 2, N'EXCELLENT', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (89, N'PC9999', 2, N'EXCELLENT', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (90, N'TC3218', 2, N'EXCELLENT', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (91, N'PS3333', 2, N'EXCELLENT', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (92, N'PC8888', 2, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (93, N'MC2222', 2, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (94, N'OX4936', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (95, N'MW2447', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (96, N'SA4547', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (97, N'SU4434', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (98, N'DU8845', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (99, N'PC1035', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (100, N'PS1372', 3, N'NEW', 1, 1)
GO
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (101, N'BU1111', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (102, N'FK3916', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (103, N'PS7777', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (104, N'TC4203', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (105, N'GU4539', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (106, N'TL7666', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (107, N'LS2238', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (108, N'QD5712', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (109, N'VC5136', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (110, N'YE3356', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (111, N'PS2091', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (112, N'PS2106', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (113, N'PC9999', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (114, N'TC3218', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (115, N'PS3333', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (116, N'PC8888', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (117, N'MC2222', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (118, N'BU7832', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (119, N'TC7777', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (120, N'BU1032', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (121, N'MC3021', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (122, N'GE1743', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (123, N'UU5128', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (124, N'TC2266', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (125, N'BU2075', 3, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (126, N'OX4936', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (127, N'MW2447', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (128, N'SA4547', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (129, N'SU4434', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (130, N'DU8845', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (131, N'PC1035', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (132, N'PS1372', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (133, N'BU1111', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (134, N'FK3916', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (135, N'PS7777', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (136, N'TC4203', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (137, N'GU4539', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (138, N'TL7666', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (139, N'LS2238', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (140, N'QD5712', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (141, N'VC5136', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (142, N'YE3356', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (143, N'PS2091', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (144, N'PS2106', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (145, N'PC9999', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (146, N'TC3218', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (147, N'PS3333', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (148, N'PC8888', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (149, N'MC2222', 4, N'NEW', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (150, N'BU7832', 4, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (151, N'TC7777', 4, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (152, N'BU1032', 4, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (153, N'MC3021', 4, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (154, N'GE1743', 4, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (155, N'UU5128', 4, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (156, N'TC2266', 4, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (157, N'BU2075', 4, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (158, N'OX4936', 5, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (159, N'MW2447', 5, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (160, N'SA4547', 5, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (161, N'SU4434', 5, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (162, N'DU8845', 5, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (163, N'PC1035', 5, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (164, N'PS1372', 5, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (165, N'BU1111', 5, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (166, N'FK3916', 5, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (167, N'PS7777', 5, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (168, N'TC4203', 5, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (169, N'GU4539', 5, N'GOOD', 1, 1)
INSERT [dbo].[bookcopies] ([copy_id], [title_id], [branch_id], [condition], [isavailable], [isactive]) VALUES (170, N'TL7666', 5, N'GOOD', 1, 1)