by nurgun
24. August 2009 23:02
Sekiz oyuncusunuz ve langırt turnuvası düzenlemeniz gerekiyor. Oyuncuları eşleştirmek için
alttaki select'i kullanabilirsiniz. 1. ve 2. oyunuc 1. takım 3. ve 4. oyuncu 2. takım ...
MSSQL
select * from
(select 'Umut' Oyuncu
union
select 'Özmen' Oyuncu
union
select 'Hüseyin' Oyuncu
union
select 'Mesuta' Oyuncu
union
select 'Nurgün' Oyuncu
union
select 'Şerafettin' Oyuncu
union
select 'Mesutt' Oyuncu
union
select 'Mustafa' Oyuncu
) tbl1
order by newid()
Oracle
select * from
(select 'Umut' Oyuncu from dual
union
select 'Özmen' Oyuncu from dual
union
select 'Hüseyin' Oyuncu from dual
union
select 'Mesuta' Oyuncu from dual
union
select 'Nurgün' Oyuncu from dual
union
select 'Şerafettin' Oyuncu from dual
union
select 'Mesutt' Oyuncu from dual
union
select 'Mustafa' Oyuncu from dual
) tbl1
order by dbms_random.value