FizzBuzz in SQLite 2
I will have to admit I personally prefer the First attempt, but both seem like they would run fast and deliver as expected. 

The only piece I don't like so much, which is found in both attempts, is this:


    select g + f * 2 + e * 4 + d * 8 
    + c * 16 + b * 32 + a * 64 as n



I think this could really use some parentheses for clarity, if nothing else. 

    select (
    g + (f * 2) + (e * 4) + (d * 8) 
    + (c * 16) + (b * 32) + (a * 64) 
    ) as n