Mejores prácticas y tutoriales

Videos: Putting the SQL back into NoSQL

Lectura de 2 minutos

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

El 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 Capella 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.

Próximos pasos

Want to keep going with JSON data and generative AI?

Compartir este artículo

Autor

Matthew D. Groves es un tipo al que le encanta programar. No importa si se trata de C#, jQuery o PHP: envía solicitudes de incorporación de cambios para cualquier cosa. Se ha dedicado profesionalmente a la programación desde que escribió una aplicación de punto de venta en QuickBASIC para la pizzería de sus papás allá por los años 90. Actualmente trabaja como gerente sénior de mercadotecnia de productos en Couchbase. Dedica su tiempo libre a su familia, a ver a los Reds y a participar en la comunidad de desarrolladores. Es autor de *AOP in .NET* y *Pro Microservices in .NET*, colaborador de Pluralsight y MVP de Microsoft.

Deja un comentario

¿Listo para comenzar con Couchbase Capella?

Comenzar a construir

Visita nuestro portal para desarrolladores para explorar NoSQL, consultar recursos y comenzar con los tutoriales.

Usa Capella gratis

Empieza a usar Couchbase en tan solo unos clics. Capella DBaaS es la forma más fácil y rápida de comenzar.

Ponte en contacto

¿Quieres saber más sobre las ofertas de Couchbase? Permítenos ayudarte.