Home > database > O great spirit in the circumstance that does not create a view to spell a SQL statement.
O great spirit in the circumstance that does not create a view to spell a SQL statement.
Time:09-19
Table A, there is only the identity of the id, and numeric type (1, 2) the field 1 and 2 Table B, there is A field ids, and table A id is matching, as well as A numeric (10, 2) the type of field 3 Want to achieve, to find A table of A field match to table B minus 1 id 3, the sum of all the id field is not equal to list A 2,
CodePudding user response:
Very fuzzy, please list the test table structure, test data and the desired results,