SQL: Selecting everything BUT

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default SQL: Selecting everything BUT

    I have a table with 439 records in it. This table is linked to another,
    which is related to a 3rd via a 4th relationship table.

    I have a gigantic query that connects all this together AND (should) account
    for files that aren't properly linked (for error checking).

    The catch is that the query returns 430 records. So there are 9 orphaned
    records that aren't quite matching my SQL query.

    Is there any way to run a 'reverse' query in a SQL analyzer to see
    everything BUT what is returned via the query?

    -Darrel


    darrel Guest

  2. Similar Questions and Discussions

    1. selecting from two tables
      Hi I have one table called 'foobar_items' ID desc ________ ________________ foo1 very good foo foo2 ...
    2. SELECTING ROWS
      Hi again Im trying to select a particular ROW in my Database, I want to run a query on the 1st 2nd and 3rd rows seprately. the information will...
    3. selecting different css
      stu75 wrote: You could just attach a print media style sheet to accomplish this and won't need another page: Take a look at these articles:...
    4. Selecting
      I want to read the Elements of the Subject of a client certificate sent to a Web Service via HTTPS. This can be done by the following code...
    5. selecting datagrid row
      Hello asp.net I've stuck a Select button from the property builder on my grid (Col 0). Upon click I'd like it to return the value in Col 1...
  3. #2

    Default Re: SQL: Selecting everything BUT

    what about:

    SELECT ... NOT (your gigantic query)

    HTH,

    manuel

    darrel wrote:
    > I have a table with 439 records in it. This table is linked to another,
    > which is related to a 3rd via a 4th relationship table.
    >
    > I have a gigantic query that connects all this together AND (should) account
    > for files that aren't properly linked (for error checking).
    >
    > The catch is that the query returns 430 records. So there are 9 orphaned
    > records that aren't quite matching my SQL query.
    >
    > Is there any way to run a 'reverse' query in a SQL analyzer to see
    > everything BUT what is returned via the query?
    >
    > -Darrel
    >
    >
    Manuel Socarras Guest

  4. #3

    Default Re: SQL: Selecting everything BUT

    > SELECT ... NOT (your gigantic query)

    No, that won't work AFICT. That'd only work if I had a discreet WHERE
    statement.

    My query is a series of a couple joins and a few unions. There are all sorts
    of relationships going on with the query and I'm trying to find out where
    these 9 records are falling through my logic.

    -Darrel


    darrel Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139