As a far generalization of the Dedekind sum with the product of periodic Bernoulli polynomials, Mikolás introduced the Dedekind type sum \(\cal{M}_c^{a,b}(w,z)\) with the product of the Hurwitz zeta-functions ζ(s, x), 0 < x ⩽ 1. We adopt the motivation suggested by Mikolás that the Dedekind sum is a generalized inner product in the second variable. The Hurwitz zeta-function has a simple pole at s = 1 and cannot assume the value x = 0 while its counterpart, the Lerch zeta-function ℓs(x) = ℓ(s, x), is more tractable and we study the Dedekind type sum \(\cal{L}_c^{a,b}(w,z)\) with the product of the Lerch zeta-functions. We establish a striking identity between these Dedekind type sums to the effect that \(\cal{M}_c^{a,b}(w,z)\) with a correction term is a constant multiple of \(\cal{L}_c^{a,b}(w,z)\) – the base change formula. This implies a new expression for the ordinary Dedekind sum in terms of the one with Apostol’s generalized Bernoulli polynomial. In another direction, by letting the second variables vary independently with first variables fixed as s.s + 1, we may elucidate the Hecke correspondence in the previous derivations of the general eta transformation formula. We can also establish many interesting properties of \(\cal{L}_c^{a,b}\) which supplement those of \(\cal{M}_c^{a,b}\) . Moreover, we show that \(\cal{L}_c^{1,b}\) also appears in the pseudo-transformation formula for non-modular functions.