skip to Main Content

Error: MySQL – Operand should contain 1 column(s)

This query works when I type directly into mysql but not in C#. double deltaTime = (DateTime.Now - collectTime).TotalSeconds; string query = String.Format("UPDATE buildings LEFT JOIN server_buildings ON buildings.global_id = server_buildings.global_id AND buildings.level = server_buildings.level SET buildings.storage = buildings.storage +…

VIEW QUESTION

MySQL Pivot Using Date As Value

I try to create a procedure that transforms the following table from: ID Visit Date 1234567 Cake 01.01.2023 1234567 Coffee 01.01.2023 1234567 Cake 02.01.2023 2345678 Coffee 02.02.2023 2345678 Coffee 03.02.2023 to: ID Cake Coffee 1234567 Max(Date) 02.01.2023 Max(Date) 01.01.2023 2345678…

VIEW QUESTION

MYSQL get max. values from a specific date

I have a table with multi-year data of temperature measurement. Looking for the highest measured temperatures including the date of recording from the current year only. Tried following: SELECT timestamp, temperature AS max_temp FROM table WHERE temperature = (SELECT max(temperature)…

VIEW QUESTION
Back To Top
Search