How to pivot rows to columns (and back) in SQL: Databases for Developers #14

Поделиться
HTML-код
  • Опубликовано: 19 окт 2024
  • Sometimes you want to convert rows to columns. Or convert columns back into rows.
    Luckily SQL has two clauses to help you do this:
    PIVOT & UNPIVOT
    Using these you can easily transform your rows to columns and back again.
    Want more?
    Take the course:
    devgym.oracle....
    Read the blog post: blogs.oracle.c...
    Read the docs:
    PIVOT: docs.oracle.co...
    UNPIVOT: docs.oracle.co...
    Need help with SQL? Ask us over on AskTOM: asktom.oracle.com
    Twitter: / chrisrsaxon
    Daily SQL Twitter tips: / sqldaily
    All Things SQL blog: blogs.oracle.c...
    ============================
    The Magic of SQL with Chris Saxon
    Copyright © 2015 Oracle and/or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. All rights reserved. Other names may be registered trademarks of their respective owners. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the “Materials”). The Materials are provided “as is” without any warranty of any kind, either express or implied, including without limitation warranties or merchantability, fitness for a particular purpose, and non-infringement.
  • НаукаНаука

Комментарии • 9

  • @kennethdavidson2106
    @kennethdavidson2106 3 года назад +1

    I've been watching all these videos over the last two days, and at this point "one day cake orgy" is by far the best thing I've heard in any database tutorial. Thank you for making this stuff straight forward.

  • @surajkumarsingh4857
    @surajkumarsingh4857 Месяц назад

    Wow What an Explanation : )

  • @ashwinghorpade5917
    @ashwinghorpade5917 5 лет назад

    Plz videos on ssis and performance tunning

  • @pat834
    @pat834 Год назад +1

    Thanks though ‘any’ doesn’t work for me

    • @TheMagicofSQL
      @TheMagicofSQL  Год назад

      Please post a complete example to asktom.oracle.com/ and we'll look into what the issue is

  • @sanchitsingh7162
    @sanchitsingh7162 5 лет назад +2

    Haha nice!