Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Dodanie warunku w klazuli WHERE
seba123
post
Post #1





Grupa: Zarejestrowani
Postów: 57
Pomógł: 1
Dołączył: 20.03.2008

Ostrzeżenie: (0%)
-----


Hi, mam takie zapytanie
  1. SELECT post.ID, post.post_title, post.post_date, AVG(rating.rating_rating) AS ocena, COUNT(rating.rating_rating) AS ilosc FROM wp_posts AS post LEFT JOIN wp_ratings AS rating ON(rating.rating_postid = ID) WHERE post.post_type = 'post' && post.post_status = 'publish' GROUP BY post.ID ORDER BY ocena DESC LIMIT 4


I potrzebuje dodać coś na styl WHERE ilosc > 3 - w jaki sposób to wykonać?

Ten post edytował seba123 23.03.2011, 11:35:28
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: 25.08.2025 - 23:03