Ruby – Syntax
Let us write a simple program in ruby. All ruby files will have extension .rb. So, put the following source code in a test.rb file.Live Demo #!/usr/bin/ruby -w puts "Hello, Ruby!";…
Let us write a simple program in ruby. All ruby files will have extension .rb. So, put the following source code in a test.rb file.Live Demo #!/usr/bin/ruby -w puts "Hello, Ruby!";…
Local Environment Setup If you are still willing to set up your environment for Ruby programming language, then let's proceed. This tutorial will teach you all the important topics related…
Ruby is a scripting language designed by Yukihiro Matsumoto, also known as Matz. It runs on a variety of platforms, such as Windows, Mac OS, and the various versions of…
Composite Query enables you to combine data from existing queries and then apply filters, aggregates, and so on before presenting the report results, which show the combined data set. Composite Query…
DocumentDB SQL provides support for User-Defined Functions (UDFs). UDFs are just another kind of JavaScript functions you can write and these work pretty much as you'd expect. You can create…
These days JavaScript is everywhere, and not just in browsers. DocumentDB embraces JavaScript as a sort of modern day T-SQL and supports the transactional execution of JavaScript logic natively, right…
In DocumentDB, we actually use SQL to query documents. If we are doing .NET development, there is also a LINQ provider that can be used and which can generate appropriate…
DocumentDB supports a host of built-in functions for common operations that can be used inside queries. There are a bunch of functions for performing mathematical calculations, and also type checking…
In relational databases, a parameterized query is a query in which placeholders are used for parameters and the parameter values are supplied at execution time. DocumentDB also supports parameterized queries,…
In DocumentDB SQL, the SELECT clause also supports scalar expressions like constants, arithmetic expressions, logical expressions, etc. Normally, scalar queries are rarely used, because they don't actually query documents in…