Quantcast
Channel: Programmer's Town - Sampling filtration
Browsing all 12 articles
Browse latest View live

Sampling filtration

Greetings to everything, are the table with the goods, there is 2 price of sheet - one for the normal goods, another for marked down. In dependence, whether the goods are beaten by life or not it is...

View Article



Re: Sampling filtration

generally grouping? Really in a price there are doubles on the goods? If yes - what sense to receive ? And even without a warranty that from one record...And generally - begin with an accurate...

View Article

Re: Sampling filtration

Akina;The task: the output of the list of the goods, the price is deduced depending on goods state. If the goods with damages that the price to take from sheet 2 price. If at the beaten goods the price...

View Article

Re: Sampling filtration

polkilo wrote: the Task: the output of the list of the goods, the price is deduced depending on goods state. If the goods with damages that the price to take from sheet 2 price. If at the beaten goods...

View Article

Re: Sampling filtration

Akina;For "damages" fields product.broken and product.damaged answer.Here the table of the goods:CREATE TABLE ecs_20151118.esys_product (id int (11) UNSIGNED NOT NULL AUTO_INCREMENT;article char (20)...

View Article


Re: Sampling filtration

The table of the prices:CREATE TABLE ecs_20151118.esys_price (article char (20) NOT NULL COMMENT ' the goods Article ';id_pricelist int (11) UNSIGNED NOT NULL COMMENT ' the Price sheet ';value decimal...

View Article

Re: Sampling filtration

polkilo wrote: Greetings to everything, are the table with the goods, there is 2 price of sheet - one for the normal goods, another for marked down. In dependence, whether the goods are beaten by life...

View Article

Re: Sampling filtration

MasterZiv;Two left join plus a case expression for the price.Any group by it is not necessary.

View Article


Re: Sampling filtration

With cases wrote request but how to remove GROUP BY and HAVING?SELECTproducts. *;CASE WHEN (products.article_markdown is NOT NULL OR products.badpack> 0 OR products.surplus> 0 OR...

View Article


Re: Sampling filtration

Tried here so:SELECTproduct. *;CASE WHEN (product.broken> 0 OR product.damaged> 0)THEN (SELECT value FROM price WHERE article=product.article AND id_pricelist=2)ELSE (SELECT value FROM...

View Article

Re: Sampling filtration

Binding should be produced with the registration of a field of "damage". I.e. typeFROM product LEFT JOIN price ON product.id=price.id AND ( (product.broken=1 AND price.id_pricelist=2) OR...

View Article

Image may be NSFW.
Clik here to view.

Re: Sampling filtration

Akina;Huge to you thanks!!! You the genius Thanks to you at last that reached, as works JOIN! Health to you and good luck

View Article
Browsing all 12 articles
Browse latest View live




Latest Images