Project

General

Profile

« Previous | Next » 

Revision 5849

schemas/vegbien.sql: Added aggregated_analytical_db_view and materialized table aggregated_analytical_db (synced using sync_aggregated_analytical_db_to_view())

View differences:

vegbien.my.sql
250 250

  
251 251

  
252 252
--
253
-- Name: sync_aggregated_analytical_db_to_view(); Type: FUNCTION; Schema: public; Owner: -
254
--
255

  
256

  
257

  
258

  
259
--
253 260
-- Name: sync_analytical_db_to_view(); Type: FUNCTION; Schema: public; Owner: -
254 261
--
255 262

  
......
463 470

  
464 471

  
465 472
--
473
-- Name: aggregated_analytical_db; Type: TABLE; Schema: public; Owner: -; Tablespace: 
474
--
475

  
476
CREATE TABLE aggregated_analytical_db (
477
    `institutionCode` text,
478
    country text,
479
    `stateProvince` text,
480
    county text,
481
    `decimalLatitude` double precision,
482
    `decimalLongitude` double precision,
483
    `plotName` text,
484
    `elevationInMeters` double precision,
485
    `plotArea_ha` double precision,
486
    `samplingProtocol` text,
487
    `dateCollected` date,
488
    family text,
489
    genus text,
490
    `speciesBinomial` text,
491
    `scientificName` text,
492
    `scientificNameAuthorship` text,
493
    `scientificNameWithMorphospecies` text,
494
    `individualCount` text,
495
    `individualCount_1_to_2_5cm` text,
496
    `individualCount_2_5_to_10cm` text,
497
    `individualCount_10cm_or_more` text
498
);
499

  
500

  
501
--
502
-- Name: analytical_db; Type: TABLE; Schema: public; Owner: -; Tablespace: 
503
--
504

  
505
CREATE TABLE analytical_db (
506
    `institutionCode` text,
507
    country text,
508
    `stateProvince` text,
509
    county text,
510
    `decimalLatitude` double precision,
511
    `decimalLongitude` double precision,
512
    `plotName` text,
513
    `elevationInMeters` double precision,
514
    `plotArea_ha` double precision,
515
    `samplingProtocol` text,
516
    `dateCollected` date,
517
    family text,
518
    genus text,
519
    `speciesBinomial` text,
520
    `scientificName` text,
521
    `scientificNameAuthorship` text,
522
    `scientificNameWithMorphospecies` text,
523
    `identifiedBy` text,
524
    `growthForm` text,
525
    cultivated int(1),
526
    `cultivatedBasis` text,
527
    `coverPercent` double precision,
528
    `diameterBreastHeight_cm` double precision,
529
    height_m double precision,
530
    tag text,
531
    `organismX_m` double precision,
532
    `organismY_m` double precision,
533
    `recordedBy` text,
534
    `recordNumber` text
535
);
536

  
537

  
538
--
539
-- Name: aggregated_analytical_db_view; Type: VIEW; Schema: public; Owner: -
540
--
541

  
542

  
543

  
544

  
545
--
466 546
-- Name: aggregateoccurrence; Type: TABLE; Schema: public; Owner: -; Tablespace: 
467 547
--
468 548

  
......
523 603

  
524 604

  
525 605
--
526
-- Name: analytical_db; Type: TABLE; Schema: public; Owner: -; Tablespace: 
527
--
528

  
529
CREATE TABLE analytical_db (
530
    `institutionCode` text,
531
    country text,
532
    `stateProvince` text,
533
    county text,
534
    `decimalLatitude` double precision,
535
    `decimalLongitude` double precision,
536
    `plotName` text,
537
    `elevationInMeters` double precision,
538
    `plotArea_ha` double precision,
539
    `samplingProtocol` text,
540
    `dateCollected` date,
541
    family text,
542
    genus text,
543
    `speciesBinomial` text,
544
    `scientificName` text,
545
    `scientificNameAuthorship` text,
546
    `scientificNameWithMorphospecies` text,
547
    `identifiedBy` text,
548
    `growthForm` text,
549
    cultivated int(1),
550
    `cultivatedBasis` text,
551
    `coverPercent` double precision,
552
    `diameterBreastHeight_cm` double precision,
553
    height_m double precision,
554
    tag text,
555
    `organismX_m` double precision,
556
    `organismY_m` double precision,
557
    `recordedBy` text,
558
    `recordNumber` text
559
);
560

  
561

  
562
--
563 606
-- Name: location; Type: TABLE; Schema: public; Owner: -; Tablespace: 
564 607
--
565 608

  

Also available in: Unified diff