select count( distinct date_format(TARIH,'%Y%m')) from tablo1

i de kullanabilirsiniz.


2011/5/9 Evrim Furuncu <[email protected]>

>  Merhabalar,
>
> " (select distinct Year(TARIH), Month(TARIH) from tablo1) " şeklinde
> oluşturduğu tabloya bir isim vermesi gerekiyor. Bu nedenle temp yazılmış.
> İsterseniz siz abc yazın farketmez.
>
> İyi günler.
>
>
> On 09.05.2011 16:31, Nuri AKMAN wrote:
>
> Sinan Bey,
>
> En sonradaki "temp" ne amaçla kullanılıyor?
>
> Selamlar,
> Nuri Akman
>
>
> 2011/5/9 Sinan Duman <[email protected]>
>
>> Aradığınız böyle birşey mi?
>>
>>  select count(*) from (select distinct Year(TARIH), Month(TARIH) from
>> tablo1) temp;
>>
>>  Mysql 5.1.32 sürümünde çalıştırdım.
>>
>>
>> 09 Mayıs 2011 15:12 tarihinde Nuri AKMAN <[email protected]> yazdı:
>>
>>  Şu şekilde denedim. Yine olmadı...
>>>
>>> select COUNT ( distinct ( month( TARIH ) ) ) from TABLO1
>>>
>>> Selamlar,
>>> Nuri Akman
>>>
>>>
>>>
>>> 2011/5/9 serdar güler <[email protected]>
>>>
>>>> Merhaba,
>>>>
>>>> Aşağıdaki sql i kullanabilirsiniz.
>>>>
>>>> select COUNT (distinct (date_format(BELGE_TARIH,';%m' ) + 0 ) ) from
>>>> TABLO1
>>>>
>>>> 2011/5/9 <[email protected]>
>>>>
>>>>  Mailiniz bana ulaştı. En kısa zamanda geri döneceğim.
>>>>>
>>>>> ---------
>>>>> Saygılarımla
>>>>> Burak Maleri
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Linux-programlama mailing list
>>>>> [email protected]
>>>>> https://liste.linux.org.tr/mailman/listinfo/linux-programlama
>>>>> Liste kurallari: http://liste.linux.org.tr/kurallar.php
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Serdar Güler
>>>> www.akilsayar.com
>>>> www.bisoft.com.tr
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Linux-programlama mailing list
>>>> [email protected]
>>>> https://liste.linux.org.tr/mailman/listinfo/linux-programlama
>>>> Liste kurallari: http://liste.linux.org.tr/kurallar.php
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Linux-programlama mailing list
>>> [email protected]
>>> https://liste.linux.org.tr/mailman/listinfo/linux-programlama
>>> Liste kurallari: http://liste.linux.org.tr/kurallar.php
>>>
>>>
>>
>> _______________________________________________
>> Linux-programlama mailing list
>> [email protected]
>> https://liste.linux.org.tr/mailman/listinfo/linux-programlama
>> Liste kurallari: http://liste.linux.org.tr/kurallar.php
>>
>>
>
> _______________________________________________
> Linux-programlama mailing 
> [email protected]https://liste.linux.org.tr/mailman/listinfo/linux-programlama
> Liste kurallari: http://liste.linux.org.tr/kurallar.php
>
>
>
> _______________________________________________
> Linux-programlama mailing list
> [email protected]
> https://liste.linux.org.tr/mailman/listinfo/linux-programlama
> Liste kurallari: http://liste.linux.org.tr/kurallar.php
>
>


-- 
Serdar Güler
www.akilsayar.com
www.bisoft.com.tr
_______________________________________________
Linux-programlama mailing list
[email protected]
https://liste.linux.org.tr/mailman/listinfo/linux-programlama
Liste kurallari: http://liste.linux.org.tr/kurallar.php

Cevap