Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $95

Query/Report question

Discussion in 'Information Technology' started by efgh, Jul 28, 2006.

  1. efgh

    efgh
    Expand Collapse
    Guest

    I'm having an issue with the results of a query and trying to get those results to show on a report. I have a table with the following structure:

    SType - Text
    Number - Number
    Owner - Text
    Area - Text
    RType - Text
    LastWeek - Number
    Connect - Number
    Terminate - Number
    Backdated - Number
    ThisWeek - Number

    An example of the data is as follows:

    SType Number Owner Area RType LastWeek Connect Terminate Backdated ThisWeek
    C 1 T Dawson City DFGOV 0 0 0 0 0
    C 1 S Dawson City DPGOV 0 0 0 4 0
    C 1 R Dawson City DRES 0 3 1 0 0
    C 1 U Dawson City DDLR 0 0 0 0 0
    C 1 Q Dawson City DBUS 0 2 0 0 0
    c 2 Q Haines Jct DRES 0 2 1 1 0

    There's a total of 25 rows in the table with 5 distinct areas, Dawson City, Haines Jct, Old Crow, Watson Lk, Whitehorse that follow the above mentioned pattern.
    When I run the following query:

    SELECT [Latitude ActiveOwner].Area
    FROM [Latitude ActiveOwner]
    GROUP BY [Latitude ActiveOwner].Area;

    I get 5 rows of results, one for each area.
    When I try to base a report on this query, the report only shows Haines Jct and Old Crow and I can't seem to figure out why. Any ideas?
     
  2. Loading...

    Similar Threads Forum Date
    Anyone Have Any Unanswered Questions On Sikhi Or God? Sikh Sikhi Sikhism Jan 7, 2017
    Question About Translations Questions and Answers Dec 20, 2016
    Question About GGS Questions and Answers Aug 28, 2016
    Marriage And Discrimination Related Questions Blogs Mar 21, 2016
    Sikhi Questioning Faith Sikh Sikhi Sikhism Mar 3, 2016

  3. KARL DEWEY

    KARL DEWEY
    Expand Collapse
    Guest

    Post your complete SQL.

    "efgh" wrote:

    > I'm having an issue with the results of a query and trying to get those results to show on a report. I have a table with the following structure:
    >
    > SType - Text
    > Number - Number
    > Owner - Text
    > Area - Text
    > RType - Text
    > LastWeek - Number
    > Connect - Number
    > Terminate - Number
    > Backdated - Number
    > ThisWeek - Number
    >
    > An example of the data is as follows:
    >
    > SType Number Owner Area RType LastWeek Connect Terminate Backdated ThisWeek
    > C 1 T Dawson City DFGOV 0 0 0 0 0
    > C 1 S Dawson City DPGOV 0 0 0 4 0
    > C 1 R Dawson City DRES 0 3 1 0 0
    > C 1 U Dawson City DDLR 0 0 0 0 0
    > C 1 Q Dawson City DBUS 0 2 0 0 0
    > c 2 Q Haines Jct DRES 0 2 1 1 0
    >
    > There's a total of 25 rows in the table with 5 distinct areas, Dawson City, Haines Jct, Old Crow, Watson Lk, Whitehorse that follow the above mentioned pattern.
    > When I run the following query:
    >
    > SELECT [Latitude ActiveOwner].Area
    > FROM [Latitude ActiveOwner]
    > GROUP BY [Latitude ActiveOwner].Area;
    >
    > I get 5 rows of results, one for each area.
    > When I try to base a report on this query, the report only shows Haines Jct and Old Crow and I can't seem to figure out why. Any ideas?
    >
    >
     
  4. efgh

    efgh
    Expand Collapse
    Guest

    "KARL DEWEY" <KARLDEWEY@discussions.microsoft.com> wrote in message
    news:8E092B58-E66B-480A-A5EE-4454889D32B5@microsoft.com...
    > Post your complete SQL.
    >
    > "efgh" wrote:
    >
    >> I'm having an issue with the results of a query and trying to get those
    >> results to show on a report. I have a table with the following
    >> structure:
    >>
    >> SType - Text
    >> Number - Number
    >> Owner - Text
    >> Area - Text
    >> RType - Text
    >> LastWeek - Number
    >> Connect - Number
    >> Terminate - Number
    >> Backdated - Number
    >> ThisWeek - Number
    >>
    >> An example of the data is as follows:
    >>
    >> SType Number Owner Area RType LastWeek Connect Terminate
    >> Backdated ThisWeek
    >> C 1 T Dawson City DFGOV 0 0
    >> 0 0 0
    >> C 1 S Dawson City DPGOV 0 0
    >> 0 4 0
    >> C 1 R Dawson City DRES 0 3
    >> 1 0 0
    >> C 1 U Dawson City DDLR 0 0
    >> 0 0 0
    >> C 1 Q Dawson City DBUS 0 2
    >> 0 0 0
    >> c 2 Q Haines Jct DRES 0 2
    >> 1 1 0
    >>
    >> There's a total of 25 rows in the table with 5 distinct areas, Dawson
    >> City, Haines Jct, Old Crow, Watson Lk, Whitehorse that follow the above
    >> mentioned pattern.
    >> When I run the following query:
    >>
    >> SELECT [Latitude ActiveOwner].Area
    >> FROM [Latitude ActiveOwner]
    >> GROUP BY [Latitude ActiveOwner].Area;
    >>
    >> I get 5 rows of results, one for each area.
    >> When I try to base a report on this query, the report only shows Haines
    >> Jct and Old Crow and I can't seem to figure out why. Any ideas?
    >>

    That is my complete SQL. The SQL statement above is the query that I'm
    basing my report from. It's about as simple as I can make it. I feel as
    though I'm missing something that's allowing me to see the rest of the rows
    in the report that I see in the query results. I should add that I tried to
    bind this report to the table that I'm selecting from and I'm seeing rows 6
    through 16 instead of rows 1 through 25. I'm stumped.
     
  5. efgh

    efgh
    Expand Collapse
    Guest

    "efgh" <efgh@abcd.com> wrote in message
    news:5ohrg.43589$B91.41551@edtnps82...
    >
    > "KARL DEWEY" <KARLDEWEY@discussions.microsoft.com> wrote in message
    > news:8E092B58-E66B-480A-A5EE-4454889D32B5@microsoft.com...
    >> Post your complete SQL.
    >>
    >> "efgh" wrote:
    >>
    >>> I'm having an issue with the results of a query and trying to get those
    >>> results to show on a report. I have a table with the following
    >>> structure:
    >>>
    >>> SType - Text
    >>> Number - Number
    >>> Owner - Text
    >>> Area - Text
    >>> RType - Text
    >>> LastWeek - Number
    >>> Connect - Number
    >>> Terminate - Number
    >>> Backdated - Number
    >>> ThisWeek - Number
    >>>
    >>> An example of the data is as follows:
    >>>
    >>> SType Number Owner Area RType LastWeek Connect Terminate
    >>> Backdated ThisWeek
    >>> C 1 T Dawson City DFGOV 0 0 0
    >>> 0 0
    >>> C 1 S Dawson City DPGOV 0 0 0
    >>> 4 0
    >>> C 1 R Dawson City DRES 0 3
    >>> 1 0 0
    >>> C 1 U Dawson City DDLR 0 0
    >>> 0 0 0
    >>> C 1 Q Dawson City DBUS 0 2
    >>> 0 0 0
    >>> c 2 Q Haines Jct DRES 0 2
    >>> 1 1 0
    >>>
    >>> There's a total of 25 rows in the table with 5 distinct areas, Dawson
    >>> City, Haines Jct, Old Crow, Watson Lk, Whitehorse that follow the above
    >>> mentioned pattern.
    >>> When I run the following query:
    >>>
    >>> SELECT [Latitude ActiveOwner].Area
    >>> FROM [Latitude ActiveOwner]
    >>> GROUP BY [Latitude ActiveOwner].Area;
    >>>
    >>> I get 5 rows of results, one for each area.
    >>> When I try to base a report on this query, the report only shows Haines
    >>> Jct and Old Crow and I can't seem to figure out why. Any ideas?
    >>>

    > That is my complete SQL. The SQL statement above is the query that I'm
    > basing my report from. It's about as simple as I can make it. I feel as
    > though I'm missing something that's allowing me to see the rest of the
    > rows in the report that I see in the query results. I should add that I
    > tried to bind this report to the table that I'm selecting from and I'm
    > seeing rows 6 through 16 instead of rows 1 through 25. I'm stumped.
    >

    I found the issue. I was selecting Layout Preview rather than Print
    Preview.
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page