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