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

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: SQL -Abfrage - die Anzahl der Datensatzzahlen basierend auf nicht in Bedingung abzurufen

by Anonymous » 09 Apr 2025, 05:05

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

Top