Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
68 views

I have a vehicle rental database. I want to get the name, phone number, and total spending of clients who have rented a BMW or a Honda at the branch with the highest number of registered vehicles. I'...
Virginia García-Loygorri's user avatar
-2 votes
2 answers
50 views

I'm using this query to identify misstyped usernames: SELECT * FROM import_bk WHERE ( bk_name = BINARY LOWER(bk_name) OR bk_name = BINARY UPPER(bk_name) OR bk_name REGEXP '[0-9]' ) But I always get ...
WeekendCoder's user avatar
  • 1,081
-11 votes
0 answers
109 views

13.6 million rows being scanned for COUNT(DISTINCT quiz_analytic_id). This is the real issue. COUNT(DISTINCT ...) is expensive because MySQL cannot use index statistics to shortcut it
saqlain khadim's user avatar
-2 votes
0 answers
63 views

I am trying to count how many orders each customer has. I noticed that COUNT(*) and COUNT(o.order_id) return different results and I don’t fully understand why. Here is a simplified example: CREATE ...
Imtiaz Ghous's user avatar
-2 votes
2 answers
124 views

Why is my CSV file imported into the database alphabetically by the first column product_key? Rather than imported simply line by line, from first line in the CSV to the last line? My CSV is not ...
BlueDogRanch's user avatar
-4 votes
0 answers
43 views

I work in a large scale java project. Whenever I drop multiple DBs using a script my MySQL instance crashes. When I reinitialize the DB and start my project or multiple data entry or schema creation ...
Zero Two's user avatar
Best practices
0 votes
3 replies
79 views

I am working on a project and trying to connect MySQL Workbench to Power BI. My setup: MySQL version: 8.0.41 Tool: MySQL Workbench Power BI Desktop (latest version) What I tried: Open Power BI ....
Richa - Data AI Explorer's user avatar
-2 votes
0 answers
59 views

I tried to connect to curl -X POST -H "Accept:application/json" --data @debezium-mysql.json http://localhost:8083/connectors debezium-mysql.json { "name": "mysql-...
Sean C's user avatar
  • 169
1 vote
1 answer
66 views

I am trying to use user-defined function f() in a join predicate of a view v. Users will receive SELECT privileges on the view but no privileges on the function. The intention is that users inherit ...
rracker's user avatar
  • 33
0 votes
0 answers
30 views

I'm trying to set up encryption at rest on MySQL 9.1.0 on Windows using component_keyring_file. Setup: MySQL 9.1.0 installed at C:\MySQL\mysql-9.1.0-winx64\ OS: Windows 11 Running MySQL as a service (...
Deepanshu's user avatar
1 vote
2 answers
104 views

How to rename the column when there is a special character? When I try to run the code below, I get the following error: Unknown column 'Actual gross' in 'field list' ALTER TABLE practice.practice1 ...
user32517660's user avatar
0 votes
0 answers
71 views

I always use this method, for example, to get just a single value. It’s obviously not the most elegant solution, but it works. Is there a shorter way to do this without a fake loop? And the result has ...
WeekendCoder's user avatar
  • 1,081
Best practices
0 votes
5 replies
77 views

I have 2 tables 2025 and 2024. The columns are the same. I want to calculate the % diff. (+/-) between the same rows on the different tables. E.G., population of USA in 2025 compared with 2024. On a ...
Phil's user avatar
  • 1
1 vote
1 answer
86 views

I am trying to issue a MySQL command from a windows bat file without prompting for a password. I can get the command to work if I provide the password in the command string, but for security reasons, ...
Jim French's user avatar
Best practices
1 vote
1 replies
89 views

I’m working with a WordPress website that has been running for a few years and the database size has grown significantly. I noticed that some queries and page loads are slower than before. While ...
Riseon Ads's user avatar

15 30 50 per page
1
2 3 4 5
43877