database - find the instance makes two queries different -


Looking at any schema of the database and looking at any two questions about this database, find the smallest example Try that which is due to two questions. Different results set

  1. I can come up with only one question to find out the difference between the two questions, that is, the results of each query are considered as subtables and Compare two tables to see if they are identical. Still I'm not sure whether this will work or not

  2. There is no clue about how to find this small example, can someone give me some signs or inspiration? is? Should I build two examples or an example to use information from the database schema, or am I leading a wrong direction? Thanks a lot!

    update1: Database example is a scenario in which each table of the database contains some specific values ​​for its attributes.

    For example,

    Schema:

      Table A: attr1 attr2 ... Table B: attr1 attr2 attr3 ...   

    In which scenario of the database do I have to find that two arbitrary questions will return different results?

    Assuming that you are using SQL Server, I believe that you have two quizzes Want to see the difference of results.

    Use EXCEPT

      SELECT * Select from Table 1 * to Table 2    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -