¥µ¥¤¥é¥¹¤ÎËÜê
2006-04-18
[SQL]ÃÂÀ¸Æü¤ò¹Íθ¤·¤¿Ç¯Îð·×»»¤Î»ÅÊý
SQL¤ÇÃÂÀ¸Æü¤ò¹Íθ¤·¤¿Ç¯Îð·×»»¤ò¹Ô¤¦ÊýË¡¤Ï°Ê²¼¤ÎÄ̤ꡣ¤Á¤Ê¤ß¤Ë¡¢¡ÖDATEDIFF(yy,BirthDate,ThisDate)¡×¤Î¤è¤¦¤Ë¤¹¤ë¤Èñ½ã¤Êǯ¿ô·×»»¤È¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
SELECT CONVERT(int,FLOOR(CONVERT(float, CONVERT(varchar, DATEPART(YYYY, ThisDate)) +'.'+ RIGHT('00' + CONVERT(varchar, DATEPART(MM, ThisDate)), 2) + RIGHT('00' + CONVERT(varchar, DATEPART(DD, ThisDate)), 2)) - CONVERT(float, CONVERT(varchar, DATEPART(YYYY,BirthDate)) + '.' + RIGHT('00' + CONVERT(varchar, DATEPART(MM, BirthDate)), 2) + RIGHT('00' + CONVERT(varchar, DATEPART(DD, BirthDate)), 2)))) AS Age FROM T_Hoge
- 26 http://cyrus.co.jp/tdiary?date=20060401
- 25 https://www.google.co.jp/
- 21 http://www.cyrus.co.jp/tdiary?date=200604
- 20 http://www.goodspic.com/gd/sql ǯÎð·×»»/
- 12 http://www.kensaku.xii.jp/search/À¸Ç¯·îÆü/ǯÎð/VB/
- 12 http://www.goodspic.com/gd/excel ǯÎð·×»»/
- 7 https://www.google.com/
- 6 http://www.kensaku.xii.jp/search/studio/yy/
- 6 http://search.yahoo.co.jp/search?p=db2 ǯÎð·×»»&ei...
- 6 http://cyrus.co.jp/tdiary/?date=20060414
- 5 http://www.lspop.com/lp/datedif/
- 5 http://www.kensaku.xii.jp/search/ǯÎð/ǯÎð·×»»/
- 5 http://www.goodspic.com/gd/ǯÎð·×»» ¥¢¥¯¥»¥¹/
- 5 http://www.cyrus.co.jp/tdiary?date=20060414
- 4 http://www.google.co.jp/url?sa=t&rct=j&q=sql ǯÎð·...
- 4 google¸¡º÷(asp.net c¡¡Ç¯Îð·×»»¥¢¥×¥ê)
- 4 google¸¡º÷(DATEDIFF¡¡SQL¡¡Ç¯Îð)
- 4 http://www.cyrus.co.jp/books.htm
- 4 http://search.yahoo.co.jp/search?p=sql datediff ǯ...
- 4 http://search.yahoo.co.jp/search?p=C# DATEDIFF ÃÂÀ...
- 4 http://cyrus.co.jp/tdiary/?date=20060417
- 4 http://blog.chew.jp/result/sql/sql »ØÄê
- 3 google¸¡º÷(c# ǯÎð·×»»¡¡SQL)
- 3 google¸¡º÷(£Â£Ð£Ò¡¿£Å£Ò£Ð¤Ë¤è¤ëÀïάŪ¶È̳³×¿·)
- 3 google¸¡º÷(sql ´Ø¿ô¡¡DATEDIFF¡¡Ç¯Îð¡¡·î¿ô¡¡·×»»)
- 3 http://www.cyrus.co.jp/tdiary/?date=200604
- 3 http://search.yahoo.co.jp/search?p=sql ǯÎð·×»»&ei...
- 3 msn¸¡º÷(SQL ǯÎð)
- 3 http://blog.chew.jp/result/sql/sql db.
- 2 http://www.lspop.com/lp/excel ocr/
- 2 http://www.kensaku.xii.jp/search/convert/vb/
- 2 google¸¡º÷(sql ǯÎð·×»»)
- 2 google¸¡º÷(C# ǯÎð·×»»)
- 2 http://www.google.co.jp/url?sa=t&source=web&cd=2&v...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=db2 sql Ç...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=DB2 ǯÎð&...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=DB2 ǯÎð·...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&f...
- 2 google¸¡º÷(0h)
- 2 google¸¡º÷(oracle datediff ǯÎð)
- 2 google¸¡º÷(sql convert ¿ôÃÍ)
- 2 google¸¡º÷(dateadd sql db2)
- 2 google¸¡º÷(SQL DATEDIFF ÃÂÀ¸Æü·×»»)
- 2 google¸¡º÷(¥¹¥È¥¢¥É¡¡convert int char ·¿ÊÑ´¹)
- 2 google¸¡º÷(db2 sql ǯÎð·×»»)
- 2 google¸¡º÷(asp.net datadiff ǯÎð)
- 2 google¸¡º÷(sql ¥¼¥í¥µ¥×¥ì¥¹ db2)
- 2 google¸¡º÷(sql ǯÎð·×»»¡¡db2)
- 2 google¸¡º÷(sql ¥¼¥í¥µ¥×¥ì¥¹¡¡CONVERT)
- 2 google¸¡º÷(asp.net datediff)
- 2 google¸¡º÷(CONVERT ¥¼¥í¥µ¥×¥ì¥¹)
- 2 google¸¡º÷(convert ¥¼¥í¥µ¥×¥ì¥¹)
- 2 google¸¡º÷(C# ǯ¿ô¤Î·×»»)
- 2 google¸¡º÷(vb.net ǯÎð·×»» DateDiff)
- 2 http://www.bing.com/search?q=datediff ÃÂÀ¸ÆüÁ°&for...
- 2 http://search.yahoo.co.jp/search?p=csv ʸ»úÎ󤬿ôÃ...
- 2 http://search.yahoo.co.jp/search?p=SQL DATEDIFF ǯ...
- 2 http://search.yahoo.co.jp/search?p=SQL CONVERT¡¡¥¼...
- 2 http://search.yahoo.co.jp/search?p=Java ÆüÉÕÊÑ´¹&e...
- 2 http://search.yahoo.co.jp/search?p=CHAR ·¿ ÊÑ´¹ Æü...
- 2 http://search.yahoo.co.jp/search?p=ʸ»úÎó¡¡ÆüÉÕÊÑ´...
- 2 http://search.yahoo.co.jp/search?p=ǯÎð·×»» C#&sea...
- 2 http://search.yahoo.co.jp/search?p=ǯÎð·×»»¡¡ORACL...
- 2 http://search.yahoo.co.jp/search?p=¥¼¥í¥µ¥×¥ì¥¹ SQ...
- 2 msn¸¡º÷(C# ¥¼¥í¥µ¥×¥ì¥¹)
- 2 http://search.live.com/results.aspx?q=search&mrt=e...
- 2 http://search.live.com/previewx.aspx?q=SQL¡¢ÃÂÀ¸Æü...
- 2 http://cyrus.co.jp/tdiary?date=20060414
- 2 http://cyrus.co.jp/tdiary/?date=200604
- 1 https://www.google.co.jp
- 1 http://www.stmpop.com/sp/oracle ·¿ÊÑ´¹/
- 1 http://www.shioshiopg.clubsite.jp/fsearch/search.a...
- 1 http://www.rakuuten.com/key/¥ê¥ª/¥ê¥ª¥ì¥¤¥¢/index.html
- 1 http://www.pop-wd.com/pop/ǯÎð·×»»/
- 1 http://www.kensaku.xii.jp/search/À¸Ç¯·îÆü/ǯÎð/ÊÑ´¹/
- 1 http://www.item-word.com/item/10000296/1000095542....
- 1 http://www.google.com/url?sa=t&rct=j&q=db2 À¸Ç¯·îÆ...
- 1 google¸¡º÷(sql ǯÎð·×»» db2)
- 1 google¸¡º÷(oracle varchar ¥¼¥í¥µ¥×¥ì¥¹)
- 1 google¸¡º÷(db2 ÆüÉÕ Ç¯Îð)
- 1 google¸¡º÷(ASP.NET¡¡Ç¯Îð·×»»)
- 1 google¸¡º÷(ASP VB ǯÎð·×»»)
- 1 http://www.google.com/search
- 1 http://www.google.co.th/search?q=www.itemword.com&...
- 1 http://www.google.co.jp/url?url=http://www.cyrus.c...
- 1 http://www.google.co.jp/url?url=http://www.cyrus.c...
- 1 http://www.google.co.jp/url?sa=t&source=web&cd=7&v...
- 1 http://www.google.co.jp/url?sa=t&source=web&cd=7&v...
- 1 http://www.google.co.jp/url?sa=t&source=web&cd=52&...
- 1 http://www.google.co.jp/url?sa=t&source=web&cd=5&v...
- 1 http://www.google.co.jp/url?sa=t&source=web&cd=5&v...
- 1 http://www.google.co.jp/url?sa=t&source=web&cd=4&v...
- 1 http://www.google.co.jp/url?sa=t&source=web&cd=38&...
- 1 http://www.google.co.jp/url?sa=t&source=web&cd=33&...
- 1 http://www.google.co.jp/url?sa=t&source=web&cd=2&v...
- 1 http://www.google.co.jp/url?sa=t&source=web&cd=2&v...
- 1 http://www.google.co.jp/url?sa=t&source=web&cd=15&...
- 1 http://www.google.co.jp/url?sa=t&rct=j&q=vb.net da...
- 1 http://www.google.co.jp/url?sa=t&rct=j&q=sql dated...
- 1 http://www.google.co.jp/url?sa=t&rct=j&q=sql dated...