![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 66 Pomógł: 0 Dołączył: 20.02.2007 Ostrzeżenie: (0%) ![]() ![]() |
Witam
Mam jedna tabele w ktorej mam dane id, status_id id kazde jest inne a status_id to sa trzy rozne statusy jak pobrac te id ktore maja status (0 oraz znajduja sie takze w statusie 1) Pozdrawiam |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 66 Pomógł: 0 Dołączył: 20.02.2007 Ostrzeżenie: (0%) ![]() ![]() |
Ok. Może źle opisałem problem.
Tabela ma sporo kolumn ale najważniejsze to trzy id, position, status id sa unikatowe, position to sa pozycje ktore moga sie powtarzac a status ma trzy statusy 0, 1, 2. Chodzi o to zeby pobrac id ktorych position znajduje sie pod status=1 oraz status=2 Wiem ze polecenie takie powinno wygladac podobnie jak ponizsze: select id from tabela where status='1' and position in (select position from tabela where status_id='2'); |
|
|
![]() ![]() |
![]() |
Aktualny czas: 13.10.2025 - 10:30 |