Category "mysql"

SQL iterative loop to see if employee works on all projects

The query I am supposed to form has to accomplish the following task: Retrieve the names of all employees who work on every project. I currently have three t

How do I integrate HubSpot data into a MySQL database automatically?

I have a HubSpot account where my team updates my customers' details in three sheets such as Contacts, activities etc. Now I want to integrate the data availabl

How do I integrate HubSpot data into a MySQL database automatically?

I have a HubSpot account where my team updates my customers' details in three sheets such as Contacts, activities etc. Now I want to integrate the data availabl

Warning: mysqli_stmt::bind_param(): Number of elements in type definition string doesn't match number of bind variables 11 [closed]

My code against SQL injection isn't working (error message in title). I simplified my code, but its still not working. <?php include "con

Formatting MySQL output in online IDE

Test platform Used - HackerRank | MySQL/MSSQL Recently attempted an code assessment for a job post involving SQL questions. I was able to get the correct output

How to gain access back to root (admin) user in MySQL?

I had one admin user with username = root (had admin privileges) and password =admin then i created new user with username =root (have no privileges) and passwo

Cloud SQL Admin Api Warning in GCF

I have a function deployed in GCF which is executed in node js. And it works with Cloud SQL instance of MySQL. And I receive this warning from time to time. Cl

SQL WHERE/AND error when using it multiple times

I've started learning SQL on Friday. I'm using pgAdmin4 I'm having trouble with one line on this code: SELECT first_name, last_name, nationality, date_of_birth

Mysql compare if date is at least two day away from now

I have a table, has field named date with type date. I have a row with date=2021-08-11, I want to perform an update, if table.date is more than 2 days from curr

Get average of column separated by groups

So I have a query that produces a table like the below, without the avg column. I'm trying to figure out how to add the avg column. The average should be from t

mysql table relationship with primary and foreign keys

I have created 3 tables: accounts, products, claims. These are the relationships: Accounts: PK - username Products: PK - serial number, FK - username Claims: FK

Error "Failed to start mariadb.service: Unit mariadb.service not found"

I'm using Fedora 29. I'm try to run mariadb.service with command:systemctl start mariadb, and give error:Failed to start mariadb.service: Unit mariadb.service n

Class 'NunoMaduro\Collision\Adapters\Laravel\CollisionServiceProvider' not found

When trying to install composer in laravel project get this error. Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover

NULL in compact row format in mysql?

The size of the null value list is one byte in mysql Innodb with compact row format. If there are many columns with null values, won't they overflow.

Create mysql trigger to update specific column after update row

I want to update the specific column in MySQL after any change occurred in a row. I use below query to create trigger but when to change record data, an error h

Subtract count from left join and inner join in SQL

I want to merge two tables and subtract the number of orders in resulting table from left join from the resulting table in inner join. This is what I have done

MySQL shutdown unexpectedly on XAMPP - Server socket created on IP: '::'

I'm still fairly new to XAMPP and it has been running great until I started work this morning. Here is the error log file information. When I try to start MySQL

Cannot connect to mysql in Docker container from host

I'm running a Docker mysql container on my Mac laptop. Previously I was able to connect to it from the host OS with the mysql client. However, somehow it got de

GET REQUEST does not return faculty data properly causes 500 Internal Server Error

I'm trying to return the faculty data with it's corresponding students, professors, subjects and grade, I get this Error 500: I want postman to return this: to

Sending Queries to a table in RMySQL, using R variables

I am trying to write data I have created in R and stored in arrays to MySQL table. Currently this is how I am doing it, for(z in 1:60){ dbSendQuery( mydb,