T SQL Level Up Chapter 2 Number and Date Tables

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 พ.ย. 2024

ความคิดเห็น • 5

  • @JR-ly6bx
    @JR-ly6bx 2 ปีที่แล้ว

    3:00 awesome, i was just working on that problem today, wanted to show 0 even though ID didnt exist in the table!

  • @wrenhayes149
    @wrenhayes149 3 ปีที่แล้ว

    Hey Brent and crew -- always love this channel. Question: Would it be more effective to create an "ages" table (AgeName | AgeStart | AgeEnd) and join to the "dates" table to reduce the repetition of the field "Age of Goats" in the date table column for the ~90ish days that are included therein? Is it more performance intensive to include more joins and therefore better to just include the "DateAge" column in the dates table? I'm new to query tuning! Thank you! :)

  • @TheDistractionStudio
    @TheDistractionStudio 7 ปีที่แล้ว +1

    Thank You! Very informative.

  • @petrusnierop31
    @petrusnierop31 4 ปีที่แล้ว

    I believe this is called a tally table. It is spectacular for string operations

    • @TheBrentOzar
      @TheBrentOzar 4 ปีที่แล้ว +1

      That's another word for 'em, yep - make sure to watch the video before you comment, because that's covered in the course. Enjoy!