rollup

Exporting UI-Components in Angular 5 - template not found

自古美人都是妖i 提交于 2019-12-25 12:50:46
问题 I'm developing UI Components for usage in different Web-Projects across the company. We want to publish the ui-components as npm package on our local Repository. Publishing the package works fine. When I npm install the package, import the module in my app.module.ts and run 'ng serve' (it's an Angular CLI Project), everything compiles fine. But when accessing the Site on localhost, nothing is shown and the console says: Why is Angular looking for templates in html format, when they are

How do I calc a total row using a PIVOT table, without UNION, ROLLUP or CUBE?

五迷三道 提交于 2019-12-25 12:37:10
问题 Can someone help out with calculating a total row at the bottom of this PIVOT table please? select *, [Drug1] + [Drug2] + [Drug3] + [Drug4] + [Drug5] as [Total] from (Select [id], [drug], [Diagnosis] from DrugDiagnosis ) as ptp pivot (count(id) for drug in ([Drug1], [Drug2], [Drug3], [Drug4], [Drug5]) ) as PivotTable I know I can do it with a UNION and have a separate query to calc the totals, but that will double the hit on the database. I have found examples using ROLLUP and CUBE, but these

Adding a pivot to a rollup

[亡魂溺海] 提交于 2019-12-25 06:54:36
问题 I have the following query that gives me aggregated data that I would like to pivot: select provider, title, hd_or_sd, SUM(customer_price), count(distinct title) from `100` group by provider, title, hd_or_sd with rollup I would like to pivot on the sd_or_hd column, so that my result looks like: hd sd total provider title rev. count rev. count rev. count DISTRIBBER 16.99 1 16.99 1 DISTRIBBER finding Joe 16.99 1 16.99 1 How would I do this query? Also, I have noticed that the Rollup is not

Oracle SQL - Pivot table rows to column and use sub query in pivot

◇◆丶佛笑我妖孽 提交于 2019-12-24 04:44:24
问题 Am working on Oracle 12c R1 db and have a sample view with sample data as below: View Name: CUST_HOTEL_VIEW +----------------+---------------+---------------+ | Customer | Hotel | Booked Status | +----------------+---------------+---------------+ | John Smith | Beverly Hills | Booked | | John Smith | Royal Palms | | | Marilyn Lawson | Beverly Hills | | | John Smith | Ritz-Carlton | | | Marilyn Lawson | Royal Palms | | | Sarah Elliot | Royal Palms | | | Sarah Elliot | Ritz-Carlton | Booked | |

Angular AOT & Rollup - Uncaught ReferenceError: exports is not defined

旧城冷巷雨未停 提交于 2019-12-23 17:46:12
问题 I am trying to implement Angular's AOT tutorial: https://angular.io/docs/ts/latest/cookbook/aot-compiler.html Using ngc part works and it generates aot folder. However,when I run the application, I get the below error bundle.js:1 Uncaught ReferenceError: exports is not defined My code is as below :- tsconfig-aot.json { "compilerOptions": { "target": "es5", "module": "es2015", "moduleResolution": "node", "sourceMap": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "lib": [

mysql left join sum two tables with rollup

时光怂恿深爱的人放手 提交于 2019-12-23 02:53:35
问题 i stack at mysql syntax where i have a table revenue with values title_id | revenue | cost 1 | 10 | 5 2 10 5 3 10 5 4 10 5 1 20 6 2 20 6 3 20 6 4 20 6 and then i have table fund with values title_id | interest 1 | 10 2 10 3 10 4 10 1 20 2 20 3 20 4 20 I want to join this two table using left join and rollup the values like this : SELECT R.title_id, R.revenue, R.cost, F.interest FROM (SELECT title_id, Sum(revenue) revenue, Sum(cost) cost FROM revenue GROUP BY revenue.title_id with rollup) r

How to use ROLLUP, RANK() with pivot table in Oracle11g

你说的曾经没有我的故事 提交于 2019-12-22 23:14:44
问题 Table schema CREATE TABLE customer ( id NUMERIC, lname VARCHAR (30), fname VARCHAR (30) NOT NULL, street VARCHAR (30) NOT NULL, city VARCHAR (30) NOT NULL, zipcode NUMERIC (5) NOT NULL, state VARCHAR (2) NOT NULL, phone VARCHAR (12) NOT NULL, creditscore NUMERIC, credit_org VARCHAR (30), cs_date DATE, CONSTRAINT customer_pk PRIMARY KEY (id) ); Requirement: Part 1: Create a pivot table to list the number of customers by location ('PA', 'CA', 'NY', 'MD') and also by creditscore range. For

How to use ROLLUP, RANK() with pivot table in Oracle11g

一曲冷凌霜 提交于 2019-12-22 23:13:30
问题 Table schema CREATE TABLE customer ( id NUMERIC, lname VARCHAR (30), fname VARCHAR (30) NOT NULL, street VARCHAR (30) NOT NULL, city VARCHAR (30) NOT NULL, zipcode NUMERIC (5) NOT NULL, state VARCHAR (2) NOT NULL, phone VARCHAR (12) NOT NULL, creditscore NUMERIC, credit_org VARCHAR (30), cs_date DATE, CONSTRAINT customer_pk PRIMARY KEY (id) ); Requirement: Part 1: Create a pivot table to list the number of customers by location ('PA', 'CA', 'NY', 'MD') and also by creditscore range. For

Rollup Error: 'isValidElementType' is not exported by node_modules/react-is/index.js

元气小坏坏 提交于 2019-12-21 03:21:16
问题 I'm building a bundle with rollUp using styled-components. My rollup.config.js looks like: import resolve from 'rollup-plugin-node-resolve' import babel from 'rollup-plugin-babel' import commonjs from 'rollup-plugin-commonjs' export default { input: 'src/index.js', output: { file: 'dist/bundle.js', format: 'cjs' }, external: [ 'react', 'react-proptypes' ], plugins: [ resolve({ extensions: [ '.js', '.json', '.jsx' ] }), commonjs({ include: 'node_modules/**' }), babel({ exclude: 'node_modules/*

MySQL only get overall ROLLUP

做~自己de王妃 提交于 2019-12-20 02:43:12
问题 Performing a WITH ROLLUP when grouping by multiple fields, MySQL returns a rollup row for each group, as well as the overall summary: CREATE TABLE test (name VARCHAR(50), number TINYINT); INSERT INTO test VALUES ('foo', 1), ('foo', 1), ('foo', 2), ('foo', 3), ('foo', 3), ('bar', 1), ('bar', 2), ('bar', 2), ('bar', 2), ('bar', 3), ('baz', 1), ('baz', 2), ('bar', 2); SELECT name, number, COUNT(1) FROM test GROUP BY name, number WITH ROLLUP; +------+--------+----------+ | name | number | count(1