{"id":107,"date":"2018-06-23T18:00:45","date_gmt":"2018-06-23T18:00:45","guid":{"rendered":"https:\/\/datablog.roman-halliday.com\/?p=107"},"modified":"2018-06-17T11:49:47","modified_gmt":"2018-06-17T11:49:47","slug":"dates-in-sql-server-weekdays-weekends","status":"publish","type":"post","link":"https:\/\/datablog.roman-halliday.com\/index.php\/2018\/06\/23\/dates-in-sql-server-weekdays-weekends\/","title":{"rendered":"Dates In SQL Server: Weekdays &#038; Weekends"},"content":{"rendered":"<p>For reporting or for process management, it&#8217;s handy to be able to quickly identify weekdays and weekends. Here I&#8217;ll look at a few methods for calculating weekdays and weekends.<\/p>\n<p>Some of these come easily from SQL Server, others require a bit more manipulation. Most of this builds on my previous articles on dates:<\/p>\n<ul>\n<li><a href=\"https:\/\/datablog.roman-halliday.com\/index.php\/2018\/05\/01\/dates-in-sql-server-managing-manipulating-dates\/\">Dates In SQL Server: Managing &amp; Manipulating Dates<\/a><\/li>\n<li><a href=\"https:\/\/datablog.roman-halliday.com\/index.php\/2018\/06\/01\/dates-in-sql-server-create-sample-date-ranges\/\">Dates In SQL Server: Create Sample Date Ranges<\/a><\/li>\n<\/ul>\n<p>Note: I&#8217;m going to look into\u00a0public (bank) holidays and geographic variations in a later post.<\/p>\n<h2>Create sample date data<\/h2>\n<p>From my previous article, the below SQL will create a date range collection:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\">--------------------------------------------------------------------------------\r\n-- Create Date Table\r\n--------------------------------------------------------------------------------\r\nCREATE TABLE date_t\r\n(\r\n  [TheDate]  DATE NOT NULL PRIMARY KEY\r\n);\r\n\r\n--------------------------------------------------------------------------------\r\n-- Create Date list\r\n-- Using Number sequence: https:\/\/datablog.roman-halliday.com\/index.php\/2018\/06\/01\/dates-in-sql-server-create-sample-date-ranges\/\r\n--------------------------------------------------------------------------------\r\nDECLARE @DateStart DATE = '01-JAN-17'; -- At time of writing this is the past\r\nDECLARE @DateEnd   DATE = '01-JAN-19'; -- At time of writing this is the future\r\n \r\nPRINT 'Start Date: ' + CONVERT(VARCHAR(10), @DateStart, 120);\r\nPRINT 'Start End: '  + CONVERT(VARCHAR(10), @DateEnd,   120);\r\n\r\nWITH number_tbl AS (\r\nSELECT 0 AS a UNION ALL\r\nSELECT 1 UNION ALL\r\nSELECT 2 UNION ALL\r\nSELECT 3 UNION ALL\r\nSELECT 4 UNION ALL\r\nSELECT 5 UNION ALL\r\nSELECT 6 UNION ALL\r\nSELECT 7 UNION ALL\r\nSELECT 8 UNION ALL\r\nSELECT 9\r\n), number_sequences AS (\r\nSELECT t1.a AS t1a,\r\n       t2.a AS t2a,\r\n       t3.a AS t3a,\r\n       (t3.a + (10 * t2.a) + (100 * t1.a)) AS concatenate_calculation\r\n  FROM number_tbl t1\r\n  CROSS JOIN number_tbl t2\r\n  CROSS JOIN number_tbl t3\r\n)\r\nINSERT\r\n  INTO date_t\r\n      ([TheDate])\r\nSELECT CAST(DateAdd(DAY, concatenate_calculation, @DateStart) AS DATE) AS [TheDate]\r\n  FROM number_sequences\r\n WHERE CAST(DateAdd(DAY, concatenate_calculation, @DateStart) AS DATE) &lt;= @DateEnd\r\n ORDER BY concatenate_calculation\r\n;<\/pre>\n<h1>Identifying the weekday and weekend<\/h1>\n<p>Weekends can be calculated by day name, or number. Both have their advantages and disadvantages:<\/p>\n<ul>\n<li><strong>Day name<\/strong> is easier to read but less portable (different geographical settings use different names for the days).<\/li>\n<li><strong>Day number<\/strong> is more portable, but also changes with configuration. The setting for <a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/t-sql\/statements\/set-datefirst-transact-sql?view=sql-server-2017\">DateFirst<\/a> configures the first day of the week,\u00a0 as I&#8217;ve demonstrated on rextester: <a href=\"http:\/\/rextester.com\/LUYZMR46323\">SQL Server &#8211; DateFirst Example<\/a><\/li>\n<\/ul>\n<p>Below I&#8217;m showing how to use both, I&#8217;ve not put in the regional settings as people will normally work in one language or another. I have included the DateFirst configuration. This makes a nice template which can assign the setting for the session.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\">SET DATEFIRST 1;\r\n\r\nSELECT @@DateFirst AS [DateFirst Setting];\r\n\r\nSELECT [TheDate],\r\n       DateName(dw, [TheDate]) AS TheDate_day_name,\r\n       DatePart(dw, [TheDate]) AS TheDate_day_of_week,\r\n       CASE WHEN DatePart(dw, [TheDate]) IN (6,          7)        THEN 1 ELSE 0 END AS [IsWeekend], -- Using numeric day of week\r\n       CASE WHEN DatePart(dw, [TheDate]) IN (6,          7)        THEN 0 ELSE 1 END AS [IsWeekday], -- Using numeric day of week\r\n       CASE WHEN DateName(dw, [TheDate]) IN ('Saturday', 'Sunday') THEN 1 ELSE 0 END AS [IsWeekend], -- Using text of day name\r\n       CASE WHEN DateName(dw, [TheDate]) IN ('Saturday', 'Sunday') THEN 0 ELSE 1 END AS [IsWeekday]  -- Using text of day name\r\n  FROM date_t\r\n;<\/pre>\n<p>See this in action on\u00a0rextester:\u00a0<a href=\"http:\/\/rextester.com\/edit\/ABMUV26294\">SQL Server &#8211; Weekdays and Weekends<\/a><\/p>\n<p>Also see:<\/p>\n<ul>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/t-sql\/functions\/datepart-transact-sql?view=sql-server-2017\">DatePart<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/t-sql\/functions\/datename-transact-sql?view=sql-server-2017\">DateName<\/a><\/li>\n<\/ul>\n<h1>Calculate working day number<\/h1>\n<p>To work out which weekday it is, in the month, I use windowing functions to add all the IsWeekday values up to and including the current date. In this instance I have partitioned by year and month so that I get rolling numbers for each month, but there is no reason this technique can&#8217;t be applied to any other period.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-highlight=\"8-10\">--------------------------------------------------------------------------------\r\n-- Calculate working day number (of the month)\r\n--------------------------------------------------------------------------------\r\nSELECT [TheDate],\r\n       DateName(dw, [TheDate]) AS TheDate_day_name,\r\n       [IsWeekend],\r\n       [IsWeekday],\r\n       CASE [IsWeekday] WHEN 0 THEN NULL\r\n                        ELSE SUM(CAST([IsWeekday] AS INT)) OVER (PARTITION BY YEAR([TheDate]), MONTH([TheDate]) ORDER BY [TheDate])\r\n        END AS [WorkingDayNumber],\r\n       CASE [TheDate] WHEN DateFromParts(YEAR(GetDate()), MONTH(GetDate()), DAY(GetDate())) THEN 'Today' ELSE '' END AS [DayMarker]\r\n  FROM date_t\r\n;<\/pre>\n<p>I&#8217;ve put this up on rextester:\u00a0<a href=\"http:\/\/rextester.com\/FLCR69911\">SQL Server &#8211; Calculate working day number<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For reporting or for process management, it&#8217;s handy to be able to quickly identify weekdays and weekends. Here I&#8217;ll look at a few methods for calculating weekdays and weekends. Some of these come easily from SQL Server, others require a bit more manipulation. Most of this builds on my previous articles on dates: Dates In&hellip;<\/p>\n<p class=\"read-more\"><a class=\"readmore-btn\" href=\"https:\/\/datablog.roman-halliday.com\/index.php\/2018\/06\/23\/dates-in-sql-server-weekdays-weekends\/\">Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[12,15],"class_list":["post-107","post","type-post","status-publish","format-standard","hentry","category-databases","category-sql-server","tag-date","tag-windowing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Dates In SQL Server: Weekdays &amp; Weekends - Rows Across The Lake<\/title>\n<meta name=\"description\" content=\"For reporting or for process management, it&#039;s handy to be able to quickly identify weekdays and weekends. Here I&#039;ll look at a few methods for calculating weekdays and weekends.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/datablog.roman-halliday.com\/index.php\/2018\/06\/23\/dates-in-sql-server-weekdays-weekends\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dates In SQL Server: Weekdays &amp; Weekends - Rows Across The Lake\" \/>\n<meta property=\"og:description\" content=\"For reporting or for process management, it&#039;s handy to be able to quickly identify weekdays and weekends. Here I&#039;ll look at a few methods for calculating weekdays and weekends.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/datablog.roman-halliday.com\/index.php\/2018\/06\/23\/dates-in-sql-server-weekdays-weekends\/\" \/>\n<meta property=\"og:site_name\" content=\"Rows Across The Lake\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-23T18:00:45+00:00\" \/>\n<meta name=\"author\" content=\"david\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@d_roman_h\" \/>\n<meta name=\"twitter:site\" content=\"@d_roman_h\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"david\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/index.php\\\/2018\\\/06\\\/23\\\/dates-in-sql-server-weekdays-weekends\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/index.php\\\/2018\\\/06\\\/23\\\/dates-in-sql-server-weekdays-weekends\\\/\"},\"author\":{\"name\":\"david\",\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/#\\\/schema\\\/person\\\/575f96d2590c3085923ff9e1b565748b\"},\"headline\":\"Dates In SQL Server: Weekdays &#038; Weekends\",\"datePublished\":\"2018-06-23T18:00:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/index.php\\\/2018\\\/06\\\/23\\\/dates-in-sql-server-weekdays-weekends\\\/\"},\"wordCount\":321,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/#\\\/schema\\\/person\\\/575f96d2590c3085923ff9e1b565748b\"},\"keywords\":[\"date\",\"windowing\"],\"articleSection\":[\"Databases\",\"SQL Server\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/datablog.roman-halliday.com\\\/index.php\\\/2018\\\/06\\\/23\\\/dates-in-sql-server-weekdays-weekends\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/index.php\\\/2018\\\/06\\\/23\\\/dates-in-sql-server-weekdays-weekends\\\/\",\"url\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/index.php\\\/2018\\\/06\\\/23\\\/dates-in-sql-server-weekdays-weekends\\\/\",\"name\":\"Dates In SQL Server: Weekdays & Weekends - Rows Across The Lake\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/#website\"},\"datePublished\":\"2018-06-23T18:00:45+00:00\",\"description\":\"For reporting or for process management, it's handy to be able to quickly identify weekdays and weekends. Here I'll look at a few methods for calculating weekdays and weekends.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/index.php\\\/2018\\\/06\\\/23\\\/dates-in-sql-server-weekdays-weekends\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/datablog.roman-halliday.com\\\/index.php\\\/2018\\\/06\\\/23\\\/dates-in-sql-server-weekdays-weekends\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/index.php\\\/2018\\\/06\\\/23\\\/dates-in-sql-server-weekdays-weekends\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dates In SQL Server: Weekdays &#038; Weekends\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/#website\",\"url\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/\",\"name\":\"Rows Across The Lake\",\"description\":\"Data &amp; Databases\",\"publisher\":{\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/#\\\/schema\\\/person\\\/575f96d2590c3085923ff9e1b565748b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/datablog.roman-halliday.com\\\/#\\\/schema\\\/person\\\/575f96d2590c3085923ff9e1b565748b\",\"name\":\"david\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acddbc676a1d5c73795edcf0627ee39e5aa947da9033b58373e03d93122cb3b7?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acddbc676a1d5c73795edcf0627ee39e5aa947da9033b58373e03d93122cb3b7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acddbc676a1d5c73795edcf0627ee39e5aa947da9033b58373e03d93122cb3b7?s=96&d=mm&r=g\",\"caption\":\"david\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acddbc676a1d5c73795edcf0627ee39e5aa947da9033b58373e03d93122cb3b7?s=96&d=mm&r=g\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Dates In SQL Server: Weekdays & Weekends - Rows Across The Lake","description":"For reporting or for process management, it's handy to be able to quickly identify weekdays and weekends. Here I'll look at a few methods for calculating weekdays and weekends.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/datablog.roman-halliday.com\/index.php\/2018\/06\/23\/dates-in-sql-server-weekdays-weekends\/","og_locale":"en_GB","og_type":"article","og_title":"Dates In SQL Server: Weekdays & Weekends - Rows Across The Lake","og_description":"For reporting or for process management, it's handy to be able to quickly identify weekdays and weekends. Here I'll look at a few methods for calculating weekdays and weekends.","og_url":"https:\/\/datablog.roman-halliday.com\/index.php\/2018\/06\/23\/dates-in-sql-server-weekdays-weekends\/","og_site_name":"Rows Across The Lake","article_published_time":"2018-06-23T18:00:45+00:00","author":"david","twitter_card":"summary_large_image","twitter_creator":"@d_roman_h","twitter_site":"@d_roman_h","twitter_misc":{"Written by":"david","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/datablog.roman-halliday.com\/index.php\/2018\/06\/23\/dates-in-sql-server-weekdays-weekends\/#article","isPartOf":{"@id":"https:\/\/datablog.roman-halliday.com\/index.php\/2018\/06\/23\/dates-in-sql-server-weekdays-weekends\/"},"author":{"name":"david","@id":"https:\/\/datablog.roman-halliday.com\/#\/schema\/person\/575f96d2590c3085923ff9e1b565748b"},"headline":"Dates In SQL Server: Weekdays &#038; Weekends","datePublished":"2018-06-23T18:00:45+00:00","mainEntityOfPage":{"@id":"https:\/\/datablog.roman-halliday.com\/index.php\/2018\/06\/23\/dates-in-sql-server-weekdays-weekends\/"},"wordCount":321,"commentCount":1,"publisher":{"@id":"https:\/\/datablog.roman-halliday.com\/#\/schema\/person\/575f96d2590c3085923ff9e1b565748b"},"keywords":["date","windowing"],"articleSection":["Databases","SQL Server"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/datablog.roman-halliday.com\/index.php\/2018\/06\/23\/dates-in-sql-server-weekdays-weekends\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/datablog.roman-halliday.com\/index.php\/2018\/06\/23\/dates-in-sql-server-weekdays-weekends\/","url":"https:\/\/datablog.roman-halliday.com\/index.php\/2018\/06\/23\/dates-in-sql-server-weekdays-weekends\/","name":"Dates In SQL Server: Weekdays & Weekends - Rows Across The Lake","isPartOf":{"@id":"https:\/\/datablog.roman-halliday.com\/#website"},"datePublished":"2018-06-23T18:00:45+00:00","description":"For reporting or for process management, it's handy to be able to quickly identify weekdays and weekends. Here I'll look at a few methods for calculating weekdays and weekends.","breadcrumb":{"@id":"https:\/\/datablog.roman-halliday.com\/index.php\/2018\/06\/23\/dates-in-sql-server-weekdays-weekends\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/datablog.roman-halliday.com\/index.php\/2018\/06\/23\/dates-in-sql-server-weekdays-weekends\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/datablog.roman-halliday.com\/index.php\/2018\/06\/23\/dates-in-sql-server-weekdays-weekends\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/datablog.roman-halliday.com\/"},{"@type":"ListItem","position":2,"name":"Dates In SQL Server: Weekdays &#038; Weekends"}]},{"@type":"WebSite","@id":"https:\/\/datablog.roman-halliday.com\/#website","url":"https:\/\/datablog.roman-halliday.com\/","name":"Rows Across The Lake","description":"Data &amp; Databases","publisher":{"@id":"https:\/\/datablog.roman-halliday.com\/#\/schema\/person\/575f96d2590c3085923ff9e1b565748b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/datablog.roman-halliday.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/datablog.roman-halliday.com\/#\/schema\/person\/575f96d2590c3085923ff9e1b565748b","name":"david","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/acddbc676a1d5c73795edcf0627ee39e5aa947da9033b58373e03d93122cb3b7?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/acddbc676a1d5c73795edcf0627ee39e5aa947da9033b58373e03d93122cb3b7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/acddbc676a1d5c73795edcf0627ee39e5aa947da9033b58373e03d93122cb3b7?s=96&d=mm&r=g","caption":"david"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/acddbc676a1d5c73795edcf0627ee39e5aa947da9033b58373e03d93122cb3b7?s=96&d=mm&r=g"}}]}},"_links":{"self":[{"href":"https:\/\/datablog.roman-halliday.com\/index.php\/wp-json\/wp\/v2\/posts\/107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/datablog.roman-halliday.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/datablog.roman-halliday.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/datablog.roman-halliday.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/datablog.roman-halliday.com\/index.php\/wp-json\/wp\/v2\/comments?post=107"}],"version-history":[{"count":4,"href":"https:\/\/datablog.roman-halliday.com\/index.php\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":143,"href":"https:\/\/datablog.roman-halliday.com\/index.php\/wp-json\/wp\/v2\/posts\/107\/revisions\/143"}],"wp:attachment":[{"href":"https:\/\/datablog.roman-halliday.com\/index.php\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/datablog.roman-halliday.com\/index.php\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/datablog.roman-halliday.com\/index.php\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}