Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2014
    Posts
    1

    Unanswered: Postgres query datye wise

    Hi,
    I have a db where every day we maintain db of gps data.
    I am having a query where I need to find out the data date wise from 1st to 10th of the month between 6AM to 12AM.
    I need something in the form of
    date1 date 2 date3 date 4
    12 10 13 14

    Any help on this will be really helpful.


    Thanks
    Aditya Kumar

  2. #2
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    Use a single date column... PostgreSQL is far better at working out query plans than any human could be at denormalizing data for a problem like this.

    -PatP
    In theory, theory and practice are identical. In practice, theory and practice are unrelated.

Posting Permissions

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