Category "mysql"

Is it possible to make a join query with Prisma without a foreign key?

I've been struggling with this for a while but with no success. I have two tables that might have a relation but not necessarily. FIRST +----+-----------+------

Is it possible to make a join query with Prisma without a foreign key?

I've been struggling with this for a while but with no success. I have two tables that might have a relation but not necessarily. FIRST +----+-----------+------

MySQL single table with hourly, daily, monthly values, or separate tables?

When working with data values, should I create a single table storing the hourly values, and also the aggregated daily/monthly values, or should I create separa

group by cols but with a value

Question on the sql, any help is appreciated dataset: a_col b_col 1 null null 1 2 null null 2 expected output a_col b_col gro

Error 1061 (MYSQL Workbench) duplicate keys when creating indexes

I cannot understand why I keep getting an 1061 error for key duplicates on indexes when I dont have any duplicates. I've looked at other stackoverflow posts reg

Indexing 80 million documents to elasticsearch from Django

I am using the latest version of django elasticsearch dsl and I am using the following command to index around 80 million documents: python manage.py search_ind

Redshift design or configuration issue? - My Redshift datawarehouse seems much slower than my mysql database

I have a Redshift datawarehouse that is pulling data in from multiple sources. One is my from MySQL and the others are some cloud based databases that get pulle

Dropdown with current value from Mysql

I am struggling to solve a problem in a CRUD working with MySQL (MariaDB). The situation is the following: I have a DB table called "tools" in this table I have

Mysql 8 Slower than 5.7 on Docker

I am new to docker and I have recently been trying to setup my project on docker. I have successfully deployed the application on nginx and php and i have been

How to use group by function for more columns

I have used following query to get below output from my exisiting database. select date(RaisedTime) as date, object,User,Count(*) as total from table1 where obj

creating a MySQL procedure using a Lambda function in Python

I have a lambda function that runs SQL scripts using Python which works fine until I try to run scripts that create stored procedures. Does anyone know what the

Check if two json arrays are equal regardless of the order in MySQL

I have a MySQL table: CREATE TABLE `test_table` ( `id` BIGINT, `json_config` JSON, ); json_config has a property called bookNames, whose value is a jso

TypeORM SUM Operator on Relation's field

I am a student trying to develop a music library just to try out new technologies. Currently I use NestJS together with TypeORM as my backend technologies (as w

php retrieve specific data onclick from database in a list format

<?php include ("../navbar.php"); ?> <?php include("../conn.php"); $query = "select * from semi_synthetic"; $result =

issue with python-mysql library with in Docker

We have a peculiar situation. I have inherited some source code from the people who left the company. in docker file they are installing the mysql driver via ap

issue with python-mysql library with in Docker

We have a peculiar situation. I have inherited some source code from the people who left the company. in docker file they are installing the mysql driver via ap

improve sql query with 2 EXISTS sub queries

I have this query (mysql): SELECT `budget_items`.* FROM `budget_items` WHERE (budget_category_id = 4 AND ((is_custom_for_family = 0)

Joining MySQL table

in my database there are 2 tables : posts, room Posts tables include ID and Title columns and includes many rooms and hotels titles and IDs. In the room table t

SSIS Data flow task (SQl -> CSV) data formatting issue

In SSIS, I have a data flow task which uses a data flow task to get data from SQL and save it in CSV file( using flat file connection manager). In this, I have

Sequelize ORDER BY ASC numeric string

please help in this matter. So my scenario is that I have driver app (flutter) that fetch ongoing orders that needed to be delivered. I would like to fetch orde