Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Jak wylistować produkty ?
tomroy
post
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
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.12.2025 - 21:30