Welcome to SPN

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

Sign Up Now!
  1. Guest ji, please consider donating today!
      Become a Supporter    ::   Make a Contribution   
    Monthly Recurring Target: $300 :: Achieved: $95

Separating Multiple Values from the same date

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

  1. Matt Bradshaw

    Matt Bradshaw
    Expand Collapse
    Guest

    Hello, I just inherited a database and was asked to provide one of my
    employers with an excel sheet with data from several of the tables. I had no
    problem joining the requested information, but was also asked to separate
    some of the data that is contained within a field. What I have is one table
    that has a date, stationcode (2 letter string), and a numeric value (cassim)
    fields. For each date and station there may be from 1 to 3 values for cassim
    with no set pattern. Currently all of these cassim values are stored in the
    same field, resulting in multiple date and station code entries. What I am
    trying to do is separate those cassim values into cassim_1, cassim_2, and
    cassim_3 where it is appropriate so I will have just one row of data for each
    date and station. Unfortunately every method I have tried to this point has
    not worked. I hope that was clear...any help with this would GREATLY
    appreciated! Thank you!
     
  2. Loading...


  3. Matt Bradshaw

    Matt Bradshaw
    Expand Collapse
    Guest

    Nevermind - I found a solution. Turns out that my employer wanted the fields
    separated so that he could average them in excel! I just did the averaging
    with a SQL query and sent the results. Thanks to anyone who viewed this post.

    "Matt Bradshaw" wrote:

    > Hello, I just inherited a database and was asked to provide one of my
    > employers with an excel sheet with data from several of the tables. I had no
    > problem joining the requested information, but was also asked to separate
    > some of the data that is contained within a field. What I have is one table
    > that has a date, stationcode (2 letter string), and a numeric value (cassim)
    > fields. For each date and station there may be from 1 to 3 values for cassim
    > with no set pattern. Currently all of these cassim values are stored in the
    > same field, resulting in multiple date and station code entries. What I am
    > trying to do is separate those cassim values into cassim_1, cassim_2, and
    > cassim_3 where it is appropriate so I will have just one row of data for each
    > date and station. Unfortunately every method I have tried to this point has
    > not worked. I hope that was clear...any help with this would GREATLY
    > appreciated! Thank you!
    >
     
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