모범 사례 및 튜토리얼

Videos: Putting the SQL back into NoSQL

2 MIN READ

Are you interested in using the familiar SQL language while also benefiting from the flexibility of JSON data? We’ve got a series of three videos that can help you achieve the best of both worlds.

Putting the SQL back into NoSQL

The first video is an on-demand webcast that introduces SQL++: how to bring the familiarity of SQL to the speed and flexibility of JSON.

You can learn how to apply your existing SQL skills to start modeling JSON data right away. This webcast includes:

  • How SQL++ eases your transition from relational to NoSQL
  • The basics of SQL++ and the extensions for working with JSON
  • How to start using SQL++ in production with Couchbase Capella™ DBaaS

More SQL++ Samples

next video is a deeper dive into the capabilities of SQL++ for JSON data, including matching text (LIKE), matching JSON data in arrays (ANY …​ IN …​ SATISFIES …​ END), get advice for indexes (ADVISE, EXPLAIN), and more.

This video shows the Visual Studio Code extension for Couchbase to demonstrate these queries. Subqueries, common table expressions (CTEs), and window functions are also available in SQL++, making complex queries more manageable.

If you’d like to follow along with the examples:

ChatGPT and SQL++

Generative AI like ChatGPT and 카펠라 iQ are helpful tools for creating SQL++ queries. In this video, you’ll see the benefits of over-specifying and providing example data to get the most useful results with the fewest hallucinations. An example workflow might include:

  1. Telling ChatGPT about your model by pasting in example JSON documents.
  2. Running examples that ChatGPT generates to better understand the data.
  3. Asking ChatGPT to generate a query.
  4. Reading the query and explanation.
  5. Trying to query to make sure it works.
  6. Asking ChatGPT to iterate/improve/refine the query.
  7. Asking ChatGPT to generate some client code (C#, Java, Python, etc) to execute the query.
  8. Go back to step 3 for your next set of requirements.

Next Steps

Want to keep going with JSON data and generative AI?

이 기사 공유하기

작가

매튜 D. 그로브스는 코딩을 정말 좋아하는 사람입니다. C#, jQuery, PHP 등 어떤 언어든 상관없이, 그는 무엇이든 풀 리퀘스트를 제출합니다. 그는 90년대에 부모님이 운영하던 피자 가게를 위해 QuickBASIC으로 POS(판매 시점 관리) 앱을 개발한 이래로 줄곧 전문 프로그래머로 활동해 왔습니다. 현재는 Couchbase에서 선임 제품 마케팅 매니저로 근무하고 있습니다. 여가 시간에는 가족과 함께 시간을 보내거나, 레즈(Reds) 경기를 관람하며, 개발자 커뮤니티 활동에 참여합니다. 그는 『AOP in .NET』과 『Pro Microservices in .NET』의 저자이자 Pluralsight 저자이며, Microsoft MVP이기도 합니다.

댓글 남기기

카우치베이스 카펠라를 시작할 준비가 되셨나요?

개발 시작하기

NoSQL을 탐색하고, 리소스를 찾아보고, 튜토리얼을 시작하려면 개발자 포털을 확인하세요.

카펠라 프리 사용하기

단 몇 번의 클릭으로 카우치베이스(Couchbase)를 직접 체험해 보세요. Capella DBaaS는 시작하기 가장 쉽고 빠른 방법입니다.

연락해

Couchbase 제품군에 대해 더 알고 싶으신가요? 저희가 도와드리겠습니다.