Coder Social home page Coder Social logo

advanced-sql-tutorial's Introduction

Hi there 👋

advanced-sql-tutorial's People

Contributors

mind1949 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

268373818

advanced-sql-tutorial's Issues

零散记录(记录学习时产生的与sql相关的零散观念)

  • select时查询出的是数据集合而不是物理的数据库表, 通过这样可以很容易的理解自连接, 因为产生了两个相同的数据集合;
  • sql唯一能够处理的数据结构是集合, 无论数据是以表的形式存储, 还是以视图的形式存储;
  • 应当尝试从集合的角度去考虑sql语句, 而不是从表的角度思考sql语句, 我以前通过表的方式可视化理解sql语句的方式是不正确的;
  • 每一小节都要自己先创建测试数据, 然后再数据库中设计跑一下, 这样才能起到检测/ 练习的效果;
  • 自连接相较于普通的连接, 性能开销更大, 所以自连接的列推荐使用主键或者在相关列上建立索引;
  • 因为在数据库中存在null会引发诸多混乱, 所以最好在每列都加上not null限制
  • having与where都是进行过滤, 但是where是通过对集合的列进行限制完成过滤, 而having是通过对结合本身的性质进行限制完成过滤;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.