quinta-feira, 6 de dezembro de 2012

Quick Pivot Table with Mysql

Hi,
a pivot table is easy to make on mysql:


replace into tablea
select tableb.col1
from tableb as tableb
where 1=1
;

But the secret for a good pivot table is that we can make business logic on the query:

1)   count(case when c like '%something%' then 1 end) as col2

2)  other aggregation functions can be used like avg, ...


best
tecbea


Java Obfuscate Properties

Hi there how many times we have fuckin stupid commentaries of , hey the code has a password... bullshit you can always get the password... ...