skip to Main Content

JSON_TABLE()-Function in Oracle's SQL

I'm currently struggling to import my API-Response to my Oracle table. I'm using the JSON_TABLE() but this function is not working as expected. I have a JSON value like this: { "CAR-1": [ { "state": "waiting", "timestamp": 1720476000 } ],…

VIEW QUESTION

column not found but column exists in laravel query

Below is my query in laravel project.In this query purchase_return_products.purchase amount actually exists but this show error '[2024-07-14 16:28:02] local.ERROR: Errors: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'purchase_return_products.purchase_amount' in 'field list' (Connection: mysql, SQL: select count(*) as aggregate from…

VIEW QUESTION

Mysql – get sum of sales per month

Trying to write a query to get the total number of sales per month. So I can currently write this query to return the month and year: SELECT DISTINCT(MONTHNAME(STR_TO_DATE(`date`, '%m/%d/%Y'))) AS 'Month' ,YEAR(STR_TO_DATE(`date`, '%m/%d/%Y')) AS 'Year' ,`total` FROM `supermarket_sales` And…

VIEW QUESTION
Back To Top
Search