Simplify Complex SQL With This Feature

Поделиться
HTML-код
  • Опубликовано: 16 окт 2024
  • 📝 Get my free SQL Cheat Sheets: www.databasest...
    🎓 Master SQL Fundamentals: databasestar.m...
    There's a technique in SQL that allows you to simplify your queries and possibly improve performance.
    Learn what it is, why use it, and how to use it with some examples in this video.
    🔗 VIDEO LINKS:
    GitHub repo with the scripts from this lesson: github.com/bbr...

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

  • @jimshtepa5423
    @jimshtepa5423 3 месяца назад +4

    what is a session in this context? say 25 users are looking at their historic data (performance on task completing), is a temporary table created by the first user queried relevant data will survive until the last 25th user closes her browser tab?

    • @DatabaseStar
      @DatabaseStar  3 месяца назад +2

      Good question. A session is a single user within their own connection to a database. If 25 users are viewing the database, they each have their own separate session. A temporary table can be created, and will only exist and be populated for that user. Once a user disconnects or closes their tab, the session will end.

  • @ravishmahajan9314
    @ravishmahajan9314 3 месяца назад

    CTE are better than temp table

    • @DatabaseStar
      @DatabaseStar  3 месяца назад

      Yeah they can be in many situations.