Skip to content
Advertisement

Tag: mysql

How do i write this without using ALL?

Write a query to find only those customers whose grade are, higher than every customer to the city New York Answer You can use MAX in your subquery instead: As @GordonLinoff points out, if there are no customers from New York, this query will fail. You can work around that by using COALESCE to convert the MAX value from NULL

How to select count between start to (start+length) [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question How the following result appears when creating a table as above. This is the result of counting if the value is included between start plus

Condition’s speed in query [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago. Improve this question Given both give the same result and from the same data. Does adding the condition at SELECT (CASE WHEN) make

Sql select count use five condion

i count to some row form my database in five condition use the sql query it’s work with 0 if i put the number more than 0 then it not show any result. please help . it’s work with script $query33=…

Unknown column in field list when use join MySQL

I have 2 tables like this: product_master: campaign_product: This tables link with foreign key product_id I want to get all product data with campaign_code column. I don’t want to get 2 campaign_product row with same product_id. So I use this query: It got error when I run: Error in query (1054): Unknown column ‘dmspro_mys_campaign_product.campaign_code’ in ‘field list’ How I can

Advertisement