]> git.donarmstrong.com Git - dbsnp.git/blob - schema/shared_schema/dbSNP_main_view.sql
add initial files
[dbsnp.git] / schema / shared_schema / dbSNP_main_view.sql
1 SET QUOTED_IDENTIFIER ON 
2 GO
3 SET ANSI_NULLS ON 
4 GO
5
6 create view vwAllele
7 as
8 select a.allele_id, a.rev_allele_id, a.allele, r.allele rev_allele
9 from dbo.Allele a (index (i_rev_allele_id)) join dbo.Allele r (index (pk_Allele))  on a.rev_allele_id = r.allele_id
10
11 GO
12 SET QUOTED_IDENTIFIER OFF 
13 GO
14 SET ANSI_NULLS ON 
15 GO
16
17
18 SET QUOTED_IDENTIFIER ON 
19 GO
20 SET ANSI_NULLS ON 
21 GO
22
23 create view vwAllele_rev_flag (allele_id, rev_flag, fwd_allele_id, fwd_allele)
24 as
25 select allele_id, 0,  allele_id, allele From Allele
26 union 
27 select allele_id, 1, rev_allele_id, rev_allele from vwAllele
28
29
30 GO
31 SET QUOTED_IDENTIFIER OFF 
32 GO
33 SET ANSI_NULLS ON 
34 GO
35
36
37 SET QUOTED_IDENTIFIER ON 
38 GO
39 SET ANSI_NULLS ON 
40 GO
41
42 create view vwMotif
43 as
44
45 select distinct m.motif_id, m.motif, r.motif_id rev_motif_id, r.motif rev_motif, m.last_updated_time
46 from Motif m join Motif r on m.motif_id = r.rev_motif_id
47
48 GO
49 SET QUOTED_IDENTIFIER OFF 
50 GO
51 SET ANSI_NULLS ON 
52 GO
53
54
55 SET QUOTED_IDENTIFIER ON 
56 GO
57 SET ANSI_NULLS ON 
58 GO
59
60 create view vwMotif_rev ( motif_id, rev_flag, fwd_motif, fwd_motif_id)
61 as
62 /* log: 11/4/04 updated. when ref_flag=1, fwd_motif_id should be motif_id!
63  */
64 select motif_id, 0, motif, motif_id from Motif
65 union 
66 select motif_id, 1, rev_motif,  rev_motif_id from vwMotif
67
68 GO
69 SET QUOTED_IDENTIFIER OFF 
70 GO
71 SET ANSI_NULLS ON 
72 GO
73
74
75 SET QUOTED_IDENTIFIER ON 
76 GO
77 SET ANSI_NULLS ON 
78 GO
79
80 CREATE VIEW dbo.vw_ABI_RsMergeArch
81 AS
82 SELECT     human_9606.dbo.RsMergeArch.* FROM         human_9606.dbo.RsMergeArch union
83 SELECT     mouse_10090.dbo.RsMergeArch.* FROM         mouse_10090.dbo.RsMergeArch
84
85
86 GO
87 SET QUOTED_IDENTIFIER OFF 
88 GO
89 SET ANSI_NULLS ON 
90 GO
91
92
93 SET QUOTED_IDENTIFIER ON 
94 GO
95 SET ANSI_NULLS ON 
96 GO
97
98 CREATE VIEW dbo.vw_ABI_SNP
99 AS
100 SELECT     ss.* FROM         human_9606.dbo.SNP ss  union 
101 SELECT ss.* FROM         mouse_10090.dbo.SNP ss
102 GO
103 SET QUOTED_IDENTIFIER OFF 
104 GO
105 SET ANSI_NULLS ON 
106 GO
107
108
109 SET QUOTED_IDENTIFIER OFF 
110 GO
111 SET ANSI_NULLS ON 
112 GO
113
114 CREATE VIEW dbo.vw_ABI_SubSNP
115 AS
116 SELECT    ss.*
117 FROM         human_9606.dbo.SubSNP ss,  human_9606.dbo.Batch b where b.handle = 'ABI' and b.batch_id = ss.batch_id union
118 SELECT ss.*
119 FROM         mouse_10090.dbo.SubSNP ss,  mouse_10090.dbo.Batch b where b.handle = 'ABI' and b.batch_id = ss.batch_id 
120
121
122
123 GO
124 SET QUOTED_IDENTIFIER OFF 
125 GO
126 SET ANSI_NULLS ON 
127 GO
128
129
130 SET QUOTED_IDENTIFIER OFF 
131 GO
132 SET ANSI_NULLS OFF 
133 GO
134
135 create view vw_BatchCita as 
136 select * from arabidopsis_3702..BatchCita union
137 select * from bison_9901..BatchCita union
138 select * from blackbird_39638..BatchCita union
139 select * from bonobo_9597..BatchCita union
140 select * from chicken_9031..BatchCita union
141 select * from chimpanzee_9598..BatchCita union
142 select * from cooperia_27828..BatchCita union
143 select * from corn_4577..BatchCita union
144 select * from cow_30522..BatchCita union
145 select * from cow_9913..BatchCita union
146 select * from dog_9615..BatchCita union
147 select * from flycatcher_46689..BatchCita union
148 select * from flycatcher_59894..BatchCita union
149 select * from gorilla_9593..BatchCita union
150 select * from horse_9796..BatchCita union
151 select * from human_9606..BatchCita union
152 select * from macaque_9544..BatchCita union
153 select * from mosquito_7165..BatchCita union
154 select * from mouse_10090..BatchCita union
155 select * from mouse_spretus_10096..BatchCita union
156 select * from nematode_6239..BatchCita union
157 select * from orangutan_9600..BatchCita union
158 select * from pig_9823..BatchCita union
159 select * from pine_71647..BatchCita union
160 select * from plasmodium_5833..BatchCita union
161 select * from rat_10116..BatchCita union
162 select * from rat_10118..BatchCita union
163 select * from rice_4530..BatchCita union
164 select * from salmon_8030..BatchCita union
165 select * from sheep_9940..BatchCita union
166 select * from soybean_3847..BatchCita union
167 select * from sugarcane_128810..BatchCita union
168 select * from trematode_6183..BatchCita union
169 select * from tubeworm_216498..BatchCita union
170 select * from zebrafish_7955..BatchCita
171
172 GO
173 SET QUOTED_IDENTIFIER OFF 
174 GO
175 SET ANSI_NULLS ON 
176 GO
177
178
179 SET QUOTED_IDENTIFIER OFF 
180 GO
181 SET ANSI_NULLS OFF 
182 GO
183
184 create view vw_ContigExon as 
185 select * from bison_9901..vw_ContigExon union
186 select * from chicken_9031..vw_ContigExon union
187 select * from chimpanzee_9598..vw_ContigExon union
188 select * from cow_30522..vw_ContigExon union
189 select * from cow_9913..vw_ContigExon union
190 select * from dog_9615..vw_ContigExon union
191 select * from human_9606..vw_ContigExon union
192 select * from mosquito_7165..vw_ContigExon union
193 select * from mouse_10090..vw_ContigExon union
194 select * from nematode_6239..vw_ContigExon union
195 select * from rat_10116..vw_ContigExon union
196 select * from rice_4530..vw_ContigExon union
197 select * from zebrafish_7955..vw_ContigExon
198
199 GO
200 SET QUOTED_IDENTIFIER OFF 
201 GO
202 SET ANSI_NULLS ON 
203 GO
204
205
206 SET QUOTED_IDENTIFIER OFF 
207 GO
208 SET ANSI_NULLS OFF 
209 GO
210
211 create view vw_ContigInfo as 
212 select * from bison_9901..vw_ContigInfo union
213 select * from chicken_9031..vw_ContigInfo union
214 select * from chimpanzee_9598..vw_ContigInfo union
215 select * from cow_30522..vw_ContigInfo union
216 select * from cow_9913..vw_ContigInfo union
217 select * from dog_9615..vw_ContigInfo union
218 select * from human_9606..vw_ContigInfo union
219 select * from mosquito_7165..vw_ContigInfo union
220 select * from mouse_10090..vw_ContigInfo union
221 select * from nematode_6239..vw_ContigInfo union
222 select * from rat_10116..vw_ContigInfo union
223 select * from rice_4530..vw_ContigInfo union
224 select * from zebrafish_7955..vw_ContigInfo
225
226 GO
227 SET QUOTED_IDENTIFIER OFF 
228 GO
229 SET ANSI_NULLS ON 
230 GO
231
232
233 SET QUOTED_IDENTIFIER OFF 
234 GO
235 SET ANSI_NULLS ON 
236 GO
237
238 CREATE VIEW dbo.vw_E_Maplink
239 AS
240 select * from bison_9901..vw_MapLink union
241 select * from chicken_9031..vw_MapLink union
242 select * from chimpanzee_9598..vw_MapLink union
243 select * from cow_30522..vw_MapLink union
244 select * from cow_9913..vw_MapLink union
245 select * from dog_9615..vw_MapLink union
246 select * from human_9606..vw_E_MapLink union
247 select * from mosquito_7165..vw_MapLink union
248 select * from mouse_10090..vw_MapLink union
249 select * from nematode_6239..vw_MapLink union
250 select * from rat_10116..vw_MapLink union
251 select * from rice_4530..vw_MapLink union
252 select * from zebrafish_7955..vw_MapLink
253
254
255 GO
256 SET QUOTED_IDENTIFIER OFF 
257 GO
258 SET ANSI_NULLS ON 
259 GO
260
261
262 SET QUOTED_IDENTIFIER OFF 
263 GO
264 SET ANSI_NULLS OFF 
265 GO
266
267  create view vw_IndivSourceCode  as  select * from arabidopsis_3702..IndivSourceCode union  select * from bee_7460..IndivSourceCode union  select * from bison_9901..IndivSourceCode union  select * from blackbird_39638..IndivSourceCode union  select * from bonobo_9597..IndivSourceCode union  select * from chicken_9031..IndivSourceCode union  select * from chimpanzee_9598..IndivSourceCode union  select * from cooperia_27828..IndivSourceCode union  select * from corn_4577..IndivSourceCode union  select * from cow_30522..IndivSourceCode union  select * from cow_9913..IndivSourceCode union  select * from dog_9615..IndivSourceCode union  select * from flycatcher_46689..IndivSourceCode union  select * from flycatcher_59894..IndivSourceCode union  select * from fruitfly_7227..IndivSourceCode union  select * from gorilla_9593..IndivSourceCode union  select * from horse_9796..IndivSourceCode union  select * from human_9606..IndivSourceCode union  select * from macaque_9544..IndivSourceCode union  select * from mosquito_7165..IndivSourceCode union  select * from mouse_10090..IndivSourceCode union  select * from mouse_spretus_10096..IndivSourceCode union  select * from nematode_6239..IndivSourceCode union  select * from orangutan_9600..IndivSourceCode union  select * from pig_9823..IndivSourceCode union  select * from pine_71647..IndivSourceCode union  select * from plasmodium_5833..IndivSourceCode union  select * from rat_10116..IndivSourceCode union  select * from rat_10118..IndivSourceCode union  select * from rice_4530..IndivSourceCode union  select * from salmon_8030..IndivSourceCode union  select * from sheep_9940..IndivSourceCode union  select * from soybean_3847..IndivSourceCode union  select * from sugarcane_128810..IndivSourceCode union  select * from trematode_6183..IndivSourceCode union  select * from trout_8022..IndivSourceCode union  select * from tubeworm_216498..IndivSourceCode union  select * from zebrafish_7955..IndivSourceCode
268 GO
269 SET QUOTED_IDENTIFIER OFF 
270 GO
271 SET ANSI_NULLS ON 
272 GO
273
274
275 SET QUOTED_IDENTIFIER OFF 
276 GO
277 SET ANSI_NULLS OFF 
278 GO
279
280 create view vw_MapLink as 
281 select * from bison_9901..vw_MapLink union
282 select * from chicken_9031..vw_MapLink union
283 select * from chimpanzee_9598..vw_MapLink union
284 select * from cow_30522..vw_MapLink union
285 select * from cow_9913..vw_MapLink union
286 select * from dog_9615..vw_MapLink union
287 select * from human_9606..vw_MapLink union
288 select * from mosquito_7165..vw_MapLink union
289 select * from mouse_10090..vw_MapLink union
290 select * from nematode_6239..vw_MapLink union
291 select * from rat_10116..vw_MapLink union
292 select * from rice_4530..vw_MapLink union
293 select * from zebrafish_7955..vw_MapLink
294
295 GO
296 SET QUOTED_IDENTIFIER OFF 
297 GO
298 SET ANSI_NULLS ON 
299 GO
300
301
302 SET QUOTED_IDENTIFIER OFF 
303 GO
304 SET ANSI_NULLS OFF 
305 GO
306
307  create view vw_Pedigree  as  select * from arabidopsis_3702..Pedigree union  select * from bee_7460..Pedigree union  select * from bison_9901..Pedigree union  select * from blackbird_39638..Pedigree union  select * from bonobo_9597..Pedigree union  select * from chicken_9031..Pedigree union  select * from chimpanzee_9598..Pedigree union  select * from cooperia_27828..Pedigree union  select * from corn_4577..Pedigree union  select * from cow_30522..Pedigree union  select * from cow_9913..Pedigree union  select * from dog_9615..Pedigree union  select * from flycatcher_46689..Pedigree union  select * from flycatcher_59894..Pedigree union  select * from fruitfly_7227..Pedigree union  select * from gorilla_9593..Pedigree union  select * from horse_9796..Pedigree union  select * from human_9606..Pedigree union  select * from macaque_9544..Pedigree union  select * from mosquito_7165..Pedigree union  select * from mouse_10090..Pedigree union  select * from mouse_spretus_10096..Pedigree union  select * from nematode_6239..Pedigree union  select * from orangutan_9600..Pedigree union  select * from pig_9823..Pedigree union  select * from pine_71647..Pedigree union  select * from plasmodium_5833..Pedigree union  select * from rat_10116..Pedigree union  select * from rat_10118..Pedigree union  select * from rice_4530..Pedigree union  select * from salmon_8030..Pedigree union  select * from sheep_9940..Pedigree union  select * from soybean_3847..Pedigree union  select * from sugarcane_128810..Pedigree union  select * from trematode_6183..Pedigree union  select * from trout_8022..Pedigree union  select * from tubeworm_216498..Pedigree union  select * from zebrafish_7955..Pedigree
308 GO
309 SET QUOTED_IDENTIFIER OFF 
310 GO
311 SET ANSI_NULLS ON 
312 GO
313
314
315 SET QUOTED_IDENTIFIER OFF 
316 GO
317 SET ANSI_NULLS OFF 
318 GO
319
320  create view vw_Population  as  select * from arabidopsis_3702..Population union  select * from bee_7460..Population union  select * from bison_9901..Population union  select * from blackbird_39638..Population union  select * from bonobo_9597..Population union  select * from chicken_9031..Population union  select * from chimpanzee_9598..Population union  select * from cooperia_27828..Population union  select * from corn_4577..Population union  select * from cow_30522..Population union  select * from cow_9913..Population union  select * from dog_9615..Population union  select * from flycatcher_46689..Population union  select * from flycatcher_59894..Population union  select * from gorilla_9593..Population union  select * from horse_9796..Population union  select * from human_9606..Population union  select * from macaque_9544..Population union  select * from mosquito_7165..Population union  select * from mouse_10090..Population union  select * from mouse_spretus_10096..Population union  select * from nematode_6239..Population union  select * from orangutan_9600..Population union  select * from pig_9823..Population union  select * from pine_71647..Population union  select * from plasmodium_5833..Population union  select * from rat_10116..Population union  select * from rat_10118..Population union  select * from rice_4530..Population union  select * from salmon_8030..Population union  select * from sheep_9940..Population union  select * from soybean_3847..Population union  select * from sugarcane_128810..Population union  select * from trematode_6183..Population union  select * from tubeworm_216498..Population union  select * from zebrafish_7955..Population
321 GO
322 SET QUOTED_IDENTIFIER OFF 
323 GO
324 SET ANSI_NULLS ON 
325 GO
326
327
328 SET QUOTED_IDENTIFIER ON 
329 GO
330 SET ANSI_NULLS OFF 
331 GO
332
333 CREATE VIEW dbo.vw_ProteinInfo
334 AS
335 select * from cat_9685.dbo.b127_ProteinInfo_1_1 union
336 select * from zebrafish_7955.dbo.b127_ProteinInfo_0_0 union
337 select * from human_9606.dbo.b127_ProteinInfo_36_2 union
338 select * from bee_7460.dbo.b127_ProteinInfo_0_0 union
339 select * from rice_4530.dbo.b127_ProteinInfo_0_0 union
340 select * from mosquito_7165.dbo.b127_ProteinInfo_0_0 union
341 select * from plasmodium_5833.dbo.b127_ProteinInfo_0_0 union
342 select * from chicken_9031.dbo.b127_ProteinInfo_0_0 union
343 select * from cow_30522.dbo.b127_ProteinInfo_3_1 union
344 select * from chimpanzee_9598.dbo.b127_ProteinInfo_2_1 union
345 select * from cow_9913.dbo.b127_ProteinInfo_3_1 union
346 select * from nematode_6239.dbo.b127_ProteinInfo_0_0 union
347 select * from bison_9901.dbo.b127_ProteinInfo_3_1
348
349
350
351 GO
352 SET QUOTED_IDENTIFIER OFF 
353 GO
354 SET ANSI_NULLS ON 
355 GO
356
357
358 SET QUOTED_IDENTIFIER ON 
359 GO
360 SET ANSI_NULLS ON 
361 GO
362
363 CREATE VIEW dbo.vw_PubMedSNP
364 AS
365 SELECT DISTINCT snp_id_cited AS snp_id, pmid, 0 AS score
366 FROM         dbSNP_oper.yuguo.PubMedSNP
367
368 GO
369 SET QUOTED_IDENTIFIER OFF 
370 GO
371 SET ANSI_NULLS ON 
372 GO
373
374
375 SET QUOTED_IDENTIFIER OFF 
376 GO
377 SET ANSI_NULLS ON 
378 GO
379
380 CREATE view vw_SNP3D as  
381 select * from arabidopsis_3702..SNP3D union  
382 select * from bee_7460..SNP3D union  
383 select * from bison_9901..SNP3D union  
384 select * from blackbird_39638..SNP3D union  
385 select * from bonobo_9597..SNP3D union  
386 select * from chicken_9031..SNP3D union  
387 select * from chimpanzee_9598..SNP3D union  
388 select * from cooperia_27828..SNP3D union  
389 select * from corn_4577..SNP3D union  
390 select * from cow_30522..SNP3D union 
391  select * from cow_9913..SNP3D union  
392 select * from dog_9615..SNP3D union  
393 select * from flycatcher_46689..SNP3D union  
394 select * from flycatcher_59894..SNP3D union  
395 select * from gorilla_9593..SNP3D union  
396 select * from horse_9796..SNP3D union  
397 select * from human_9606..SNP3D  union  select * from macaque_9544..SNP3D union  select * from mosquito_7165..SNP3D union  select * from mouse_10090..SNP3D union  select * from mouse_spretus_10096..SNP3D union  select * from nematode_6239..SNP3D union  select * from orangutan_9600..SNP3D union  select * from pig_9823..SNP3D union  select * from pine_71647..SNP3D union  select * from plasmodium_5833..SNP3D union  select * from rat_10116..SNP3D union  select * from rat_10118..SNP3D union  select * from rice_4530..SNP3D union  select * from salmon_8030..SNP3D union  select * from sheep_9940..SNP3D union  select * from soybean_3847..SNP3D union  select * from sugarcane_128810..SNP3D union  select * from trematode_6183..SNP3D union  select * from tubeworm_216498..SNP3D union  select * from zebrafish_7955..SNP3D 
398
399
400
401
402
403 GO
404 SET QUOTED_IDENTIFIER OFF 
405 GO
406 SET ANSI_NULLS ON 
407 GO
408
409
410 SET QUOTED_IDENTIFIER OFF 
411 GO
412 SET ANSI_NULLS OFF 
413 GO
414
415 CREATE view vw_SNPContigLoc as 
416 select * from mosquito_7165..vw_SNPContigLoc
417 /*
418 union
419 select * from bee_7460..vw_SNPContigLoc
420
421 union 
422 select * from bison_9901..vw_SNPContigLoc
423  union
424 select * from cow_30522..vw_SNPContigLoc
425 union
426 select * from cow_9913..vw_SNPContigLoc
427 union
428 select * from nematode_6239..vw_SNPContigLoc
429 union
430 select * from dog_9615..vw_SNPContigLoc
431 union
432 select * from zebrafish_7955..vw_SNPContigLoc
433 union
434 select * from chicken_9031..vw_SNPContigLoc
435 union
436 select * from human_9606..vw_SNPContigLoc
437 union
438 select * from mouse_10090..vw_SNPContigLoc
439 union
440 select * from rice_4530..vw_SNPContigLoc
441 union
442 select * from chimpanzee_9598..vw_SNPContigLoc
443 union
444 select * from rat_10116..vw_SNPContigLoc
445
446 */
447
448
449
450 GO
451 SET QUOTED_IDENTIFIER OFF 
452 GO
453 SET ANSI_NULLS ON 
454 GO
455
456
457 SET QUOTED_IDENTIFIER OFF 
458 GO
459 SET ANSI_NULLS OFF 
460 GO
461
462 CREATE view [dbo].[vw_SNPContigLocusId] as
463 select * from mosquito_7165..vw_SNPContigLocusId 
464 union
465 select * from bee_7460..vw_SNPContigLocusId 
466 union 
467 select * from bison_9901..vw_SNPContigLocusId
468 union 
469 select * from cow_30522..vw_SNPContigLocusId 
470 union
471 select * from cow_9913..vw_SNPContigLocusId 
472 union
473 select * from nematode_6239..vw_SNPContigLocusId 
474 union
475 select * from dog_9615..vw_SNPContigLocusId 
476 union
477 select * from zebrafish_7955..vw_SNPContigLocusId
478 union
479 select * from chicken_9031..vw_SNPContigLocusId
480 union 
481 select * from human_9606..vw_SNPContigLocusId 
482 union
483 select * from mouse_10090..vw_SNPContigLocusId 
484 union
485 select * from rice_4530..vw_SNPContigLocusId 
486 union
487 select * from chimpanzee_9598..vw_SNPContigLocusId
488 union
489 select * from rat_10116..vw_SNPContigLocusId
490
491
492
493 GO
494 SET QUOTED_IDENTIFIER OFF 
495 GO
496 SET ANSI_NULLS ON 
497 GO
498
499
500 SET QUOTED_IDENTIFIER OFF 
501 GO
502 SET ANSI_NULLS OFF 
503 GO
504
505 create view vw_SNPMapInfo as 
506 select * from bison_9901..vw_SNPMapInfo union
507 select * from chicken_9031..vw_SNPMapInfo union
508 select * from chimpanzee_9598..vw_SNPMapInfo union
509 select * from cow_30522..vw_SNPMapInfo union
510 select * from cow_9913..vw_SNPMapInfo union
511 select * from dog_9615..vw_SNPMapInfo union
512 select * from human_9606..vw_SNPMapInfo union
513 select * from mosquito_7165..vw_SNPMapInfo union
514 select * from mouse_10090..vw_SNPMapInfo union
515 select * from nematode_6239..vw_SNPMapInfo union
516 select * from rat_10116..vw_SNPMapInfo union
517 select * from rice_4530..vw_SNPMapInfo union
518 select * from zebrafish_7955..vw_SNPMapInfo
519
520 GO
521 SET QUOTED_IDENTIFIER OFF 
522 GO
523 SET ANSI_NULLS ON 
524 GO
525
526
527 SET QUOTED_IDENTIFIER ON 
528 GO
529 SET ANSI_NULLS ON 
530 GO
531
532 CREATE VIEW dbo.vw_SNP_Organism
533 AS
534 SELECT DISTINCT 
535                       o.organism, o.tax_id, o.common_name, o.gpipe_abbr, o.create_time, o.last_updated_time, o.comment, o.division_cd, o.database_name, 
536                       o.short_common_name, o.tax_id_rank, o.species_tax_id, o.no_freq_summary, o.entrez_index, o.pub_genome_build
537 FROM         dbo.SNP_tax_id AS s INNER JOIN
538                       dbo.OrganismTax AS o ON s.tax_id = o.tax_id
539
540 GO
541 SET QUOTED_IDENTIFIER OFF 
542 GO
543 SET ANSI_NULLS ON 
544 GO
545
546
547 SET QUOTED_IDENTIFIER OFF 
548 GO
549 SET ANSI_NULLS OFF 
550 GO
551
552 create view vw_SnpInSts as 
553 select * from arabidopsis_3702..SnpInSts union
554 select * from bison_9901..SnpInSts union
555 select * from blackbird_39638..SnpInSts union
556 select * from bonobo_9597..SnpInSts union
557 select * from chicken_9031..SnpInSts union
558 select * from chimpanzee_9598..SnpInSts union
559 select * from cooperia_27828..SnpInSts union
560 select * from corn_4577..SnpInSts union
561 select * from cow_30522..SnpInSts union
562 select * from cow_9913..SnpInSts union
563 select * from dog_9615..SnpInSts union
564 select * from flycatcher_46689..SnpInSts union
565 select * from flycatcher_59894..SnpInSts union
566 select * from gorilla_9593..SnpInSts union
567 select * from horse_9796..SnpInSts union
568 select * from human_9606..SnpInSts union
569 select * from macaque_9544..SnpInSts union
570 select * from mosquito_7165..SnpInSts union
571 select * from mouse_10090..SnpInSts union
572 select * from mouse_spretus_10096..SnpInSts union
573 select * from nematode_6239..SnpInSts union
574 select * from orangutan_9600..SnpInSts union
575 select * from pig_9823..SnpInSts union
576 select * from pine_71647..SnpInSts union
577 select * from plasmodium_5833..SnpInSts union
578 select * from rat_10116..SnpInSts union
579 select * from rat_10118..SnpInSts union
580 select * from rice_4530..SnpInSts union
581 select * from salmon_8030..SnpInSts union
582 select * from sheep_9940..SnpInSts union
583 select * from soybean_3847..SnpInSts union
584 select * from sugarcane_128810..SnpInSts union
585 select * from trematode_6183..SnpInSts union
586 select * from tubeworm_216498..SnpInSts union
587 select * from zebrafish_7955..SnpInSts
588
589 GO
590 SET QUOTED_IDENTIFIER OFF 
591 GO
592 SET ANSI_NULLS ON 
593 GO
594
595
596 SET QUOTED_IDENTIFIER OFF 
597 GO
598 SET ANSI_NULLS OFF 
599 GO
600
601  create view vw_SubSNPAcc as 
602 select * from cow_30522..SubSNPAcc union
603 select * from cow_9913..SubSNPAcc union
604 select * from human_9606..SubSNPAcc union
605 select * from mouse_10090..SubSNPAcc union
606 select * from trout_8022..SubSNPAcc union
607 select * from arabidopsis_3702..SubSNPAcc union
608 select * from bison_9901..SubSNPAcc union
609 select * from blackbird_39638..SubSNPAcc union
610 select * from bonobo_9597..SubSNPAcc union
611 select * from chicken_9031..SubSNPAcc union
612 select * from chimpanzee_9598..SubSNPAcc union
613 select * from cooperia_27828..SubSNPAcc union
614 select * from corn_4577..SubSNPAcc union
615 select * from cow_30522..SubSNPAcc union
616 select * from cow_9913..SubSNPAcc union
617 select * from dog_9615..SubSNPAcc union
618 select * from flycatcher_46689..SubSNPAcc union
619 select * from flycatcher_59894..SubSNPAcc union
620 select * from gorilla_9593..SubSNPAcc union
621 select * from horse_9796..SubSNPAcc union
622 select * from human_9606..SubSNPAcc union
623 select * from macaque_9544..SubSNPAcc union
624 select * from mosquito_7165..SubSNPAcc union
625 select * from mouse_10090..SubSNPAcc union
626 select * from mouse_spretus_10096..SubSNPAcc union
627 select * from nematode_6239..SubSNPAcc union
628 select * from orangutan_9600..SubSNPAcc union
629 select * from pig_9823..SubSNPAcc union
630 select * from pine_71647..SubSNPAcc union
631 select * from plasmodium_5833..SubSNPAcc union
632 select * from rat_10116..SubSNPAcc union
633 select * from rat_10118..SubSNPAcc union
634 select * from rice_4530..SubSNPAcc union
635 select * from salmon_8030..SubSNPAcc union
636 select * from sheep_9940..SubSNPAcc union
637 select * from soybean_3847..SubSNPAcc union
638 select * from sugarcane_128810..SubSNPAcc union
639 select * from trematode_6183..SubSNPAcc union
640 select * from trout_8022..SubSNPAcc union
641 select * from tubeworm_216498..SubSNPAcc union
642 select * from zebrafish_7955..SubSNPAcc
643
644 GO
645 SET QUOTED_IDENTIFIER OFF 
646 GO
647 SET ANSI_NULLS ON 
648 GO
649
650
651 SET QUOTED_IDENTIFIER OFF 
652 GO
653 SET ANSI_NULLS OFF 
654 GO
655
656  create view vw_SubmittedIndividual  as  select * from arabidopsis_3702..SubmittedIndividual union  select * from bee_7460..SubmittedIndividual union  select * from bison_9901..SubmittedIndividual union  select * from blackbird_39638..SubmittedIndividual union  select * from bonobo_9597..SubmittedIndividual union  select * from chicken_9031..SubmittedIndividual union  select * from chimpanzee_9598..SubmittedIndividual union  select * from cooperia_27828..SubmittedIndividual union  select * from corn_4577..SubmittedIndividual union  select * from cow_30522..SubmittedIndividual union  select * from cow_9913..SubmittedIndividual union  select * from dog_9615..SubmittedIndividual union  select * from flycatcher_46689..SubmittedIndividual union  select * from flycatcher_59894..SubmittedIndividual union  select * from fruitfly_7227..SubmittedIndividual union  select * from gorilla_9593..SubmittedIndividual union  select * from horse_9796..SubmittedIndividual union  select * from human_9606..SubmittedIndividual union  select * from macaque_9544..SubmittedIndividual union  select * from mosquito_7165..SubmittedIndividual union  select * from mouse_10090..SubmittedIndividual union  select * from mouse_spretus_10096..SubmittedIndividual union  select * from nematode_6239..SubmittedIndividual union  select * from orangutan_9600..SubmittedIndividual union  select * from pig_9823..SubmittedIndividual union  select * from pine_71647..SubmittedIndividual union  select * from plasmodium_5833..SubmittedIndividual union  select * from rat_10116..SubmittedIndividual union  select * from rat_10118..SubmittedIndividual union  select * from rice_4530..SubmittedIndividual union  select * from salmon_74940..SubmittedIndividual union  select * from salmon_8030..SubmittedIndividual union  select * from sheep_9940..SubmittedIndividual union  select * from soybean_3847..SubmittedIndividual union  select * from sugarcane_128810..SubmittedIndividual union  select * from trematode_6183..SubmittedIndividual union  select * from trout_8022..SubmittedIndividual union  select * from tubeworm_216498..SubmittedIndividual union  select * from zebrafish_7955..SubmittedIndividual
657 GO
658 SET QUOTED_IDENTIFIER OFF 
659 GO
660 SET ANSI_NULLS ON 
661 GO
662
663
664 SET QUOTED_IDENTIFIER ON 
665 GO
666 SET ANSI_NULLS ON 
667 GO
668
669 CREATE VIEW dbo.vw_Submitter
670 AS
671 SELECT     *
672 FROM         dbo.Submitter
673
674 GO
675 SET QUOTED_IDENTIFIER OFF 
676 GO
677 SET ANSI_NULLS ON 
678 GO
679
680
681 SET QUOTED_IDENTIFIER OFF 
682 GO
683 SET ANSI_NULLS OFF 
684 GO
685
686  create view vw_all_Batch  as  select * from vw_all_Batch_part3 union all  select * from vw_all_Batch_part2 union all  select * from vw_all_Batch_part1
687 GO
688 SET QUOTED_IDENTIFIER OFF 
689 GO
690 SET ANSI_NULLS ON 
691 GO
692
693
694 SET QUOTED_IDENTIFIER OFF 
695 GO
696 SET ANSI_NULLS OFF 
697 GO
698
699  create view vw_all_BatchCita  as  select *, 'arabidopsis_3702' as dbName from arabidopsis_3702..BatchCita union all  select *, 'bee_7460' as dbName from bee_7460..BatchCita union all  select *, 'bison_9901' as dbName from bison_9901..BatchCita union all  select *, 'blackbird_39638' as dbName from blackbird_39638..BatchCita union all  select *, 'bonobo_9597' as dbName from bonobo_9597..BatchCita union all  select *, 'chicken_9031' as dbName from chicken_9031..BatchCita union all  select *, 'chimpanzee_9598' as dbName from chimpanzee_9598..BatchCita union all  select *, 'cooperia_27828' as dbName from cooperia_27828..BatchCita union all  select *, 'corn_4577' as dbName from corn_4577..BatchCita union all  select *, 'cow_30522' as dbName from cow_30522..BatchCita union all  select *, 'cow_9913' as dbName from cow_9913..BatchCita union all  select *, 'dog_9615' as dbName from dog_9615..BatchCita union all  select *, 'flycatcher_46689' as dbName from flycatcher_46689..BatchCita union all  select *, 'flycatcher_59894' as dbName from flycatcher_59894..BatchCita union all  select *, 'fruitfly_7227' as dbName from fruitfly_7227..BatchCita union all  select *, 'gorilla_9593' as dbName from gorilla_9593..BatchCita union all  select *, 'horse_9796' as dbName from horse_9796..BatchCita union all  select *, 'human_9606' as dbName from human_9606..BatchCita union all  select *, 'macaque_9544' as dbName from macaque_9544..BatchCita union all  select *, 'mosquito_7165' as dbName from mosquito_7165..BatchCita union all  select *, 'mouse_10090' as dbName from mouse_10090..BatchCita union all  select *, 'mouse_spretus_10096' as dbName from mouse_spretus_10096..BatchCita union all  select *, 'nematode_6239' as dbName from nematode_6239..BatchCita union all  select *, 'orangutan_9600' as dbName from orangutan_9600..BatchCita union all  select *, 'pig_9823' as dbName from pig_9823..BatchCita union all  select *, 'pine_71647' as dbName from pine_71647..BatchCita union all  select *, 'plasmodium_5833' as dbName from plasmodium_5833..BatchCita union all  select *, 'rat_10116' as dbName from rat_10116..BatchCita union all  select *, 'rat_10118' as dbName from rat_10118..BatchCita union all  select *, 'rice_4530' as dbName from rice_4530..BatchCita union all  select *, 'salmon_74940' as dbName from salmon_74940..BatchCita union all  select *, 'salmon_8030' as dbName from salmon_8030..BatchCita union all  select *, 'sheep_9940' as dbName from sheep_9940..BatchCita union all  select *, 'soybean_3847' as dbName from soybean_3847..BatchCita union all  select *, 'sugarcane_128810' as dbName from sugarcane_128810..BatchCita union all  select *, 'trematode_6183' as dbName from trematode_6183..BatchCita union all  select *, 'trout_8022' as dbName from trout_8022..BatchCita union all  select *, 'tubeworm_216498' as dbName from tubeworm_216498..BatchCita union all  select *, 'zebrafish_7955' as dbName from zebrafish_7955..BatchCita uni
700 GO
701 SET QUOTED_IDENTIFIER OFF 
702 GO
703 SET ANSI_NULLS ON 
704 GO
705
706
707 SET QUOTED_IDENTIFIER OFF 
708 GO
709 SET ANSI_NULLS OFF 
710 GO
711
712  create view vw_all_Batch_part1  as  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'arabidopsis_3702' as dbName from arabidopsis_3702..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'barrel_medic_3880' as dbName from barrel_medic_3880..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'bee_7460' as dbName from bee_7460..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'bison_9901' as dbName from bison_9901..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'blackbird_39638' as dbName from blackbird_39638..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'bonobo_9597' as dbName from bonobo_9597..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'cat_9685' as dbName from cat_9685..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'chicken_9031' as dbName from chicken_9031..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'chimpanzee_9598' as dbName from chimpanzee_9598..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'chimpanzee_9598' as dbName from chimpanzee_9598..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'chimpanzee_9598' as dbName from chimpanzee_9598..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'cooperia_27828' as dbName from cooperia_27828..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'corn_4577' as dbName from corn_4577..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'cow_30522' as dbName from cow_30522..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'cow_9913' as dbName from cow_9913..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'dog_9615' as dbName from dog_9615..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'flycatcher_46689' as dbName from flycatcher_46689..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'flycatcher_59894' as dbName from flycatcher_59894..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'fruitfly_7227' as dbName from fruitfly_7227..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'fusarium_5518' as dbName from fusarium_5518..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'gorilla_9593' as dbName from gorilla_9593..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'gorilla_9593' as dbName from gorilla_9593..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'grape_29760' as dbName from grape_29760..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'horse_9796' as dbName from horse_9796..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'human_9606' as dbName from human_9606..Batch
713 GO
714 SET QUOTED_IDENTIFIER OFF 
715 GO
716 SET ANSI_NULLS ON 
717 GO
718
719
720 SET QUOTED_IDENTIFIER OFF 
721 GO
722 SET ANSI_NULLS OFF 
723 GO
724
725  create view vw_all_Batch_part2  as  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'macaque_9541' as dbName from macaque_9541..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'macaque_9544' as dbName from macaque_9544..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'mosquito_62324' as dbName from mosquito_62324..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'mosquito_7165' as dbName from mosquito_7165..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'mouse_10090' as dbName from mouse_10090..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'mouse_spretus_10096' as dbName from mouse_spretus_10096..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'nematode_6238' as dbName from nematode_6238..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'nematode_6239' as dbName from nematode_6239..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'onion_4679' as dbName from onion_4679..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'opossum_13616' as dbName from opossum_13616..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'orangutan_9600' as dbName from orangutan_9600..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'pig_9823' as dbName from pig_9823..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'pine_71647' as dbName from pine_71647..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'plasmodium_5833' as dbName from plasmodium_5833..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'platypus_9258' as dbName from platypus_9258..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'rat_10116' as dbName from rat_10116..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'rat_10118' as dbName from rat_10118..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'rice_4530' as dbName from rice_4530..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'salmon_74940' as dbName from salmon_74940..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'salmon_8018' as dbName from salmon_8018..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'salmon_8019' as dbName from salmon_8019..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'salmon_8023' as dbName from salmon_8023..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'salmon_8030' as dbName from salmon_8030..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'sheep_9940' as dbName from sheep_9940..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'soybean_3847' as dbName from soybean_3847..Batch
726 GO
727 SET QUOTED_IDENTIFIER OFF 
728 GO
729 SET ANSI_NULLS ON 
730 GO
731
732
733 SET QUOTED_IDENTIFIER OFF 
734 GO
735 SET ANSI_NULLS OFF 
736 GO
737
738  create view vw_all_Batch_part3  as  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'sugarcane_128810' as dbName from sugarcane_128810..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'tilapia_8128' as dbName from tilapia_8128..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'tomato_4081' as dbName from tomato_4081..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'trematode_6183' as dbName from trematode_6183..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'trout_8022' as dbName from trout_8022..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'tubeworm_216498' as dbName from tubeworm_216498..Batch union all  select batch_id,batch_type,handle,loc_batch_id,tax_id,build_id, method_id, submitted_time, 'zebrafish_7955' as dbName from zebrafish_7955..Batch
739 GO
740 SET QUOTED_IDENTIFIER OFF 
741 GO
742 SET ANSI_NULLS ON 
743 GO
744
745
746 SET QUOTED_IDENTIFIER OFF 
747 GO
748 SET ANSI_NULLS OFF 
749 GO
750
751  create view vw_all_IndivSourceCode  as  select *, 'arabidopsis_3702' as dbName from arabidopsis_3702..IndivSourceCode union all  select *, 'bee_7460' as dbName from bee_7460..IndivSourceCode union all  select *, 'bison_9901' as dbName from bison_9901..IndivSourceCode union all  select *, 'blackbird_39638' as dbName from blackbird_39638..IndivSourceCode union all  select *, 'bonobo_9597' as dbName from bonobo_9597..IndivSourceCode union all  select *, 'chicken_9031' as dbName from chicken_9031..IndivSourceCode union all  select *, 'chimpanzee_9598' as dbName from chimpanzee_9598..IndivSourceCode union all  select *, 'cooperia_27828' as dbName from cooperia_27828..IndivSourceCode union all  select *, 'corn_4577' as dbName from corn_4577..IndivSourceCode union all  select *, 'cow_30522' as dbName from cow_30522..IndivSourceCode union all  select *, 'cow_9913' as dbName from cow_9913..IndivSourceCode union all  select *, 'dog_9615' as dbName from dog_9615..IndivSourceCode union all  select *, 'flycatcher_46689' as dbName from flycatcher_46689..IndivSourceCode union all  select *, 'flycatcher_59894' as dbName from flycatcher_59894..IndivSourceCode union all  select *, 'fruitfly_7227' as dbName from fruitfly_7227..IndivSourceCode union all  select *, 'gorilla_9593' as dbName from gorilla_9593..IndivSourceCode union all  select *, 'horse_9796' as dbName from horse_9796..IndivSourceCode union all  select *, 'human_9606' as dbName from human_9606..IndivSourceCode union all  select *, 'macaque_9544' as dbName from macaque_9544..IndivSourceCode union all  select *, 'mosquito_7165' as dbName from mosquito_7165..IndivSourceCode union all  select *, 'mouse_10090' as dbName from mouse_10090..IndivSourceCode union all  select *, 'mouse_spretus_10096' as dbName from mouse_spretus_10096..IndivSourceCode union all  select *, 'nematode_6239' as dbName from nematode_6239..IndivSourceCode union all  select *, 'orangutan_9600' as dbName from orangutan_9600..IndivSourceCode union all  select *, 'pig_9823' as dbName from pig_9823..IndivSourceCode union all  select *, 'pine_71647' as dbName from pine_71647..IndivSourceCode union all  select *, 'plasmodium_5833' as dbName from plasmodium_5833..IndivSourceCode union all  select *, 'rat_10116' as dbName from rat_10116..IndivSourceCode union all  select *, 'rat_10118' as dbName from rat_10118..IndivSourceCode union all  select *, 'rice_4530' as dbName from rice_4530..IndivSourceCode union all  select *, 'salmon_74940' as dbName from salmon_74940..IndivSourceCode union all  select *, 'salmon_8030' as dbName from salmon_8030..IndivSourceCode union all  select *, 'sheep_9940' as dbName from sheep_9940..IndivSourceCode union all  select *, 'soybean_3847' as dbName from soybean_3847..IndivSourceCode union all  select *, 'sugarcane_128810' as dbName from sugarcane_128810..IndivSourceCode union all  select *, 'trematode_6183' as dbName from trematode_6183..IndivSourceCode union all  select *, 'trout_8022' as dbName from trout_8022..IndivSourceCode union all  select *, 'tubeworm_216498' as dbName from tubeworm_216498..IndivSourceCode union all  select *, 'zebrafish_7955' as dbName from zebrafish_7955..IndivSourceCode uni
752 GO
753 SET QUOTED_IDENTIFIER OFF 
754 GO
755 SET ANSI_NULLS ON 
756 GO
757
758
759 SET QUOTED_IDENTIFIER OFF 
760 GO
761 SET ANSI_NULLS OFF 
762 GO
763
764  create view vw_all_Individual  as  select *, 'arabidopsis_3702' as dbName from arabidopsis_3702..Individual union all  select *, 'bee_7460' as dbName from bee_7460..Individual union all  select *, 'bison_9901' as dbName from bison_9901..Individual union all  select *, 'blackbird_39638' as dbName from blackbird_39638..Individual union all  select *, 'bonobo_9597' as dbName from bonobo_9597..Individual union all  select *, 'chicken_9031' as dbName from chicken_9031..Individual union all  select *, 'chimpanzee_9598' as dbName from chimpanzee_9598..Individual union all  select *, 'cooperia_27828' as dbName from cooperia_27828..Individual union all  select *, 'corn_4577' as dbName from corn_4577..Individual union all  select *, 'cow_30522' as dbName from cow_30522..Individual union all  select *, 'cow_9913' as dbName from cow_9913..Individual union all  select *, 'dog_9615' as dbName from dog_9615..Individual union all  select *, 'flycatcher_46689' as dbName from flycatcher_46689..Individual union all  select *, 'flycatcher_59894' as dbName from flycatcher_59894..Individual union all  select *, 'fruitfly_7227' as dbName from fruitfly_7227..Individual union all  select *, 'gorilla_9593' as dbName from gorilla_9593..Individual union all  select *, 'horse_9796' as dbName from horse_9796..Individual union all  select *, 'human_9606' as dbName from human_9606..Individual union all  select *, 'macaque_9544' as dbName from macaque_9544..Individual union all  select *, 'mosquito_7165' as dbName from mosquito_7165..Individual union all  select *, 'mouse_10090' as dbName from mouse_10090..Individual union all  select *, 'mouse_spretus_10096' as dbName from mouse_spretus_10096..Individual union all  select *, 'nematode_6239' as dbName from nematode_6239..Individual union all  select *, 'onion_4679' as dbName from onion_4679..Individual union all  select *, 'orangutan_9600' as dbName from orangutan_9600..Individual union all  select *, 'pig_9823' as dbName from pig_9823..Individual union all  select *, 'pine_71647' as dbName from pine_71647..Individual union all  select *, 'plasmodium_5833' as dbName from plasmodium_5833..Individual union all  select *, 'rat_10116' as dbName from rat_10116..Individual union all  select *, 'rat_10118' as dbName from rat_10118..Individual union all  select *, 'rice_4530' as dbName from rice_4530..Individual union all  select *, 'salmon_74940' as dbName from salmon_74940..Individual union all  select *, 'salmon_8018' as dbName from salmon_8018..Individual union all  select *, 'salmon_8019' as dbName from salmon_8019..Individual union all  select *, 'salmon_8023' as dbName from salmon_8023..Individual union all  select *, 'salmon_8030' as dbName from salmon_8030..Individual union all  select *, 'sheep_9940' as dbName from sheep_9940..Individual union all  select *, 'soybean_3847' as dbName from soybean_3847..Individual union all  select *, 'sugarcane_128810' as dbName from sugarcane_128810..Individual union all  select *, 'tilapia_8128' as dbName from tilapia_8128..Individual union all  select *, 'trematode_6183' as dbName from trematode_6183..Individual union all  select *, 'trout_8022' as dbName from trout_8022..Individual union all  select *, 'tubeworm_216498' as dbName from tubeworm_216498..Individual union all  select *, 'zebrafish_7955' as dbName from zebrafish_7955..Individual uni
765 GO
766 SET QUOTED_IDENTIFIER OFF 
767 GO
768 SET ANSI_NULLS ON 
769 GO
770
771
772 SET QUOTED_IDENTIFIER OFF 
773 GO
774 SET ANSI_NULLS OFF 
775 GO
776
777  create view vw_all_Pedigree  as  select *, 'arabidopsis_3702' as dbName from arabidopsis_3702..Pedigree union all  select *, 'bee_7460' as dbName from bee_7460..Pedigree union all  select *, 'bison_9901' as dbName from bison_9901..Pedigree union all  select *, 'blackbird_39638' as dbName from blackbird_39638..Pedigree union all  select *, 'bonobo_9597' as dbName from bonobo_9597..Pedigree union all  select *, 'chicken_9031' as dbName from chicken_9031..Pedigree union all  select *, 'chimpanzee_9598' as dbName from chimpanzee_9598..Pedigree union all  select *, 'cooperia_27828' as dbName from cooperia_27828..Pedigree union all  select *, 'corn_4577' as dbName from corn_4577..Pedigree union all  select *, 'cow_30522' as dbName from cow_30522..Pedigree union all  select *, 'cow_9913' as dbName from cow_9913..Pedigree union all  select *, 'dog_9615' as dbName from dog_9615..Pedigree union all  select *, 'flycatcher_46689' as dbName from flycatcher_46689..Pedigree union all  select *, 'flycatcher_59894' as dbName from flycatcher_59894..Pedigree union all  select *, 'fruitfly_7227' as dbName from fruitfly_7227..Pedigree union all  select *, 'gorilla_9593' as dbName from gorilla_9593..Pedigree union all  select *, 'horse_9796' as dbName from horse_9796..Pedigree union all  select *, 'human_9606' as dbName from human_9606..Pedigree union all  select *, 'macaque_9544' as dbName from macaque_9544..Pedigree union all  select *, 'mosquito_7165' as dbName from mosquito_7165..Pedigree union all  select *, 'mouse_10090' as dbName from mouse_10090..Pedigree union all  select *, 'mouse_spretus_10096' as dbName from mouse_spretus_10096..Pedigree union all  select *, 'nematode_6239' as dbName from nematode_6239..Pedigree union all  select *, 'onion_4679' as dbName from onion_4679..Pedigree union all  select *, 'orangutan_9600' as dbName from orangutan_9600..Pedigree union all  select *, 'pig_9823' as dbName from pig_9823..Pedigree union all  select *, 'pine_71647' as dbName from pine_71647..Pedigree union all  select *, 'plasmodium_5833' as dbName from plasmodium_5833..Pedigree union all  select *, 'rat_10116' as dbName from rat_10116..Pedigree union all  select *, 'rat_10118' as dbName from rat_10118..Pedigree union all  select *, 'rice_4530' as dbName from rice_4530..Pedigree union all  select *, 'salmon_74940' as dbName from salmon_74940..Pedigree union all  select *, 'salmon_8018' as dbName from salmon_8018..Pedigree union all  select *, 'salmon_8019' as dbName from salmon_8019..Pedigree union all  select *, 'salmon_8023' as dbName from salmon_8023..Pedigree union all  select *, 'salmon_8030' as dbName from salmon_8030..Pedigree union all  select *, 'sheep_9940' as dbName from sheep_9940..Pedigree union all  select *, 'soybean_3847' as dbName from soybean_3847..Pedigree union all  select *, 'sugarcane_128810' as dbName from sugarcane_128810..Pedigree union all  select *, 'tilapia_8128' as dbName from tilapia_8128..Pedigree union all  select *, 'trematode_6183' as dbName from trematode_6183..Pedigree union all  select *, 'trout_8022' as dbName from trout_8022..Pedigree union all  select *, 'tubeworm_216498' as dbName from tubeworm_216498..Pedigree union all  select *, 'zebrafish_7955' as dbName from zebrafish_7955..Pedigree uni
778 GO
779 SET QUOTED_IDENTIFIER OFF 
780 GO
781 SET ANSI_NULLS ON 
782 GO
783
784
785 SET QUOTED_IDENTIFIER OFF 
786 GO
787 SET ANSI_NULLS OFF 
788 GO
789
790  create view vw_all_PopLine  as  select *, 'arabidopsis_3702' as dbName from arabidopsis_3702..PopLine union all  select *, 'bee_7460' as dbName from bee_7460..PopLine union all  select *, 'bison_9901' as dbName from bison_9901..PopLine union all  select *, 'blackbird_39638' as dbName from blackbird_39638..PopLine union all  select *, 'bonobo_9597' as dbName from bonobo_9597..PopLine union all  select *, 'chicken_9031' as dbName from chicken_9031..PopLine union all  select *, 'chimpanzee_9598' as dbName from chimpanzee_9598..PopLine union all  select *, 'cooperia_27828' as dbName from cooperia_27828..PopLine union all  select *, 'corn_4577' as dbName from corn_4577..PopLine union all  select *, 'cow_30522' as dbName from cow_30522..PopLine union all  select *, 'cow_9913' as dbName from cow_9913..PopLine union all  select *, 'dog_9615' as dbName from dog_9615..PopLine union all  select *, 'flycatcher_46689' as dbName from flycatcher_46689..PopLine union all  select *, 'flycatcher_59894' as dbName from flycatcher_59894..PopLine union all  select *, 'fruitfly_7227' as dbName from fruitfly_7227..PopLine union all  select *, 'gorilla_9593' as dbName from gorilla_9593..PopLine union all  select *, 'horse_9796' as dbName from horse_9796..PopLine union all  select *, 'human_9606' as dbName from human_9606..PopLine union all  select *, 'macaque_9544' as dbName from macaque_9544..PopLine union all  select *, 'mosquito_7165' as dbName from mosquito_7165..PopLine union all  select *, 'mouse_10090' as dbName from mouse_10090..PopLine union all  select *, 'mouse_spretus_10096' as dbName from mouse_spretus_10096..PopLine union all  select *, 'nematode_6239' as dbName from nematode_6239..PopLine union all  select *, 'orangutan_9600' as dbName from orangutan_9600..PopLine union all  select *, 'pig_9823' as dbName from pig_9823..PopLine union all  select *, 'pine_71647' as dbName from pine_71647..PopLine union all  select *, 'plasmodium_5833' as dbName from plasmodium_5833..PopLine union all  select *, 'rat_10116' as dbName from rat_10116..PopLine union all  select *, 'rat_10118' as dbName from rat_10118..PopLine union all  select *, 'rice_4530' as dbName from rice_4530..PopLine union all  select *, 'salmon_74940' as dbName from salmon_74940..PopLine union all  select *, 'salmon_8030' as dbName from salmon_8030..PopLine union all  select *, 'sheep_9940' as dbName from sheep_9940..PopLine union all  select *, 'soybean_3847' as dbName from soybean_3847..PopLine union all  select *, 'sugarcane_128810' as dbName from sugarcane_128810..PopLine union all  select *, 'trematode_6183' as dbName from trematode_6183..PopLine union all  select *, 'trout_8022' as dbName from trout_8022..PopLine union all  select *, 'tubeworm_216498' as dbName from tubeworm_216498..PopLine union all  select *, 'zebrafish_7955' as dbName from zebrafish_7955..PopLine uni
791 GO
792 SET QUOTED_IDENTIFIER OFF 
793 GO
794 SET ANSI_NULLS ON 
795 GO
796
797
798 SET QUOTED_IDENTIFIER OFF 
799 GO
800 SET ANSI_NULLS OFF 
801 GO
802
803  create view vw_all_Population  as  select * from vw_all_Population_part1
804 GO
805 SET QUOTED_IDENTIFIER OFF 
806 GO
807 SET ANSI_NULLS ON 
808 GO
809
810
811 SET QUOTED_IDENTIFIER OFF 
812 GO
813 SET ANSI_NULLS OFF 
814 GO
815
816  create view vw_all_Population_part1  as  select *, 'arabidopsis_3702' as dbName from arabidopsis_3702..Population union all  select *, 'bee_7460' as dbName from bee_7460..Population union all  select *, 'bison_9901' as dbName from bison_9901..Population union all  select *, 'blackbird_39638' as dbName from blackbird_39638..Population union all  select *, 'bonobo_9597' as dbName from bonobo_9597..Population union all  select *, 'chicken_9031' as dbName from chicken_9031..Population union all  select *, 'chimpanzee_9598' as dbName from chimpanzee_9598..Population union all  select *, 'cooperia_27828' as dbName from cooperia_27828..Population union all  select *, 'corn_4577' as dbName from corn_4577..Population union all  select *, 'cow_30522' as dbName from cow_30522..Population union all  select *, 'cow_9913' as dbName from cow_9913..Population union all  select *, 'dog_9615' as dbName from dog_9615..Population union all  select *, 'flycatcher_46689' as dbName from flycatcher_46689..Population union all  select *, 'flycatcher_59894' as dbName from flycatcher_59894..Population union all  select *, 'fruitfly_7227' as dbName from fruitfly_7227..Population union all  select *, 'gorilla_9593' as dbName from gorilla_9593..Population union all  select *, 'horse_9796' as dbName from horse_9796..Population union all  select *, 'human_9606' as dbName from human_9606..Population union all  select *, 'macaque_9544' as dbName from macaque_9544..Population union all  select *, 'mosquito_7165' as dbName from mosquito_7165..Population union all  select *, 'mouse_10090' as dbName from mouse_10090..Population union all  select *, 'mouse_spretus_10096' as dbName from mouse_spretus_10096..Population union all  select *, 'nematode_6239' as dbName from nematode_6239..Population union all  select *, 'onion_4679' as dbName from onion_4679..Population union all  select *, 'orangutan_9600' as dbName from orangutan_9600..Population union all  select *, 'pig_9823' as dbName from pig_9823..Population union all  select *, 'pine_71647' as dbName from pine_71647..Population union all  select *, 'plasmodium_5833' as dbName from plasmodium_5833..Population union all  select *, 'rat_10116' as dbName from rat_10116..Population union all  select *, 'rat_10118' as dbName from rat_10118..Population union all  select *, 'rice_4530' as dbName from rice_4530..Population union all  select *, 'salmon_74940' as dbName from salmon_74940..Population union all  select *, 'salmon_8018' as dbName from salmon_8018..Population union all  select *, 'salmon_8019' as dbName from salmon_8019..Population union all  select *, 'salmon_8023' as dbName from salmon_8023..Population union all  select *, 'salmon_8030' as dbName from salmon_8030..Population union all  select *, 'sheep_9940' as dbName from sheep_9940..Population union all  select *, 'soybean_3847' as dbName from soybean_3847..Population union all  select *, 'sugarcane_128810' as dbName from sugarcane_128810..Population union all  select *, 'tilapia_8128' as dbName from tilapia_8128..Population union all  select *, 'trematode_6183' as dbName from trematode_6183..Population union all  select *, 'trout_8022' as dbName from trout_8022..Population union all  select *, 'tubeworm_216498' as dbName from tubeworm_216498..Population union all  select *, 'zebrafish_7955' as dbName from zebrafish_7955..Population
817 GO
818 SET QUOTED_IDENTIFIER OFF 
819 GO
820 SET ANSI_NULLS ON 
821 GO
822
823
824 SET QUOTED_IDENTIFIER OFF 
825 GO
826 SET ANSI_NULLS OFF 
827 GO
828
829  create view vw_all_RsMergeArch  as  select * from vw_all_RsMergeArch_part1
830 GO
831 SET QUOTED_IDENTIFIER OFF 
832 GO
833 SET ANSI_NULLS ON 
834 GO
835
836
837 SET QUOTED_IDENTIFIER OFF 
838 GO
839 SET ANSI_NULLS OFF 
840 GO
841
842  create view vw_all_RsMergeArch_part1  as  select *, 'arabidopsis_3702' as dbName from arabidopsis_3702..RsMergeArch union all  select *, 'bee_7460' as dbName from bee_7460..RsMergeArch union all  select *, 'bison_9901' as dbName from bison_9901..RsMergeArch union all  select *, 'blackbird_39638' as dbName from blackbird_39638..RsMergeArch union all  select *, 'bonobo_9597' as dbName from bonobo_9597..RsMergeArch union all  select *, 'chicken_9031' as dbName from chicken_9031..RsMergeArch union all  select *, 'chimpanzee_9598' as dbName from chimpanzee_9598..RsMergeArch union all  select *, 'cooperia_27828' as dbName from cooperia_27828..RsMergeArch union all  select *, 'corn_4577' as dbName from corn_4577..RsMergeArch union all  select *, 'cow_30522' as dbName from cow_30522..RsMergeArch union all  select *, 'cow_9913' as dbName from cow_9913..RsMergeArch union all  select *, 'dog_9615' as dbName from dog_9615..RsMergeArch union all  select *, 'flycatcher_46689' as dbName from flycatcher_46689..RsMergeArch union all  select *, 'flycatcher_59894' as dbName from flycatcher_59894..RsMergeArch union all  select *, 'fruitfly_7227' as dbName from fruitfly_7227..RsMergeArch union all  select *, 'gorilla_9593' as dbName from gorilla_9593..RsMergeArch union all  select *, 'horse_9796' as dbName from horse_9796..RsMergeArch union all  select *, 'human_9606' as dbName from human_9606..RsMergeArch union all  select *, 'macaque_9544' as dbName from macaque_9544..RsMergeArch union all  select *, 'mosquito_7165' as dbName from mosquito_7165..RsMergeArch union all  select *, 'mouse_10090' as dbName from mouse_10090..RsMergeArch union all  select *, 'mouse_spretus_10096' as dbName from mouse_spretus_10096..RsMergeArch union all  select *, 'nematode_6239' as dbName from nematode_6239..RsMergeArch union all  select *, 'onion_4679' as dbName from onion_4679..RsMergeArch union all  select *, 'orangutan_9600' as dbName from orangutan_9600..RsMergeArch union all  select *, 'pig_9823' as dbName from pig_9823..RsMergeArch union all  select *, 'pine_71647' as dbName from pine_71647..RsMergeArch union all  select *, 'plasmodium_5833' as dbName from plasmodium_5833..RsMergeArch union all  select *, 'rat_10116' as dbName from rat_10116..RsMergeArch union all  select *, 'rat_10118' as dbName from rat_10118..RsMergeArch union all  select *, 'rice_4530' as dbName from rice_4530..RsMergeArch union all  select *, 'salmon_74940' as dbName from salmon_74940..RsMergeArch union all  select *, 'salmon_8018' as dbName from salmon_8018..RsMergeArch union all  select *, 'salmon_8019' as dbName from salmon_8019..RsMergeArch union all  select *, 'salmon_8023' as dbName from salmon_8023..RsMergeArch union all  select *, 'salmon_8030' as dbName from salmon_8030..RsMergeArch union all  select *, 'sheep_9940' as dbName from sheep_9940..RsMergeArch union all  select *, 'soybean_3847' as dbName from soybean_3847..RsMergeArch union all  select *, 'sugarcane_128810' as dbName from sugarcane_128810..RsMergeArch union all  select *, 'tilapia_8128' as dbName from tilapia_8128..RsMergeArch union all  select *, 'trematode_6183' as dbName from trematode_6183..RsMergeArch union all  select *, 'trout_8022' as dbName from trout_8022..RsMergeArch union all  select *, 'tubeworm_216498' as dbName from tubeworm_216498..RsMergeArch union all  select *, 'zebrafish_7955' as dbName from zebrafish_7955..RsMergeArch
843 GO
844 SET QUOTED_IDENTIFIER OFF 
845 GO
846 SET ANSI_NULLS ON 
847 GO
848
849
850 SET QUOTED_IDENTIFIER OFF 
851 GO
852 SET ANSI_NULLS OFF 
853 GO
854
855  create view vw_all_SNP  as  select * from vw_all_SNP_part1
856 GO
857 SET QUOTED_IDENTIFIER OFF 
858 GO
859 SET ANSI_NULLS ON 
860 GO
861
862
863 SET QUOTED_IDENTIFIER OFF 
864 GO
865 SET ANSI_NULLS OFF 
866 GO
867
868  create view vw_all_SNP_part1  as  select *, 'arabidopsis_3702' as dbName from arabidopsis_3702..SNP union all  select *, 'bee_7460' as dbName from bee_7460..SNP union all  select *, 'bison_9901' as dbName from bison_9901..SNP union all  select *, 'blackbird_39638' as dbName from blackbird_39638..SNP union all  select *, 'bonobo_9597' as dbName from bonobo_9597..SNP union all  select *, 'chicken_9031' as dbName from chicken_9031..SNP union all  select *, 'chimpanzee_9598' as dbName from chimpanzee_9598..SNP union all  select *, 'cooperia_27828' as dbName from cooperia_27828..SNP union all  select *, 'corn_4577' as dbName from corn_4577..SNP union all  select *, 'cow_30522' as dbName from cow_30522..SNP union all  select *, 'cow_9913' as dbName from cow_9913..SNP union all  select *, 'dog_9615' as dbName from dog_9615..SNP union all  select *, 'flycatcher_46689' as dbName from flycatcher_46689..SNP union all  select *, 'flycatcher_59894' as dbName from flycatcher_59894..SNP union all  select *, 'fruitfly_7227' as dbName from fruitfly_7227..SNP union all  select *, 'gorilla_9593' as dbName from gorilla_9593..SNP union all  select *, 'horse_9796' as dbName from horse_9796..SNP union all  select *, 'human_9606' as dbName from human_9606..SNP union all  select *, 'macaque_9544' as dbName from macaque_9544..SNP union all  select *, 'mosquito_7165' as dbName from mosquito_7165..SNP union all  select *, 'mouse_10090' as dbName from mouse_10090..SNP union all  select *, 'mouse_spretus_10096' as dbName from mouse_spretus_10096..SNP union all  select *, 'nematode_6239' as dbName from nematode_6239..SNP union all  select *, 'onion_4679' as dbName from onion_4679..SNP union all  select *, 'orangutan_9600' as dbName from orangutan_9600..SNP union all  select *, 'pig_9823' as dbName from pig_9823..SNP union all  select *, 'pine_71647' as dbName from pine_71647..SNP union all  select *, 'plasmodium_5833' as dbName from plasmodium_5833..SNP union all  select *, 'rat_10116' as dbName from rat_10116..SNP union all  select *, 'rat_10118' as dbName from rat_10118..SNP union all  select *, 'rice_4530' as dbName from rice_4530..SNP union all  select *, 'salmon_74940' as dbName from salmon_74940..SNP union all  select *, 'salmon_8018' as dbName from salmon_8018..SNP union all  select *, 'salmon_8019' as dbName from salmon_8019..SNP union all  select *, 'salmon_8023' as dbName from salmon_8023..SNP union all  select *, 'salmon_8030' as dbName from salmon_8030..SNP union all  select *, 'sheep_9940' as dbName from sheep_9940..SNP union all  select *, 'soybean_3847' as dbName from soybean_3847..SNP union all  select *, 'sugarcane_128810' as dbName from sugarcane_128810..SNP union all  select *, 'tilapia_8128' as dbName from tilapia_8128..SNP union all  select *, 'trematode_6183' as dbName from trematode_6183..SNP union all  select *, 'trout_8022' as dbName from trout_8022..SNP union all  select *, 'tubeworm_216498' as dbName from tubeworm_216498..SNP union all  select *, 'zebrafish_7955' as dbName from zebrafish_7955..SNP
869 GO
870 SET QUOTED_IDENTIFIER OFF 
871 GO
872 SET ANSI_NULLS ON 
873 GO
874
875
876 SET QUOTED_IDENTIFIER OFF 
877 GO
878 SET ANSI_NULLS OFF 
879 GO
880
881  create view vw_all_SubPop  as  select *, 'arabidopsis_3702' as dbName from arabidopsis_3702..SubPop union all  select *, 'bee_7460' as dbName from bee_7460..SubPop union all  select *, 'bison_9901' as dbName from bison_9901..SubPop union all  select *, 'blackbird_39638' as dbName from blackbird_39638..SubPop union all  select *, 'bonobo_9597' as dbName from bonobo_9597..SubPop union all  select *, 'chicken_9031' as dbName from chicken_9031..SubPop union all  select *, 'chimpanzee_9598' as dbName from chimpanzee_9598..SubPop union all  select *, 'cooperia_27828' as dbName from cooperia_27828..SubPop union all  select *, 'corn_4577' as dbName from corn_4577..SubPop union all  select *, 'cow_30522' as dbName from cow_30522..SubPop union all  select *, 'cow_9913' as dbName from cow_9913..SubPop union all  select *, 'dog_9615' as dbName from dog_9615..SubPop union all  select *, 'flycatcher_46689' as dbName from flycatcher_46689..SubPop union all  select *, 'flycatcher_59894' as dbName from flycatcher_59894..SubPop union all  select *, 'fruitfly_7227' as dbName from fruitfly_7227..SubPop union all  select *, 'gorilla_9593' as dbName from gorilla_9593..SubPop union all  select *, 'horse_9796' as dbName from horse_9796..SubPop union all  select *, 'human_9606' as dbName from human_9606..SubPop union all  select *, 'macaque_9544' as dbName from macaque_9544..SubPop union all  select *, 'mosquito_7165' as dbName from mosquito_7165..SubPop union all  select *, 'mouse_10090' as dbName from mouse_10090..SubPop union all  select *, 'mouse_spretus_10096' as dbName from mouse_spretus_10096..SubPop union all  select *, 'nematode_6239' as dbName from nematode_6239..SubPop union all  select *, 'orangutan_9600' as dbName from orangutan_9600..SubPop union all  select *, 'pig_9823' as dbName from pig_9823..SubPop union all  select *, 'pine_71647' as dbName from pine_71647..SubPop union all  select *, 'plasmodium_5833' as dbName from plasmodium_5833..SubPop union all  select *, 'rat_10116' as dbName from rat_10116..SubPop union all  select *, 'rat_10118' as dbName from rat_10118..SubPop union all  select *, 'rice_4530' as dbName from rice_4530..SubPop union all  select *, 'salmon_74940' as dbName from salmon_74940..SubPop union all  select *, 'salmon_8030' as dbName from salmon_8030..SubPop union all  select *, 'sheep_9940' as dbName from sheep_9940..SubPop union all  select *, 'soybean_3847' as dbName from soybean_3847..SubPop union all  select *, 'sugarcane_128810' as dbName from sugarcane_128810..SubPop union all  select *, 'trematode_6183' as dbName from trematode_6183..SubPop union all  select *, 'trout_8022' as dbName from trout_8022..SubPop union all  select *, 'tubeworm_216498' as dbName from tubeworm_216498..SubPop union all  select *, 'zebrafish_7955' as dbName from zebrafish_7955..SubPop uni
882 GO
883 SET QUOTED_IDENTIFIER OFF 
884 GO
885 SET ANSI_NULLS ON 
886 GO
887
888
889 SET QUOTED_IDENTIFIER OFF 
890 GO
891 SET ANSI_NULLS OFF 
892 GO
893
894  create view vw_all_SubSNP  as  select * from arabidopsis_3702..SubSNP union all  select * from bee_7460..SubSNP union all  select * from bison_9901..SubSNP union all  select * from blackbird_39638..SubSNP union all  select * from bonobo_9597..SubSNP union all  select * from chicken_9031..SubSNP union all  select * from chimpanzee_9598..SubSNP union all  select * from cooperia_27828..SubSNP union all  select * from corn_4577..SubSNP union all  select * from cow_30522..SubSNP union all  select * from cow_9913..SubSNP union all  select * from dog_9615..SubSNP union all  select * from flycatcher_46689..SubSNP union all  select * from flycatcher_59894..SubSNP union all  select * from fruitfly_7227..SubSNP union all  select * from gorilla_9593..SubSNP union all  select * from horse_9796..SubSNP union all  select * from human_9606..SubSNP union all  select * from macaque_9544..SubSNP union all  select * from mosquito_7165..SubSNP union all  select * from mouse_10090..SubSNP union all  select * from mouse_spretus_10096..SubSNP union all  select * from nematode_6239..SubSNP union all  select * from orangutan_9600..SubSNP union all  select * from pig_9823..SubSNP union all  select * from pine_71647..SubSNP union all  select * from plasmodium_5833..SubSNP union all  select * from rat_10116..SubSNP union all  select * from rat_10118..SubSNP union all  select * from rice_4530..SubSNP union all  select * from salmon_74940..SubSNP union all  select * from salmon_8030..SubSNP union all  select * from sheep_9940..SubSNP union all  select * from soybean_3847..SubSNP union all  select * from sugarcane_128810..SubSNP union all  select * from trematode_6183..SubSNP union all  select * from trout_8022..SubSNP union all  select * from tubeworm_216498..SubSNP union all  select * from zebrafish_7955..SubSNP uni
895 GO
896 SET QUOTED_IDENTIFIER OFF 
897 GO
898 SET ANSI_NULLS ON 
899 GO
900
901
902 SET QUOTED_IDENTIFIER OFF 
903 GO
904 SET ANSI_NULLS OFF 
905 GO
906
907  create view vw_all_SubSNPDeletedBySubmitter  as  select * from vw_all_SubSNPDeletedBySubmitter_part2 union all  select * from vw_all_SubSNPDeletedBySubmitter_part1
908 GO
909 SET QUOTED_IDENTIFIER OFF 
910 GO
911 SET ANSI_NULLS ON 
912 GO
913
914
915 SET QUOTED_IDENTIFIER OFF 
916 GO
917 SET ANSI_NULLS OFF 
918 GO
919
920  create view vw_all_SubSNPDeletedBySubmitter_part1  as  select *, 'arabidopsis_3702' as dbName from arabidopsis_3702..SubSNPDeletedBySubmitter union all  select *, 'bee_7460' as dbName from bee_7460..SubSNPDeletedBySubmitter union all  select *, 'bison_9901' as dbName from bison_9901..SubSNPDeletedBySubmitter union all  select *, 'blackbird_39638' as dbName from blackbird_39638..SubSNPDeletedBySubmitter union all  select *, 'bonobo_9597' as dbName from bonobo_9597..SubSNPDeletedBySubmitter union all  select *, 'chicken_9031' as dbName from chicken_9031..SubSNPDeletedBySubmitter union all  select *, 'chimpanzee_9598' as dbName from chimpanzee_9598..SubSNPDeletedBySubmitter union all  select *, 'cooperia_27828' as dbName from cooperia_27828..SubSNPDeletedBySubmitter union all  select *, 'corn_4577' as dbName from corn_4577..SubSNPDeletedBySubmitter union all  select *, 'cow_30522' as dbName from cow_30522..SubSNPDeletedBySubmitter union all  select *, 'cow_9913' as dbName from cow_9913..SubSNPDeletedBySubmitter union all  select *, 'dog_9615' as dbName from dog_9615..SubSNPDeletedBySubmitter union all  select *, 'flycatcher_46689' as dbName from flycatcher_46689..SubSNPDeletedBySubmitter union all  select *, 'flycatcher_59894' as dbName from flycatcher_59894..SubSNPDeletedBySubmitter union all  select *, 'fruitfly_7227' as dbName from fruitfly_7227..SubSNPDeletedBySubmitter union all  select *, 'gorilla_9593' as dbName from gorilla_9593..SubSNPDeletedBySubmitter union all  select *, 'horse_9796' as dbName from horse_9796..SubSNPDeletedBySubmitter union all  select *, 'human_9606' as dbName from human_9606..SubSNPDeletedBySubmitter union all  select *, 'macaque_9544' as dbName from macaque_9544..SubSNPDeletedBySubmitter union all  select *, 'mosquito_62324' as dbName from mosquito_62324..SubSNPDeletedBySubmitter union all  select *, 'mosquito_7165' as dbName from mosquito_7165..SubSNPDeletedBySubmitter union all  select *, 'mouse_10090' as dbName from mouse_10090..SubSNPDeletedBySubmitter union all  select *, 'mouse_spretus_10096' as dbName from mouse_spretus_10096..SubSNPDeletedBySubmitter union all  select *, 'nematode_6239' as dbName from nematode_6239..SubSNPDeletedBySubmitter union all  select *, 'onion_4679' as dbName from onion_4679..SubSNPDeletedBySubmitter union all  select *, 'orangutan_9600' as dbName from orangutan_9600..SubSNPDeletedBySubmitter union all  select *, 'pig_9823' as dbName from pig_9823..SubSNPDeletedBySubmitter union all  select *, 'pine_71647' as dbName from pine_71647..SubSNPDeletedBySubmitter union all  select *, 'plasmodium_5833' as dbName from plasmodium_5833..SubSNPDeletedBySubmitter union all  select *, 'rat_10116' as dbName from rat_10116..SubSNPDeletedBySubmitter union all  select *, 'rat_10118' as dbName from rat_10118..SubSNPDeletedBySubmitter union all  select *, 'rice_4530' as dbName from rice_4530..SubSNPDeletedBySubmitter union all  select *, 'salmon_74940' as dbName from salmon_74940..SubSNPDeletedBySubmitter union all  select *, 'salmon_8018' as dbName from salmon_8018..SubSNPDeletedBySubmitter union all  select *, 'salmon_8019' as dbName from salmon_8019..SubSNPDeletedBySubmitter union all  select *, 'salmon_8023' as dbName from salmon_8023..SubSNPDeletedBySubmitter union all  select *, 'salmon_8030' as dbName from salmon_8030..SubSNPDeletedBySubmitter union all  select *, 'sheep_9940' as dbName from sheep_9940..SubSNPDeletedBySubmitter union all  select *, 'soybean_3847' as dbName from soybean_3847..SubSNPDeletedBySubmitter union all  select *, 'sugarcane_128810' as dbName from sugarcane_128810..SubSNPDeletedBySubmitter union all  select *, 'tilapia_8128' as dbName from tilapia_8128..SubSNPDeletedBySubmitter union all  select *, 'trematode_6183' as dbName from trematode_6183..SubSNPDeletedBySubmitter
921 GO
922 SET QUOTED_IDENTIFIER OFF 
923 GO
924 SET ANSI_NULLS ON 
925 GO
926
927
928 SET QUOTED_IDENTIFIER OFF 
929 GO
930 SET ANSI_NULLS OFF 
931 GO
932
933  create view vw_all_SubSNPDeletedBySubmitter_part2  as  select *, 'trout_8022' as dbName from trout_8022..SubSNPDeletedBySubmitter union all  select *, 'tubeworm_216498' as dbName from tubeworm_216498..SubSNPDeletedBySubmitter union all  select *, 'zebrafish_7955' as dbName from zebrafish_7955..SubSNPDeletedBySubmitter
934 GO
935 SET QUOTED_IDENTIFIER OFF 
936 GO
937 SET ANSI_NULLS ON 
938 GO
939
940
941 SET QUOTED_IDENTIFIER OFF 
942 GO
943 SET ANSI_NULLS OFF 
944 GO
945
946  create view vw_all_SubmittedIndividual  as  select *, 'arabidopsis_3702' as dbName from arabidopsis_3702..SubmittedIndividual union all  select *, 'bee_7460' as dbName from bee_7460..SubmittedIndividual union all  select *, 'bison_9901' as dbName from bison_9901..SubmittedIndividual union all  select *, 'blackbird_39638' as dbName from blackbird_39638..SubmittedIndividual union all  select *, 'bonobo_9597' as dbName from bonobo_9597..SubmittedIndividual union all  select *, 'chicken_9031' as dbName from chicken_9031..SubmittedIndividual union all  select *, 'chimpanzee_9598' as dbName from chimpanzee_9598..SubmittedIndividual union all  select *, 'cooperia_27828' as dbName from cooperia_27828..SubmittedIndividual union all  select *, 'corn_4577' as dbName from corn_4577..SubmittedIndividual union all  select *, 'cow_30522' as dbName from cow_30522..SubmittedIndividual union all  select *, 'cow_9913' as dbName from cow_9913..SubmittedIndividual union all  select *, 'dog_9615' as dbName from dog_9615..SubmittedIndividual union all  select *, 'flycatcher_46689' as dbName from flycatcher_46689..SubmittedIndividual union all  select *, 'flycatcher_59894' as dbName from flycatcher_59894..SubmittedIndividual union all  select *, 'fruitfly_7227' as dbName from fruitfly_7227..SubmittedIndividual union all  select *, 'gorilla_9593' as dbName from gorilla_9593..SubmittedIndividual union all  select *, 'horse_9796' as dbName from horse_9796..SubmittedIndividual union all  select *, 'human_9606' as dbName from human_9606..SubmittedIndividual union all  select *, 'macaque_9544' as dbName from macaque_9544..SubmittedIndividual union all  select *, 'mosquito_7165' as dbName from mosquito_7165..SubmittedIndividual union all  select *, 'mouse_10090' as dbName from mouse_10090..SubmittedIndividual union all  select *, 'mouse_spretus_10096' as dbName from mouse_spretus_10096..SubmittedIndividual union all  select *, 'nematode_6239' as dbName from nematode_6239..SubmittedIndividual union all  select *, 'orangutan_9600' as dbName from orangutan_9600..SubmittedIndividual union all  select *, 'pig_9823' as dbName from pig_9823..SubmittedIndividual union all  select *, 'pine_71647' as dbName from pine_71647..SubmittedIndividual union all  select *, 'plasmodium_5833' as dbName from plasmodium_5833..SubmittedIndividual union all  select *, 'rat_10116' as dbName from rat_10116..SubmittedIndividual union all  select *, 'rat_10118' as dbName from rat_10118..SubmittedIndividual union all  select *, 'rice_4530' as dbName from rice_4530..SubmittedIndividual union all  select *, 'salmon_74940' as dbName from salmon_74940..SubmittedIndividual union all  select *, 'salmon_8018' as dbName from salmon_8018..SubmittedIndividual union all  select *, 'salmon_8019' as dbName from salmon_8019..SubmittedIndividual union all  select *, 'salmon_8023' as dbName from salmon_8023..SubmittedIndividual union all  select *, 'salmon_8030' as dbName from salmon_8030..SubmittedIndividual union all  select *, 'sheep_9940' as dbName from sheep_9940..SubmittedIndividual union all  select *, 'soybean_3847' as dbName from soybean_3847..SubmittedIndividual union all  select *, 'sugarcane_128810' as dbName from sugarcane_128810..SubmittedIndividual union all  select *, 'trematode_6183' as dbName from trematode_6183..SubmittedIndividual union all  select *, 'trout_8022' as dbName from trout_8022..SubmittedIndividual union all  select *, 'tubeworm_216498' as dbName from tubeworm_216498..SubmittedIndividual union all  select *, 'zebrafish_7955' as dbName from zebrafish_7955..SubmittedIndividual uni
947 GO
948 SET QUOTED_IDENTIFIER OFF 
949 GO
950 SET ANSI_NULLS ON 
951 GO
952
953
954 SET QUOTED_IDENTIFIER OFF 
955 GO
956 SET ANSI_NULLS OFF 
957 GO
958
959  create view vw_all_dn_batchCount  as  select *, 'arabidopsis_3702' as dbName from arabidopsis_3702..dn_batchCount union all  select *, 'bee_7460' as dbName from bee_7460..dn_batchCount union all  select *, 'bison_9901' as dbName from bison_9901..dn_batchCount union all  select *, 'blackbird_39638' as dbName from blackbird_39638..dn_batchCount union all  select *, 'bonobo_9597' as dbName from bonobo_9597..dn_batchCount union all  select *, 'chicken_9031' as dbName from chicken_9031..dn_batchCount union all  select *, 'chimpanzee_9598' as dbName from chimpanzee_9598..dn_batchCount union all  select *, 'cooperia_27828' as dbName from cooperia_27828..dn_batchCount union all  select *, 'corn_4577' as dbName from corn_4577..dn_batchCount union all  select *, 'cow_30522' as dbName from cow_30522..dn_batchCount union all  select *, 'cow_9913' as dbName from cow_9913..dn_batchCount union all  select *, 'dog_9615' as dbName from dog_9615..dn_batchCount union all  select *, 'flycatcher_46689' as dbName from flycatcher_46689..dn_batchCount union all  select *, 'flycatcher_59894' as dbName from flycatcher_59894..dn_batchCount union all  select *, 'fruitfly_7227' as dbName from fruitfly_7227..dn_batchCount union all  select *, 'gorilla_9593' as dbName from gorilla_9593..dn_batchCount union all  select *, 'horse_9796' as dbName from horse_9796..dn_batchCount union all  select *, 'human_9606' as dbName from human_9606..dn_batchCount union all  select *, 'macaque_9544' as dbName from macaque_9544..dn_batchCount union all  select *, 'mosquito_7165' as dbName from mosquito_7165..dn_batchCount union all  select *, 'mouse_10090' as dbName from mouse_10090..dn_batchCount union all  select *, 'mouse_spretus_10096' as dbName from mouse_spretus_10096..dn_batchCount union all  select *, 'nematode_6239' as dbName from nematode_6239..dn_batchCount union all  select *, 'orangutan_9600' as dbName from orangutan_9600..dn_batchCount union all  select *, 'pig_9823' as dbName from pig_9823..dn_batchCount union all  select *, 'pine_71647' as dbName from pine_71647..dn_batchCount union all  select *, 'plasmodium_5833' as dbName from plasmodium_5833..dn_batchCount union all  select *, 'rat_10116' as dbName from rat_10116..dn_batchCount union all  select *, 'rat_10118' as dbName from rat_10118..dn_batchCount union all  select *, 'rice_4530' as dbName from rice_4530..dn_batchCount union all  select *, 'salmon_74940' as dbName from salmon_74940..dn_batchCount union all  select *, 'salmon_8018' as dbName from salmon_8018..dn_batchCount union all  select *, 'salmon_8019' as dbName from salmon_8019..dn_batchCount union all  select *, 'salmon_8023' as dbName from salmon_8023..dn_batchCount union all  select *, 'salmon_8030' as dbName from salmon_8030..dn_batchCount union all  select *, 'sheep_9940' as dbName from sheep_9940..dn_batchCount union all  select *, 'soybean_3847' as dbName from soybean_3847..dn_batchCount union all  select *, 'sugarcane_128810' as dbName from sugarcane_128810..dn_batchCount union all  select *, 'trematode_6183' as dbName from trematode_6183..dn_batchCount union all  select *, 'trout_8022' as dbName from trout_8022..dn_batchCount union all  select *, 'tubeworm_216498' as dbName from tubeworm_216498..dn_batchCount union all  select *, 'zebrafish_7955' as dbName from zebrafish_7955..dn_batchCount uni
960 GO
961 SET QUOTED_IDENTIFIER OFF 
962 GO
963 SET ANSI_NULLS ON 
964 GO
965
966
967 SET QUOTED_IDENTIFIER OFF 
968 GO
969 SET ANSI_NULLS OFF 
970 GO
971
972  create view vw_all_dn_handleCount  as  select * from vw_all_dn_handleCount_part2 union all  select * from vw_all_dn_handleCount_part1
973 GO
974 SET QUOTED_IDENTIFIER OFF 
975 GO
976 SET ANSI_NULLS ON 
977 GO
978
979
980 SET QUOTED_IDENTIFIER OFF 
981 GO
982 SET ANSI_NULLS OFF 
983 GO
984
985  create view vw_all_dn_handleCount_part1  as  select *, 'arabidopsis_3702' as dbName from arabidopsis_3702..dn_handleCount union all  select *, 'barrel_medic_3880' as dbName from barrel_medic_3880..dn_handleCount union all  select *, 'bee_7460' as dbName from bee_7460..dn_handleCount union all  select *, 'bison_9901' as dbName from bison_9901..dn_handleCount union all  select *, 'blackbird_39638' as dbName from blackbird_39638..dn_handleCount union all  select *, 'bonobo_9597' as dbName from bonobo_9597..dn_handleCount union all  select *, 'cat_9685' as dbName from cat_9685..dn_handleCount union all  select *, 'chicken_9031' as dbName from chicken_9031..dn_handleCount union all  select *, 'chimpanzee_9598' as dbName from chimpanzee_9598..dn_handleCount union all  select *, 'cooperia_27828' as dbName from cooperia_27828..dn_handleCount union all  select *, 'corn_4577' as dbName from corn_4577..dn_handleCount union all  select *, 'cow_30522' as dbName from cow_30522..dn_handleCount union all  select *, 'cow_9913' as dbName from cow_9913..dn_handleCount union all  select *, 'dog_9615' as dbName from dog_9615..dn_handleCount union all  select *, 'flycatcher_46689' as dbName from flycatcher_46689..dn_handleCount union all  select *, 'flycatcher_59894' as dbName from flycatcher_59894..dn_handleCount union all  select *, 'fruitfly_7227' as dbName from fruitfly_7227..dn_handleCount union all  select *, 'fusarium_5518' as dbName from fusarium_5518..dn_handleCount union all  select *, 'goat_9925' as dbName from goat_9925..dn_handleCount union all  select *, 'gorilla_9593' as dbName from gorilla_9593..dn_handleCount union all  select *, 'grape_29760' as dbName from grape_29760..dn_handleCount union all  select *, 'horse_9796' as dbName from horse_9796..dn_handleCount union all  select *, 'human_9606' as dbName from human_9606..dn_handleCount union all  select *, 'macaque_9541' as dbName from macaque_9541..dn_handleCount union all  select *, 'macaque_9544' as dbName from macaque_9544..dn_handleCount union all  select *, 'mosquito_62324' as dbName from mosquito_62324..dn_handleCount union all  select *, 'mosquito_7165' as dbName from mosquito_7165..dn_handleCount union all  select *, 'mouse_10090' as dbName from mouse_10090..dn_handleCount union all  select *, 'mouse_spretus_10096' as dbName from mouse_spretus_10096..dn_handleCount union all  select *, 'nematode_51029' as dbName from nematode_51029..dn_handleCount union all  select *, 'nematode_6238' as dbName from nematode_6238..dn_handleCount union all  select *, 'nematode_6239' as dbName from nematode_6239..dn_handleCount union all  select *, 'onion_4679' as dbName from onion_4679..dn_handleCount union all  select *, 'opossum_13616' as dbName from opossum_13616..dn_handleCount union all  select *, 'orangutan_9600' as dbName from orangutan_9600..dn_handleCount union all  select *, 'pig_9823' as dbName from pig_9823..dn_handleCount union all  select *, 'pine_71647' as dbName from pine_71647..dn_handleCount union all  select *, 'plasmodium_5833' as dbName from plasmodium_5833..dn_handleCount union all  select *, 'platypus_9258' as dbName from platypus_9258..dn_handleCount union all  select *, 'rat_10116' as dbName from rat_10116..dn_handleCount union all  select *, 'rat_10118' as dbName from rat_10118..dn_handleCount union all  select *, 'rice_4530' as dbName from rice_4530..dn_handleCount union all  select *, 'salmon_74940' as dbName from salmon_74940..dn_handleCount union all  select *, 'salmon_8018' as dbName from salmon_8018..dn_handleCount union all  select *, 'salmon_8019' as dbName from salmon_8019..dn_handleCount union all  select *, 'salmon_8023' as dbName from salmon_8023..dn_handleCount union all  select *, 'salmon_8030' as dbName from salmon_8030..dn_handleCount
986 GO
987 SET QUOTED_IDENTIFIER OFF 
988 GO
989 SET ANSI_NULLS ON 
990 GO
991
992
993 SET QUOTED_IDENTIFIER OFF 
994 GO
995 SET ANSI_NULLS OFF 
996 GO
997
998  create view vw_all_dn_handleCount_part2  as  select *, 'sheep_9940' as dbName from sheep_9940..dn_handleCount union all  select *, 'soybean_3847' as dbName from soybean_3847..dn_handleCount union all  select *, 'staphylococcus_1280' as dbName from staphylococcus_1280..dn_handleCount union all  select *, 'sugarcane_128810' as dbName from sugarcane_128810..dn_handleCount union all  select *, 'tilapia_8128' as dbName from tilapia_8128..dn_handleCount union all  select *, 'tomato_4081' as dbName from tomato_4081..dn_handleCount union all  select *, 'trematode_6183' as dbName from trematode_6183..dn_handleCount union all  select *, 'trout_8022' as dbName from trout_8022..dn_handleCount union all  select *, 'tubeworm_216498' as dbName from tubeworm_216498..dn_handleCount union all  select *, 'white_shrimp_6689' as dbName from white_shrimp_6689..dn_handleCount union all  select *, 'zebrafish_7955' as dbName from zebrafish_7955..dn_handleCount union all  select *, 'zostera_29655' as dbName from zostera_29655..dn_handleCount
999 GO
1000 SET QUOTED_IDENTIFIER OFF 
1001 GO
1002 SET ANSI_NULLS ON 
1003 GO
1004
1005
1006 SET QUOTED_IDENTIFIER ON 
1007 GO
1008 SET ANSI_NULLS ON 
1009 GO
1010
1011 CREATE VIEW dbo.vw_snp_nucleotide
1012 AS
1013 select * from human_9606..vw_snp_nucleotide 
1014
1015 /*
1016 select * from mosquito_7165..vw_snp_nucleotide 
1017 union
1018 select * from bee_7460..vw_snp_nucleotide 
1019 union 
1020 select * from bison_9901..vw_snp_nucleotide
1021  union
1022 select * from cow_30522..vw_snp_nucleotide 
1023 union
1024 select * from cow_9913..vw_snp_nucleotide 
1025 union
1026 select * from nematode_6239..vw_snp_nucleotide 
1027 union
1028 select * from dog_9615..vw_snp_nucleotide 
1029 union
1030 select * from zebrafish_7955..vw_snp_nucleotide
1031 union
1032 select * from chicken_9031..vw_snp_nucleotide
1033 union
1034 select * from mouse_10090..vw_snp_nucleotide 
1035 union
1036 select * from rice_4530..vw_snp_nucleotide 
1037 union
1038 select * from chimpanzee_9598..vw_snp_nucleotide
1039 union
1040 select * from rat_10116..vw_snp_nucleotide
1041
1042 */
1043
1044
1045 GO
1046 SET QUOTED_IDENTIFIER OFF 
1047 GO
1048 SET ANSI_NULLS ON 
1049 GO
1050
1051