SQL -Abfrage - die Anzahl der Datensatzzahlen basierend auf nicht in Bedingung abzurufenMySql

MySQL DBMS-Forum
Anonymous
 SQL -Abfrage - die Anzahl der Datensatzzahlen basierend auf nicht in Bedingung abzurufen

Post by Anonymous »

Ich habe Tabelle a < /p>
100 < /td>
s01 < /td>
< /tr>

100 < /td>
S02 < /td> < /> < /tr>

101 < /td>

101 < /td> < />
101 < /td> < />
101 < /td> < />
101 < /td> < />
/>S01


101
S03


102
S01


102
S03


103
S01


103
S02


103
S04


104
S01


104 < /td>
s02 < /td>
< /tr>
< /tbody>
< /table> < /div>
Ich möchte die Anzahl von IDs mit Code -Rettungs -IDs mit CODE -IDs ohne Codes -Codes -Codes erhalten. class="s-table-container">


CodeFound
NoCode




2
3



Hier sind Code gefundene IDs (101,102) und kein Code sind (100.103,104)

Code: Select all

select count(unique ID) from A where Code not in 'S03'
Kann jemand bitte in dieser

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post