This article is a mirror article of machine translation, please click here to jump to the original article.

View: 17441|Reply: 2

[Communication] database

[Copy link]
Posted on 7/5/2021 9:52:38 AM | | |
select * from t where b not in (select distinct b from t) What does it mean to solve online  





Previous:Python packages scripts into exe applications
Next:Under Windows, see the program that Java.exe belongs to
Posted on 7/5/2021 10:36:59 AM |
The result of this implementation will not always be empty
Posted on 7/6/2021 9:28:18 AM |
1. Query the deduplicated field B data of the t table to obtain (Result 1)  
2. Query all field data in table t When field b is not in (Result 1), obtain (Result 2)
Final result: (Outcome 2) No data
Example:
T-table
id     b
1      1
1      5
2      2
3      3
4      3
(Outcome 1): 1, 2, 3, 5

(Result 2): Empty
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com