Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: OmenChild
  • Content: Threads
  • Order by date
  1. OmenChild

    Making a temp table out of a union

    I'm attempting to make a select union statement into it's own temp table. Essentially, the end of my query has SELECT * FROM PAY_BILL UNION SELECT * FROM BILL_ADJ_WE And I want to create a more consolidated select statement, because I don't need all of the fields these two selects are...
  2. OmenChild

    Count/Sum not working properly, I think

    Hello all, I've been working on a query and I'm attempting to shorten the results. Without the count or sum functions, I get 450 records. When I use the count or sum functions, I shorten the amount of records, but the function isn't doing what I need it to. I have a feeling it is the way I am...
  3. OmenChild

    Returning NULL values for averages

    I am attempting to write a code that will take the amounts for four weeks and average them out. Right now, if there are any zero values within any week, the average results comes up NULL. I have used Coalesce to replace the NULL values within the given weeks to 0, I don't know if this is...
  4. OmenChild

    Removing duplicate records

    Hello all, I am running a query, and it is returning a lot of duplicate records. Now when I change up the way I am joining the tables, I end up losing records. So I resolve the duplication issue, but I lose data. I have tried every combination of joins I could think of, and either I receive...
  5. OmenChild

    Ignoring zeros to complete average calculation

    Hello all, I am attempting to average out results of a query I created. Right now, if any of the fields contain a zero, the resulting average field comes up NULL. I need to somehow make it so the function ignores the zeros and only calculates the actual amounts. Any ideas? Here is the portion...
  6. OmenChild

    Changing NULL values within SQL query

    Hello All, I am trying to run a comparison query on Net Pay results over a four week period. Right now the data the query returns contains NULL values for specific weeks. I would like to convert these NULL values into 0's so I can average the Net Pay for all four weeks. I have been trying to...

Part and Inventory Search

Back
Top