Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Closed TopicStart new topic
> UNION a ORDER BY ?
beel
post
Post #1





Grupa: Zarejestrowani
Postów: 87
Pomógł: 0
Dołączył: 20.04.2007

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


Dlaczego nie moge w ten sposob polaczyc zapytan:

SELECT TOP 1 name, type, score, sex FROM student, score, event
WHERE student.student_id=score.student_id AND event.event_id=score.event_id
AND sex='M' AND type='T' ORDER BY score

UNION


SELECT TOP 1 name, type, score, sex FROM student, score, event
WHERE student.student_id=score.student_id AND event.event_id=score.event_id
AND sex='M' AND type='T' ORDER BY score DESC
Go to the top of the page
+Quote Post
Cienki1980
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 1 590
Pomógł: 40
Dołączył: 11.01.2007
Skąd: Centrum

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


Zamykam

Proszę zapoznać się z Tematyką i zasadami panującymi na forum Przedszkole i wysłać mi lub innemu moderatorowi/opiekunowi poprawny tag do tematu.

Do tego czasu wątek pozostanie zamknięty.
Go to the top of the page
+Quote Post

Closed TopicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 28.09.2025 - 04:33