September 29, 2008
广受好评的鸟巢照
| From 080917 |
Filed by
charlie
at 10:29 am under son
No Comments
from http://blogtd.org/2008/09/24/network-mascot/
“因为我跟你们一样,虽然上了网,但还是摆脱不了墙…"
blog图党 是个很不错的漫画博客。
Filed by
charlie
at 9:34 am under Life
No Comments
The original content is created by the blog ITIL SERVICE MANAGEMENT on the post ITIL V3 Mind Map Download OCT 7, 2007. The author has moved the MindManager file to google pages and is downloadable following the post’s comments.
This MindManger has a filename extension of mmap. I imported it to the free mind map software FreeMind ( there’s a portable version at http://portableapps.com/node/6903) and FreeMind is so powerful to export the mindmap into a feature rich flash format. You can find it on my site, follow the link and enjoy.
http://charliezhu.com/itil/ITILV3.mmap48083.html
Filed by
charlie
at 10:32 am under Engineer
No Comments
http://www.dalkescientific.com/writings/diary/archive/2008/09/20/euroqsar.html
Filed by
charlie
at 4:20 pm under Coding, chemoinformatics
No Comments
Cross tabulation , is defined on WikiPedia as A cross tabulation (often abbreviated as cross tab) displays the joint distribution of two or more variables.
As below figures, the column values of the first table is transformed to column names in the second one, so the production of
Cross tabs are frequently used because:
I think the cross-tab is really what the Relational Database means. That’s a meaningful “Relationships” between entities but not entity and it’s attributes.
Code:
SELECT
SalesPerson,
[Oranges] AS Oranges,
[Pickles] AS Pickles
FROM
( SELECT SalesPerson, Product, SalesAmount FROM tblSales ) ps
PIVOT
(
SUM (SalesAmount)
FOR Product IN ( [Oranges], [Pickles])
) AS pvt
This most weak part of feature is that you must list all pivot column name manually. It’s pain.
SELECT < non-pivoted column>,
[first pivoted column] AS ,
[second pivoted column] AS ,
...
[last pivoted column] AS
FROM
(< SELECT query that produces the data>)
AS
PIVOT
(
< aggregation function>()
FOR
[< column that contains the values that will become column headers>]
IN ( [first pivoted column], [second pivoted column],
... [last pivoted column])
) AS
< optional ORDER BY clause>;
Microsoft Access provides a very nice cross table design wizard.
With the wizard, we get the cross-tab script based on JET-SQL.
TRANSFORM Sum(tblSales.SalesAmount) AS [Sum of SalesAmount] SELECT tblSales.SalesPerson, Sum(tblSales.SalesAmount) AS [Total SalesAmount] FROM tblSales GROUP BY tblSales.SalesPerson PIVOT tblSales.Product;
Pivot columns is automaticly generated and the aggregation over all pivot column can be produced. The JET-SQL is so smart and smoothly for small applications those don’t have to be scaled. You can use almost all VBA programming utilities in it. The TRANSFORM/PIVOT feature is powerful and more then 5 years before the SQL Server’s implementation.
It is based on JET-SQL, so not availible in an ADP project.
The classic solution of cross-tab in SQL Server 2000 or before is produced by CASE and GROUP.
select
SalesPerson,
SUM(CASE Product WHEN 'Pickles' THEN SalesAmount ELSE 0 END ) as [Pickles],
SUM(CASE Product WHEN 'Oranges' THEN SalesAmount ELSE 0 END ) as [Oranges],
SUM(SalesAmount) as [Total Sales]
from
tblSales
group by
SalesPerson
We can find it’s footprint clearly in the SQL Server 2005’s pivot feature. And this is a base for other ideas.
Dynamic Cross-Tabs/Pivot Tables By Rob Volk
The basic idea is to generate dynamic CASE-and-GROUP based SQL statement and execute.
The following comments providing many improvement on this solution. i.e.
There is also an similar solution I have not dived in, Dynamic Crosstab Queries, by Itzik Ben-Gan .
But the most easy and rich tool I have used is MS Excel’s pivot table.
The basic idea of OLAP Cube is a multi-dimession pivot table. The common visualization tool for OLAP is also a pivot table or pivot chart viewer.
So, draw a figure to show basic concepts in OLAP by example metioned above as the END.
Filed by
charlie
at 10:15 pm under BI, DBA, MS_ACCESS, datamining
No Comments