Skip to content
Advertisement

Tag: mysql

Condition inside a SQL Query

I want to create a query, that will show the word “Passed” if the DATEDIFF(so_date,actual_delivery) = 3 then show “Failed” if not. Can someone help me please?

Making a custom table from one table

My table is called Storage_Tot which has date, tagid, value components. Below are the two tables (Table A and Table B) I created using SQL query. I essentially ran same query with different tagid …

Mysql find_in_set of array separator

I have column user_orders we are storing like [1][2][3][5] // Expected output 1,2,3,5 [25][27] // Expected output 25,27 [2] // Expected output 2 I don’t understand why my master …

How do you join multiple foreign keys?

I am creating a blog using PHP and SQL, I am trying to query everything in 1 SQL query so I can bring out all of the comments with the authors and all of the blogs with the authors. Each of them have …

Advertisement