Skip to content

Tag: database

how to query get value without id

I want to get the value of the column regardless of the id of the table, because I want to use GROUP BY to concatenate them from the table : id_child id_master test1 test2 test3 1 1 1 1 0 2 1 1 0 0 3 1 1 0 0 4 2 1 0 0 5 2 1 0 0

Select clause result as comparison expression

In Sql queries can I use the result of a select clause using aggregate functions as an expression for a comparison? For example: Answer Yes, you can do this. You just need parentheses as you would with any subquery: Note that count(b) is not necessary when you know that b is not NULL. There is no need to chec…

Database in WPF and Windowformapps

I’m developing applications using either WPF or WindowFormApps that can store and manage database. The question is that how can i create an in-app database or which kind of database should I use that can run whenever I install it on other devices. My application cannot run on other devices since there i…

Why this mysql statement returns whole table?

I am wondering that how this query returns all data from the table: It gives the same output of this: It is probably works as this: but, WHY? Answer Break the WHERE condition down, and this starts to make sense: All rows with an email attribute set to a blank string ” will return TRUE. For a minute, let…