Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 1 Pomógł: 0 Dołączył: 13.11.2006 Ostrzeżenie: (0%)
|
Hej
Mam następujące tabele: Products id name 1 tv 2 dvd 3 cd Features id name 1 battery 2 cables 3 manual Product_features product_id feature_id 1 1 1 2 2 1 3 2 Jaki bedzie sql który wylistuje produkty które mają baterie i kable. Wynikiem powinien być jeden rekord tv. Tomek |
|
|
|
![]() |
Post
#2
|
|
|
Grupa: Zarejestrowani Postów: 116 Pomógł: 0 Dołączył: 20.12.2005 Skąd: Łódź Ostrzeżenie: (0%)
|
Troche to wolne bedzie... (i tak na około) ale chyba mozna zastapic jedno z podzapytan joinem.
tabela Product_features to umnie p_f,atrybuty to p_id,f_id EDIT: wersja szybsza
nie działają entery w kodzie SQL (IMG:http://forum.php.pl/style_emoticons/default/angrysmiley.gif) Ten post edytował wijet 14.11.2006, 00:31:37 |
|
|
|
![]() ![]() |
|
Aktualny czas: 20.12.2025 - 18:21 |