-
Notifications
You must be signed in to change notification settings - Fork 0
/
40A-PrintBook-TitleCountAllLocations.ssc
56 lines (55 loc) · 3.93 KB
/
40A-PrintBook-TitleCountAllLocations.ssc
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
SELECT COUNT([OCLC Number]),[Institution Symbol]
FROM
(SELECT DISTINCT(dbo_acrl2020.[OCLC Number]), [Institution Symbol]
FROM dbo_acrl2020
WHERE
((dbo_acrl2020.[Institution Symbol]) In ('WVU'))
And
(
(((dbo_acrl2020.[Material Format]) In ('BOOKS','ARCHIVALMATERIALS','MUSICALSCORE','N/A')) And
(((dbo_acrl2020.[Material Subformat]) Not In ('BOOKS:MICROFORM','CONTINUALLYUPDATEDRESOURCES')) And
(((dbo_acrl2020.[LHR Item Permanent Shelving Location]) Not In ('Microfiche', 'Microfilm', 'Media Services Equipment 1 Day', 'Government Documents Media', 'Government Documents Microfiche', 'Government Documents Microfilm', 'Media Services Equipment 7 Day', 'Laptops', 'Microcard', 'Access Services Desk - Audio Compact Disc', 'Access Services Desk - Compact Disc', 'Tech Equipment 8 hour', 'DVD', 'Access Services Desk - Audio Cassette', 'Audiovisuals', 'CD-ROM', 'DVDS', 'Media','Periodicals', 'Microphotography'))
)))))
GROUP BY [Institution Symbol]
UNION
SELECT COUNT([OCLC Number]),[Institution Symbol]
FROM
(SELECT DISTINCT(dbo_acrl2020.[OCLC Number]), [Institution Symbol]
FROM dbo_acrl2020
WHERE
((dbo_acrl2020.[Institution Symbol]) In ('WVT'))
And
(
(((dbo_acrl2020.[Material Format]) In ('BOOKS','ARCHIVALMATERIALS','MUSICALSCORE','N/A')) And
(((dbo_acrl2020.[Material Subformat]) Not In ('BOOKS:MICROFORM','CONTINUALLYUPDATEDRESOURCES')) And
(((dbo_acrl2020.[LHR Item Permanent Shelving Location]) Not In ('Microfiche', 'Microfilm', 'Media Services Equipment 1 Day', 'Government Documents Media', 'Government Documents Microfiche', 'Government Documents Microfilm', 'Media Services Equipment 7 Day', 'Laptops', 'Microcard', 'Access Services Desk - Audio Compact Disc', 'Access Services Desk - Compact Disc', 'Tech Equipment 8 hour', 'DVD', 'Access Services Desk - Audio Cassette', 'Audiovisuals', 'CD-ROM', 'DVDS', 'Media','Periodicals', 'Microphotography'))
)))))
GROUP BY [Institution Symbol]
UNION
SELECT COUNT([OCLC Number]),[Institution Symbol]
FROM
(SELECT DISTINCT(dbo_acrl2020.[OCLC Number]), [Institution Symbol]
FROM dbo_acrl2020
WHERE
((dbo_acrl2020.[Institution Symbol]) In ('PWS'))
And
(
(((dbo_acrl2020.[Material Format]) In ('BOOKS','ARCHIVALMATERIALS','MUSICALSCORE','N/A')) And
(((dbo_acrl2020.[Material Subformat]) Not In ('BOOKS:MICROFORM','CONTINUALLYUPDATEDRESOURCES')) And
(((dbo_acrl2020.[LHR Item Permanent Shelving Location]) Not In ('Microfiche', 'Microfilm', 'Media Services Equipment 1 Day', 'Government Documents Media', 'Government Documents Microfiche', 'Government Documents Microfilm', 'Media Services Equipment 7 Day', 'Laptops', 'Microcard', 'Access Services Desk - Audio Compact Disc', 'Access Services Desk - Compact Disc', 'Tech Equipment 8 hour', 'DVD', 'Access Services Desk - Audio Cassette', 'Audiovisuals', 'CD-ROM', 'DVDS', 'Media','Periodicals', 'Microphotography'))
)))))
GROUP BY [Institution Symbol]
UNION
SELECT COUNT([OCLC Number]),[Institution Symbol]
FROM
(SELECT DISTINCT(dbo_acrl2020.[OCLC Number]), [Institution Symbol]
FROM dbo_acrl2020
WHERE
((dbo_acrl2020.[Institution Symbol]) In ('WVUHS'))
And
(
(((dbo_acrl2020.[Material Format]) In ('BOOKS','ARCHIVALMATERIALS','MUSICALSCORE','N/A')) And
(((dbo_acrl2020.[Material Subformat]) Not In ('BOOKS:MICROFORM','CONTINUALLYUPDATEDRESOURCES')) And
(((dbo_acrl2020.[LHR Item Permanent Shelving Location]) Not In ('Microfiche', 'Microfilm', 'Media Services Equipment 1 Day', 'Government Documents Media', 'Government Documents Microfiche', 'Government Documents Microfilm', 'Media Services Equipment 7 Day', 'Laptops', 'Microcard', 'Access Services Desk - Audio Compact Disc', 'Access Services Desk - Compact Disc', 'Tech Equipment 8 hour', 'DVD', 'Access Services Desk - Audio Cassette', 'Audiovisuals', 'CD-ROM', 'DVDS', 'Media','Periodicals', 'Microphotography'))
)))))
GROUP BY [Institution Symbol];