Remove individual NULLs, so each of record is distinct

  • Hi,

    I have result set in below format:

    Dt Wire Convergys

    01/01/10 NULL0.6471

    01/01/10 0.5789NULL

    01/02/10 NULL0.5108

    01/02/10 0.5772NULL

    01/03/10 NULL0.2500

    01/03/10 0.2500NULL

    I need to make it in format where NULLs are removed & there are Distinct Dt columns.

    Dt Wire Convergys

    01/01/10 0.57890.6471

    01/02/10 0.57720.5108

    01/03/10 0.25000.2500

    Please let me know, how it needs to be done. Thanks

  • i think you'll have to use MAX(*) functions and a group by statement:

    SELECT

    Dt ,

    MAX(Wire) AS Wire,

    MAX(Convergys) As Convergys

    FROM YourTable

    Group By Dt

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply