Which are the SQL improvements you are waiting for?

后端 未结 30 1243
感情败类
感情败类 2021-02-01 22:29

Dealing with SQL shows us some limitations and gives us an opportunity to imagine what could be.

Which improvements to SQL are you waiting for? Which would you put on t

相关标签:
30条回答
  • 2021-02-01 23:10

    These are all MS Sql Server/T-SQL specific:

    1. "Natural" joins based on an existing Foreign Key relationship.
    2. Easily use a stored proc result as a resultset
    3. Some other loop construct besides while
    4. Unique constraints across non NULL values
    5. EXCEPT, IN, ALL clauses instead of LEFT|RIGHT JOIN WHERE x IS [NOT] NULL
    6. Schema bound stored proc (to ease #2)
    7. Relationships, schema bound views, etc. across multiple databases
    0 讨论(0)
  • 2021-02-01 23:11

    Abstract tables and sub-classing

    create abstract table person
      (
      id primary key,
       name varchar(50)
      );
    
    create table concretePerson extends person
      (
      birth date,
      death date
      );
    
    create table fictionalCharacter  extends person
      (
      creator int references concretePerson.id      
      );
    
    0 讨论(0)
  • 2021-02-01 23:11

    Automated dba notification in the case where the optimizer generates a plan different that the plan that that the query was tested with.

    In other words, every query can be registered. At that time, the plan is saved. Later when the query is executed, if there is a change to the plan, the dba receives a notice, that something unexpected occurred.

    0 讨论(0)
  • 2021-02-01 23:12

    Some kind of UPGRADE table which allows to make changes on the table to be like the given:

    CREATE OR UPGRADE TABLE 
    ( 
      a VARCHAR,
      ---
    )
    
    0 讨论(0)
  • 2021-02-01 23:15

    A way of dynamically specifying columns/tables without having to resort to full dynamic sql that executes in another context.

    0 讨论(0)
  • 2021-02-01 23:15

    A relational algebra DIVIDE operator. I hate always having to re-think how to do all elements of table a that are in all of given from table B.

    http://www.tc.umn.edu/~hause011/code/SQLexample.txt

    0 讨论(0)
提交回复
热议问题