这两句英语句子语法对吗?

问题描述:

这两句英语句子语法对吗?
The pattern was similar for transportation and others,with USA being the leading energy consumer WHICH HAD the slowest increase.
The pattern was similar for transportation and others,with USA being the leading energy consumer HAVING the slowest increase.
请注意看大写的地方,我尤其不知道这个having在这里如何?因为这句句子整体上是一个过去时,我不知道能否用它.

语法都没错,having放在这不用考虑时态,只是用ING作后置定语