Skip to content

How to use substring and charindex in google query language

I have a google spreadsheet sheet with several columns: A: date B: string C: number … G: string (could be empty) H: string (could be empty) I would like to have a small table with the following: Get the sum of C in table, where rows are the values of G (substring of it, as they are configured as this:

SQL GetDate() returns wrong time

I am having an issue while using GetDate(), for some reason is not returning the right time (it is 7 hours ahead from the actual time) I am using AZURE and the Database is configured with the right location (West US). I will appreciate any help! I tried to run this script: Answer Azure SQL Databases are alway…

HANA: Split string?

Is there a way to split a string in HANA? Something similar to the equivalent in SQL Server: SELECT * FROM dbo.fnSplitString(‘valueA,valueB’, ‘,’)

Run SQL query on MySQL service startup

I have created HEAP (ram) table on mysql for faster query. But after mysql server restarted, the data in my Heap tables is not loaded. My normal table name: products with id, product_name, status as …

MySQL calculating age based on birthDate

I am trying to calculate the age based on the birthDate in MySQL using SQL statement. My birthDate was varchar() and in this format: 29/11/1994 (DD/MM/YYYY). My SQL statement: SELECT DATEDIFF(YY, …