{"id":174,"date":"2015-12-09T10:59:31","date_gmt":"2015-12-09T01:59:31","guid":{"rendered":"http:\/\/www.onepage.co.kr\/wordpress\/?p=174"},"modified":"2015-12-09T10:59:31","modified_gmt":"2015-12-09T01:59:31","slug":"date-related-sql-query","status":"publish","type":"post","link":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/2015\/12\/09\/date-related-sql-query\/","title":{"rendered":"\ub0a0\uc9dc \uad00\ub828 SQL  Query"},"content":{"rendered":"<p><a style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" data-topotext=\"[{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[45216,51676,160,44288,47144,160,83,81,76,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;fontHints&quot;:2,&quot;uniqueId&quot;:30},&quot;codePoints&quot;:[45,45,45,45,84,111,100,97,121,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[83,69,76,69,67,84,32,71,69,84,68,65,84,69,40,41,32,39,84,111,100,97,121,39,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;fontHints&quot;:2,&quot;uniqueId&quot;:30},&quot;codePoints&quot;:[45,45,45,45,89,101,115,116,101,114,100,97,121,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[83,69,76,69,67,84,32,68,65,84,69,65,68,68,40,100,44,45,49,44,71,69,84,68,65,84,69,40,41,41,32,39,89,101,115,116,101,114,100,97,121,39,10,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;fontHints&quot;:2,&quot;uniqueId&quot;:30},&quot;codePoints&quot;:[45,45,83,116,97,114,116,32,111,102,32,67,117,114,114,101,110,116,32,68,97,121,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[83,69,76,69,67,84,32,68,65,84,69,65,68,68,40,100,100,44,68,65,84,69,68,73,70,70,40,100,100,44,48,44,71,69,84,68,65,84,69,40,41,41,44,48,41,32,39,83,116,97,114,116,32,111,102,32,67,117,114,114,101,110,116,32,68,97,121,39,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;fontHints&quot;:2,&quot;uniqueId&quot;:30},&quot;codePoints&quot;:[45,45,69,110,100,32,111,102,32,67,117,114,114,101,110,116,32,100,97,121,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[83,69,76,69,67,84,32,68,65,84,69,65,68,68,40,109,115,44,45,51,44,68,65,84,69,65,68,68,40,100,100,44,68,65,84,69,68,73,70,70,40,100,100,44,48,44,71,69,84,68,65,84,69,40,41,41,44,49,41,41,32,39,69,110,100,32,111,102,32,67,117,114,114,101,110,116,32,100,97,121,39,32,10,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;fontHints&quot;:2,&quot;uniqueId&quot;:30},&quot;codePoints&quot;:[45,45,83,116,97,114,116,32,111,102,32,89,101,115,116,101,114,100,97,121,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[83,69,76,69,67,84,32,68,65,84,69,65,68,68,40,100,100,44,68,65,84,69,68,73,70,70,40,100,100,44,48,44,71,69,84,68,65,84,69,40,41,41,44,45,49,41,32,39,83,116,97,114,116,32,111,102,32,89,101,115,116,101,114,100,97,121,39,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;fontHints&quot;:2,&quot;uniqueId&quot;:30},&quot;codePoints&quot;:[45,45,69,110,100,32,111,102,32,89,101,115,116,101,114,100,97,121,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[83,69,76,69,67,84,32,68,65,84,69,65,68,68,40,109,115,44,45,51,44,68,65,84,69,65,68,68,40,100,100,44,68,65,84,69,68,73,70,70,40,100,100,44,48,44,71,69,84,68,65,84,69,40,41,41,44,48,41,41,32,39,69,110,100,32,111,102,32,89,101,115,116,101,114,100,97,121,39,32,10,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;fontHints&quot;:2,&quot;uniqueId&quot;:30},&quot;codePoints&quot;:[45,45,70,105,114,115,116,32,100,97,121,32,111,102,32,119,101,101,107,32,98,121,32,73,83,79,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[83,69,76,69,67,84,32,68,65,84,69,65,68,68,40,100,100,44,55,42,40,68,65,84,69,68,73,70,70,40,100,100,44,39,49,57,55,51,45,48,49,45,48,49,39,44,39,50,48,49,53,45,48,49,45,48,52,39,41,47,55,41,44,39,49,57,55,51,45,48,49,45,48,49,39,41,32,39,70,105,114,115,116,32,100,97,121,32,111,102,32,73,83,79,32,87,101,101,107,39,10,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;fontHints&quot;:2,&quot;uniqueId&quot;:30},&quot;codePoints&quot;:[45,45,45,45,70,105,114,115,116,32,68,97,121,32,111,102,32,67,117,114,114,101,110,116,32,87,101,101,107,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[83,69,76,69,67,84,32,68,65,84,69,65,68,68,40,119,107,44,68,65,84,69,68,73,70,70,40,119,107,44,48,44,71,69,84,68,65,84,69,40,41,41,44,48,41,32,39,70,105,114,115,116,32,68,97,121,32,111,102,32,67,117,114,114,101,110,116,32,87,101,101,107,39,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;fontHints&quot;:2,&quot;uniqueId&quot;:30},&quot;codePoints&quot;:[45,45,45,45,76,97,115,116,32,68,97,121,32,111,102,32,67,117,114,114,101,110,116,32,87,101,101,107,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[83,69,76,69,67,84,32,68,65,84,69,65,68,68,40,119,107,44,68,65,84,69,68,73,70,70,40,119,107,44,48,44,71,69,84,68,65,84,69,40,41,41,44,54,41,32,39,76,97,115,116,32,68,97,121,32,111,102,32,67,117,114,114,101,110,116,32,87,101,101,107,39,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;fontHints&quot;:2,&quot;uniqueId&quot;:30},&quot;codePoints&quot;:[45,45,45,45,70,105,114,115,116,32,68,97,121,32,111,102,32,76,97,115,116,32,87,101,101,107,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[83,69,76,69,67,84,32,68,65,84,69,65,68,68,40,119,107,44,68,65,84,69,68,73,70,70,40,119,107,44,55,44,71,69,84,68,65,84,69,40,41,41,44,48,41,32,39,70,105,114,115,116,32,68,97,121,32,111,102,32,76,97,115,116,32,87,101,101,107,39,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;fontHints&quot;:2,&quot;uniqueId&quot;:30},&quot;codePoints&quot;:[45,45,45,45,76,97,115,116,32,68,97,121,32,111,102,32,76,97,115,116,32,87,101,101,107,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[83,69,76,69,67,84,32,68,65,84,69,65,68,68,40,119,107,44,68,65,84,69,68,73,70,70,40,119,107,44,55,44,71,69,84,68,65,84,69,40,41,41,44,54,41,32,39,76,97,115,116,32,68,97,121,32,111,102,32,76,97,115,116,32,87,101,101,107,39,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;fontHints&quot;:2,&quot;uniqueId&quot;:30},&quot;codePoints&quot;:[45,45,45,45,70,105,114,115,116,32,68,97,121,32,111,102,32,67,117,114,114,101,110,116,32,77,111,110,116,104,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[83,69,76,69,67,84,32,68,65,84,69,65,68,68,40,109,109,44,68,65,84,69,68,73,70,70,40,109,109,44,48,44,71,69,84,68,65,84,69,40,41,41,44,48,41,32,39,70,105,114,115,116,32,68,97,121,32,111,102,32,67,117,114,114,101,110,116,32,77,111,110,116,104,39,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;fontHints&quot;:2,&quot;uniqueId&quot;:30},&quot;codePoints&quot;:[45,45,45,45,76,97,115,116,32,68,97,121,32,111,102,32,67,117,114,114,101,110,116,32,77,111,110,116,104,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[83,69,76,69,67,84,32,68,65,84,69,65,68,68,40,109,115,44,45,32,51,44,68,65,84,69,65,68,68,40,109,109,44,48,44,68,65,84,69,65,68,68,40,109,109,44,68,65,84,69,68,73,70,70,40,109,109,44,48,44,71,69,84,68,65,84,69,40,41,41,43,49,44,48,41,41,41,32,39,76,97,115,116,32,68,97,121,32,111,102,32,67,117,114,114,101,110,116,32,77,111,110,116,104,39,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;fontHints&quot;:2,&quot;uniqueId&quot;:30},&quot;codePoints&quot;:[45,45,45,45,70,105,114,115,116,32,68,97,121,32,111,102,32,76,97,115,116,32,77,111,110,116,104,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[83,69,76,69,67,84,32,68,65,84,69,65,68,68,40,109,109,44,45,49,44,68,65,84,69,65,68,68,40,109,109,44,68,65,84,69,68,73,70,70,40,109,109,44,48,44,71,69,84,68,65,84,69,40,41,41,44,48,41,41,32,39,70,105,114,115,116,32,68,97,121,32,111,102,32,76,97,115,116,32,77,111,110,116,104,39,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;fontHints&quot;:2,&quot;uniqueId&quot;:30},&quot;codePoints&quot;:[45,45,45,45,76,97,115,116,32,68,97,121,32,111,102,32,76,97,115,116,32,77,111,110,116,104,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[83,69,76,69,67,84,32,68,65,84,69,65,68,68,40,109,115,44,45,51,44,68,65,84,69,65,68,68,40,109,109,44,48,44,68,65,84,69,65,68,68,40,109,109,44,68,65,84,69,68,73,70,70,40,109,109,44,48,44,71,69,84,68,65,84,69,40,41,41,44,48,41,41,41,32,39,76,97,115,116,32,68,97,121,32,111,102,32,76,97,115,116,32,77,111,110,116,104,39,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;fontHints&quot;:2,&quot;uniqueId&quot;:30},&quot;codePoints&quot;:[45,45,45,45,70,105,114,115,116,32,68,97,121,32,111,102,32,67,117,114,114,101,110,116,32,81,117,97,114,116,101,114,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[83,69,76,69,67,84,32,68,65,84,69,65,68,68,40,113,113,44,68,65,84,69,68,73,70,70,40,113,113,44,48,44,71,69,84,68,65,84,69,40,41,41,44,48,41,32,39,70,105,114,115,116,32,68,97,121,32,111,102,32,67,117,114,114,101,110,116,32,81,117,97,114,116,101,114,39,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;fontHints&quot;:2,&quot;uniqueId&quot;:30},&quot;codePoints&quot;:[45,45,45,45,70,105,114,115,116,32,68,97,121,32,111,102,32,67,117,114,114,101,110,116,32,89,101,97,114,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[83,69,76,69,67,84,32,68,65,84,69,65,68,68,40,121,121,44,68,65,84,69,68,73,70,70,40,121,121,44,48,44,71,69,84,68,65,84,69,40,41,41,44,48,41,32,39,70,105,114,115,116,32,68,97,121,32,111,102,32,67,117,114,114,101,110,116,32,89,101,97,114,39,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;fontHints&quot;:2,&quot;uniqueId&quot;:30},&quot;codePoints&quot;:[45,45,45,45,76,97,115,116,32,68,97,121,32,111,102,32,67,117,114,114,101,110,116,32,89,101,97,114,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[83,69,76,69,67,84,32,68,65,84,69,65,68,68,40,109,115,44,45,51,44,68,65,84,69,65,68,68,40,121,121,44,48,44,68,65,84,69,65,68,68,40,121,121,44,68,65,84,69,68,73,70,70,40,121,121,44,48,44,71,69,84,68,65,84,69,40,41,41,43,49,44,48,41,41,41,32,39,76,97,115,116,32,68,97,121,32,111,102,32,67,117,114,114,101,110,116,32,89,101,97,114,39,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;fontHints&quot;:2,&quot;uniqueId&quot;:30},&quot;codePoints&quot;:[45,45,45,45,70,105,114,115,116,32,68,97,121,32,111,102,32,76,97,115,116,32,89,101,97,114,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[83,69,76,69,67,84,32,68,65,84,69,65,68,68,40,121,121,44,45,49,44,68,65,84,69,65,68,68,40,121,121,44,68,65,84,69,68,73,70,70,40,121,121,44,48,44,71,69,84,68,65,84,69,40,41,41,44,48,41,41,32,39,70,105,114,115,116,32,68,97,121,32,111,102,32,76,97,115,116,32,89,101,97,114,39,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;fontHints&quot;:2,&quot;uniqueId&quot;:30},&quot;codePoints&quot;:[45,45,45,45,76,97,115,116,32,68,97,121,32,111,102,32,76,97,115,116,32,89,101,97,114,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;style&quot;:3},&quot;uniqueId&quot;:16},&quot;codePoints&quot;:[83,69,76,69,67,84,32,68,65,84,69,65,68,68,40,109,115,44,45,51,44,68,65,84,69,65,68,68,40,121,121,44,48,44,68,65,84,69,65,68,68,40,121,121,44,68,65,84,69,68,73,70,70,40,121,121,44,48,44,71,69,84,68,65,84,69,40,41,41,44,48,41,41,41,32,39,76,97,115,116,32,68,97,121,32,111,102,32,76,97,115,116,32,89,101,97,114,39,32,60,102,111,110,116,32,99,111,108,111,114,61,34,35,49,49,49,49,49,49,34,32,102,97,99,101,61,34,83,101,103,111,101,32,85,73,44,32,65,114,105,97,108,44,32,115,97,110,115,45,115,101,114,105,102,34,62,60,115,112,97,110,32,115,116,121,108,101,61,34,102,111,110,116,45,115,105,122,101,58,32,49,52,112,120,59,32,119,104,105,116,101,45,115,112,97,99,101,58,32,110,111,114,109,97,108,59,34,62,10,60,47,115,112,97,110,62,60,47,102,111,110,116,62]}]\">\u200b<\/a><\/p>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&#8212;-Today<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">SELECT GETDATE() &#8216;Today&#8217;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&#8212;-Yesterday<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">SELECT DATEADD(d,-1,GETDATE()) &#8216;Yesterday&#8217;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\"><\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&#8211;Start of Current Day<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">SELECT DATEADD(dd,DATEDIFF(dd,0,GETDATE()),0) &#8216;Start of Current Day&#8217;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&#8211;End of Current day<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">SELECT DATEADD(ms,-3,DATEADD(dd,DATEDIFF(dd,0,GETDATE()),1)) &#8216;End of Current day&#8217;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\"><\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&#8211;Start of Yesterday<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">SELECT DATEADD(dd,DATEDIFF(dd,0,GETDATE()),-1) &#8216;Start of Yesterday&#8217;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&#8211;End of Yesterday<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">SELECT DATEADD(ms,-3,DATEADD(dd,DATEDIFF(dd,0,GETDATE()),0)) &#8216;End of Yesterday&#8217;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\"><\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&#8211;First day of week by ISO<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">SELECT DATEADD(dd,7*(DATEDIFF(dd,&#8217;1973-01-01&#8242;,&#8217;2015-01-04&#8242;)\/7),&#8217;1973-01-01&#8242;) &#8216;First day of ISO Week&#8217;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\"><\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&#8212;-First Day of Current Week<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">SELECT DATEADD(wk,DATEDIFF(wk,0,GETDATE()),0) &#8216;First Day of Current Week&#8217;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&#8212;-Last Day of Current Week<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">SELECT DATEADD(wk,DATEDIFF(wk,0,GETDATE()),6) &#8216;Last Day of Current Week&#8217;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&#8212;-First Day of Last Week<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">SELECT DATEADD(wk,DATEDIFF(wk,7,GETDATE()),0) &#8216;First Day of Last Week&#8217;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&#8212;-Last Day of Last Week<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">SELECT DATEADD(wk,DATEDIFF(wk,7,GETDATE()),6) &#8216;Last Day of Last Week&#8217;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&#8212;-First Day of Current Month<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">SELECT DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0) &#8216;First Day of Current Month&#8217;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&#8212;-Last Day of Current Month<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">SELECT DATEADD(ms,- 3,DATEADD(mm,0,DATEADD(mm,DATEDIFF(mm,0,GETDATE())+1,0))) &#8216;Last Day of Current Month&#8217;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&#8212;-First Day of Last Month<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">SELECT DATEADD(mm,-1,DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0)) &#8216;First Day of Last Month&#8217;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&#8212;-Last Day of Last Month<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">SELECT DATEADD(ms,-3,DATEADD(mm,0,DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0))) &#8216;Last Day of Last Month&#8217;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&#8212;-First Day of Current Quarter<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">SELECT DATEADD(qq,DATEDIFF(qq,0,GETDATE()),0) &#8216;First Day of Current Quarter&#8217;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&#8212;-First Day of Current Year<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">SELECT DATEADD(yy,DATEDIFF(yy,0,GETDATE()),0) &#8216;First Day of Current Year&#8217;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&#8212;-Last Day of Current Year<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">SELECT DATEADD(ms,-3,DATEADD(yy,0,DATEADD(yy,DATEDIFF(yy,0,GETDATE())+1,0))) &#8216;Last Day of Current Year&#8217;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&#8212;-First Day of Last Year<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">SELECT DATEADD(yy,-1,DATEADD(yy,DATEDIFF(yy,0,GETDATE()),0)) &#8216;First Day of Last Year&#8217;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&#8212;-Last Day of Last Year<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">SELECT DATEADD(ms,-3,DATEADD(yy,0,DATEADD(yy,DATEDIFF(yy,0,GETDATE()),0))) &#8216;Last Day of Last Year&#8217; &lt;font color=&#8221;#111111&#8243; face=&#8221;Segoe UI, Arial, sans-serif&#8221;&gt;&lt;span style=&#8221;font-size: 14px; white-space: normal;&#8221;&gt;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&lt;\/span&gt;&lt;\/font&gt;<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u200b &#8212;-Today SELECT GETDATE() &#8216;Today&#8217; &#8212;-Yesterday SELECT DATEADD(d,-1,GETDATE()) &#8216;Yesterday&#8217; &#8211;Start of Current Day SELECT DATEADD(dd,DATEDIFF(dd,0,GETDATE()),0) &#8216;Start of Current Day&#8217; &#8211;End of Current day SELECT DATEADD(ms,-3,DATEADD(dd,DATEDIFF(dd,0,GETDATE()),1)) &#8216;End of Current day&#8217; &#8211;Start of Yesterday SELECT DATEADD(dd,DATEDIFF(dd,0,GETDATE()),-1) &#8216;Start of Yesterday&#8217; &#8211;End of Yesterday SELECT DATEADD(ms,-3,DATEADD(dd,DATEDIFF(dd,0,GETDATE()),0)) &#8216;End of Yesterday&#8217; &#8211;First day of week by ISO SELECT DATEADD(dd,7*(DATEDIFF(dd,&#8217;1973-01-01&#8242;,&#8217;2015-01-04&#8242;)\/7),&#8217;1973-01-01&#8242;) &#8216;First day [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-174","post","type-post","status-publish","format-standard","hentry","category-about-linux"],"_links":{"self":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=174"}],"version-history":[{"count":1,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/174\/revisions"}],"predecessor-version":[{"id":175,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/174\/revisions\/175"}],"wp:attachment":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}