You are on page 1of 1

SELECT wspr_users.id,username,NAME, wspr_bridge_user_plan.

tipo,mac,user,ip,
wspr_bridge_user_profile.ciudad
FROM wspr_users,wspr_bridge_user_plan,wspr_bridge_user_profile
WHERE wspr_users.id=wspr_bridge_user_plan.id_user AND
wspr_users.id=wspr_bridge_user_profile.id;
********************************************************************
facturas
SELECT wspr_users.id,username,name, wspr_bridge_user_profile.ciudad,
wspr_bridge_user_facturas.anio,mes,estado,fecha_emision,fecha_pago
FROM wspr_users,wspr_bridge_user_profile,wspr_bridge_user_facturas
WHERE wspr_users.id=wspr_bridge_user_profile.id AND
wspr_users.id=wspr_bridge_user_facturas.id_user;
*******************************************************
SELECT username, COUNT(*) Total
FROM radusergroup
GROUP BY username
HAVING COUNT(*) > 1
**********************************************************************

You might also like