2020-03-23 17:40:39 +01:00
|
|
|
DROP VIEW IF EXISTS ${hive_db_name}.result;
|
|
|
|
|
|
|
|
CREATE VIEW IF NOT EXISTS result as
|
2020-04-22 18:24:06 +02:00
|
|
|
select id, dateofcollection, title, publisher, bestaccessright, datainfo, collectedfrom, pid, author, resulttype, language, country, subject, description, dateofacceptance, embargoenddate, resourcetype, context, instance from ${hiveDbName}.publication p
|
2020-03-04 10:56:50 +01:00
|
|
|
union all
|
2020-04-22 18:24:06 +02:00
|
|
|
select id, dateofcollection, title, publisher, bestaccessright, datainfo, collectedfrom, pid, author, resulttype, language, country, subject, description, dateofacceptance, embargoenddate, resourcetype, context, instance from ${hiveDbName}.dataset d
|
2020-03-04 10:56:50 +01:00
|
|
|
union all
|
2020-04-22 18:24:06 +02:00
|
|
|
select id, dateofcollection, title, publisher, bestaccessright, datainfo, collectedfrom, pid, author, resulttype, language, country, subject, description, dateofacceptance, embargoenddate, resourcetype, context, instance from ${hiveDbName}.software s
|
2020-03-04 10:56:50 +01:00
|
|
|
union all
|
2020-04-22 18:24:06 +02:00
|
|
|
select id, dateofcollection, title, publisher, bestaccessright, datainfo, collectedfrom, pid, author, resulttype, language, country, subject, description, dateofacceptance, embargoenddate, resourcetype, context, instance from ${hiveDbName}.otherresearchproduct o;
|