Muchas Gracias¡¡¡
Saludos.
Código SQL:
Ver original
SELECT ConfigDB.dbo.cfg_person.last_name, ConfigDB.dbo.cfg_person.first_name, ConfigDB.dbo.cfg_person.employee_id, ConfigDB.dbo.cfg_person.user_name, ConfigDB.dbo.cfg_agent_login.login_code, dateadd(s,MAX (TIME),'19691231 21:00:00:000') AS Ultimo_Login, COUNT (*) AS Cantidad_Login FROM ConfigDB.dbo.cfg_person, ConfigDB.dbo.cfg_agent_login, ConfigDB.dbo.cfg_login_info, StatServerDB.dbo.login WHERE TIME BETWEEN '1438790434' AND '1438819200' AND StatServerDB.dbo.LOGIN.STATUS = '1' AND ConfigDB.dbo.cfg_person.dbid = ConfigDB.dbo.cfg_login_info.person_dbid AND ConfigDB.dbo.cfg_agent_login.dbid = ConfigDB.dbo.cfg_login_info.agent_login_dbid AND StatServerDB.dbo.LOGIN.loginid = ConfigDB.dbo.cfg_agent_login.login_code GROUP BY StatServerDB.dbo.LOGIN.loginid, cfg_person.last_name, cfg_person.first_name, cfg_person.employee_id, cfg_person.user_name, cfg_agent_login.login_code
La idea es hacer la misma consulta pero en ORACLE, ahora esta corriendo en SQL Server 2008.
Les Agradezco Como Siempre¡¡¡¡
Saludos.
Charly.