From: | "Satish Burnwal (sburnwal)" <sburnwal(at)cisco(dot)com> |
---|---|
To: | "Justin Graf" <justin(at)magwerks(dot)com>, "Bill Moran" <wmoran(at)potentialtech(dot)com> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Query is stuck |
Date: | 2010-04-15 13:31:41 |
Message-ID: | 3A8C969225424C4D8E6BEE65ED8552DA012997D4@XMB-BGL-41C.cisco.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general |
Great!! Your help is very valuable!!
-----Original Message-----
From: Justin Graf [mailto:justin(at)magwerks(dot)com]
Sent: Wednesday, April 14, 2010 7:35 PM
To: Bill Moran
Cc: Satish Burnwal (sburnwal); pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Query is stuck
I suggest writting something like this.
select report_id, dm_ip, dm_mac, dm_user,
dm_os, report_time, sys_name,
sys_user, sys_user_domain, ss_key,
login_time, role_id, new_vlan_id
from repcopy as a
(select max(report_time) as rtime,
dm_user, dm_ip
from repcopy
group by dm_user, dm_ip
where ss_key != '') as materialized
where report_time = materialized.rtime
and materialized.dm_user = a.dm_user
and materialized.dm__ip = a_ip
and report_status = 0
and dm_user = 'u3';
All legitimate Magwerks Corporation quotations are sent in a .PDF file attachment with a unique ID number generated by our proprietary quotation system. Quotations received via any other form of communication will not be honored.
CONFIDENTIALITY NOTICE: This e-mail, including attachments, may contain legally privileged, confidential or other information proprietary to Magwerks Corporation and is intended solely for the use of the individual to whom it addresses. If the reader of this e-mail is not the intended recipient or authorized agent, the reader is hereby notified that any unauthorized viewing, dissemination, distribution or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and destroy all occurrences of this e-mail immediately.
Thank you.
From | Date | Subject | |
---|---|---|---|
Next Message | Lewis Kapell | 2010-04-15 13:37:02 | Re: Migrating from 8.3 to 8.4 on the same server |
Previous Message | Thorne, Francis | 2010-04-15 07:47:39 | AIX Postgres Compile Error |
From | Date | Subject | |
---|---|---|---|
Next Message | Merlin Moncure | 2010-04-15 13:53:37 | Re: How to insert Ecoded values into postrgresql |
Previous Message | Ostrovsky Eugene | 2010-04-15 13:06:30 | modification time & transaction synchronisation problem |