---
title: "Discussion on \"The best SQL feature you probably don't know about\" | Hashnode"
description: "Discussion on \"The best SQL feature you probably don't know about\". Stop nesting, ordering, grouping, filtering your data in memory at runtime by using SQL's FOR JSON clause to query nested objects from your database."
url: "https://hashnode.com/posts/the-best-sql-feature-you-probably-dont-know-about/63cdad5ffc408eccb6b4e305"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The best SQL feature you probably don't know about](https://awhitaker.hashnode.dev/the-best-sql-feature-you-probably-dont-know-about?utm_source=hashnode&utm_medium=feed)

Stop nesting, ordering, grouping, filtering your data in memory at runtime by using SQL's FOR JSON clause to query nested objects from your database.

Jan 22, 2023 · 7 min read · awhitaker.hashnode.dev  
Updated Feb 3, 2023  
Read the article

-   [#sql](https://hashnode.com/tag/sql)
-   [#csharp](https://hashnode.com/tag/csharp)
-   [#databases](https://hashnode.com/tag/databases)
-   [#json](https://hashnode.com/tag/json)
-   [#entity-framework](https://hashnode.com/tag/entity-framework)

## Written by

[Andy Whitaker](https://hashnode.com/@fizBuzz)

@fizBuzz

  
[View profile](https://hashnode.com/@fizBuzz)

Web Systems Architect - expertise in .NET CORE, Angular, and SQL

## Responses 1

Markdown supported · ⌘↵ to post

[adsd-png](https://hashnode.com/@adsddd)

[Aug 12](https://hashnode.com/posts/the-best-sql-feature-you-probably-dont-know-about/63cdad5ffc408eccb6b4e305/comment/6a7c98491a05da0f83d19ae1)

Thanks Andy, I came across this when trying to determine if I should use SQL or JSON for a project and found it insightful.
