sql-server-2017-graph

Use views and table valued functions as node or edge tables in match clauses

淺唱寂寞╮ 提交于 2019-12-11 06:24:39
问题 I like to use Table Valued functions in MATCH clauses in the same way as is possible with Node tables. Is there a way to achieve this? The need for table valued functions There can be various use cases for using table valued functions or views as Node tables. For instance mine is the following. I have Node tables that contain NVarChar(max) fields that I would like to search for literal text. I need only equality searching and no full text searching, so I opted for using a index on the hash

Syntax to query for optional relationships in Microsoft SQL Server 2017 Graph Database?

冷暖自知 提交于 2019-12-11 02:02:48
问题 I want to select optional relationships in sql-server-2017-graph. Similar to optional in sparql e.g.: PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?name ?mbox WHERE { ?x foaf:name ?name . OPTIONAL { ?x foaf:mbox ?mbox } } from https://www.w3.org/2001/sw/DataAccess/rq23/#OptionalMatching. And similar to LEFT JOIN in normal sql; e.g.: SELECT name, mbox FROM Persons LEFT JOIN PersonMailBoxLink ON Persons.$node_id = PersonMailBoxLink.$from_id LEFT JOIN MailBoxes ON PersonMailBoxLink.$to_id =