In some ways static analysis of SQL code is easier, because it's a declarative language with a much smaller set vocabulary and simpler paradigms. However, at the same time it's much more difficult for a static analysis tool to make judgments about the efficiency or applicability of a block of SQL code, because it's so interdependent on the underlying physical and logical database model.
"Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho