[MariaDB 10.4, PHP8.0] How can I rewrite this so it works so it get weight_date from the row with MAX(total_weight) and list it AS highest_weight_date? I have read that we can’t use MAX() among with WHERE? I have tested to rewrite several examples, but I give up and embarrassed show my latest try: I try to add it to this
Tag: mariadb-10.4
how to validate date null in mysql?
I’m working with MariaDB. when I try to show some result don’t show me nothing. select if(fecha is null,’hello’,’bye’) dat from table I’m trying to show me some result, but I don’t know how?…
How to select one random id from the child table?
I am using 10.4.13-MariaDB. I have a parent table and a child table. Parent table (tasks) In interface it looks like And I have a child table (puzzles) – puzzles table – puzzles can belong only to child themes I want to get ONE random PUZZLE from EACH LEVEL. How to write a proper query? Expected result: My fiddle: https://dbfiddle.uk/?rdbms=mariadb_10.4&fiddle=7bed2a19a0f98abccbe06ba9e0ae358b
MYSQL codes not being read
When I input a code or anything into MySQL and hit “enter” it moves down and “->” appears. It is as if the code is not going through or the code is not being read. I have attempted to download “add-ons” but I am really not sure what I am doing. This is for school and I am having trouble
Occurrence of a string inside another string
I was wondering if there is an easy way to look for a occurrence of a string inside another string. I’m using this query: $checkfileName[0] will be set in a if-statement, where it’s set to GiM1_0. My problem is that the column doesn’t contain that specific string, only a part of it. Image of sql table So is there a
Specified Twice Table for ‘DELETE’ in MariaDB
I created a query to delete some record in MariaDB Query : Result : Table ‘HrAttLogsFormatted’ is specified twice, both as a target for ‘DELETE’ and as a separate surce for data But with the query I made unsuccessfully, is there a way to solve it? Thank you in advance [EDIT-SOLVED] It’s Solved with simply apply and query Answer I