Re: Filtering Queries

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Oct 1, 6:16 pm, PatK <P...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I have a database of support tickets, that contain a couple of fields, Group
and YYYY-MM. I have created a table called tblSession, which I use a form to
update this "single row" table, to basically try to create a Session Filter
for all subsequent queries.

The two fields on the tblSession update form are "Support Team" and "Month".
Support refers to the group that provide the support (I have 5 groups).
Month refers to the month the support ticket came in, in YYYY-MM format. I
am able to get this single row table updated properly. After an update, it
might look like this:

Filter (PK) Team Month
"Filter" (contant) MPS 2007-09

Filter contstant is used only by the update form, to force it to always
update just the first record. MPS is one of my support teams.

In my "Support Ticket" data table (about 100K rows), I have both the Support
Team and Month in each detail row.

What I thought I could do was create a query that joins to the Month field,
and have that query return only rows where the Month field in the session
filter table and the detail ticket data, are equal. Unfortunately, it
returns nothing (although I can see/edit the relationship just fine in Design
view).

I am wondering what bonehead thing I am doing. I can see ticket data rows
with the right month...and I can see ticket data rows with the right team. I
have tried making a query to simply link to ONE of the fields, first, but
even that first query returns nothing.

Any ideas (if this makes any sense) where I may have gone wrong?

Data types? Perhaps something like this:

month_start_date = #2007-09-01 00:00:00#
month_end_date = #2007-09-30 23:59:59#

SELECT *
FROM SupportTickets AS S1
INNER JOIN tblSession AS T1
ON S1.Team = T1.Team
AND (S1.ticket_in_date BETWEEN T1.month_start_date AND
T1.month_end_date)
AND T1.Filter = 'Filter';

Jamie.

--


.



Relevant Pages

  • Re: Filtering Queries
    ... vs a link to the tblSessionFilter, is my query going to be ... to basically try to create a Session Filter ... filter table and the detail ticket data, ...
    (microsoft.public.access.queries)
  • Re: Win32_NetworkConnection closes connectios in remote monitoring?
    ... There's also a difference between hacking into a session that's already established and creating a new one. ... I've reproduced the issue on my side that the mapped driver shows "Unavailable" status when it's queried from a remote computer with the Win32_NetworkConnection class. ... In "computer 2", query the local mapped drivers' status with wbemtest, and it returns the "OK" status for the newly created mapped driver. ... We welcome your comments and suggestions about how we can improve the support we provide to you. ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Filtering Queries
    ... to basically try to create a Session Filter ... Support refers to the group that provide the support. ... What I thought I could do was create a query that joins to the Month field, ... filter table and the detail ticket data, ...
    (microsoft.public.access.queries)
  • Re: Oracle Directconnect (ODC) Security - is it ok?
    ... The following information about session security for Expertcity's ... DesktopStreaming allows a support agent to see the end user's screen ... > and select the appropriate engineer from a dropdown list. ...
    (comp.security.misc)
  • RE: Sorting a Gridview Control / Linq Result Set from SPROC
    ... It seems like we're doing a query and then burning time looping through the ... Based on my understanding you're using Linq to Sql and retrieve data via ... Microsoft Online Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)