Answer the question
In order to leave comments, you need to log in
Should a person be multitasking at work?
Hey!
Recently, the issue of multitasking at work has begun to bother, i.e. you don't have to wait for one task (for example, the process of downloading and installing software) to finish if you can do a lot of small useful actions during the wait, such as reading a blog, setting up other software, making a cup of tea, making a plan, etc. To make the most of the time you are waiting
for Question: if during the download and installation of the software to divert attention from the main work, then productivity will not fall?
Answer the question
In order to leave comments, you need to log in
Everyone is different.
And the work is different (rendering or compilation is an integral part of the workflow for many).
And a person has his own characteristics. Someone should be distracted for a second - and that's it, fell out of the stream, lost for the rest of the day. The other, on the contrary, needs to constantly switch between tasks, otherwise he does not know how.
So see for yourself.
$sql = "SELECT
p.product_id,
(
SELECT AVG(rating) AS total
FROM " . DB_PREFIX . "review r1
WHERE r1.product_id = p.product_id AND r1.status = '1'
GROUP BY r1.product_id
) AS rating,
(
SELECT price
FROM " . DB_PREFIX . "product_discount pd2
WHERE
pd2.product_id = p.product_id
AND pd2.customer_group_id = '" . (int)$this->config->get('config_customer_group_id') . "'
AND pd2.quantity = '1'
AND ((pd2.date_start = '0000-00-00' OR pd2.date_start < NOW()) AND (pd2.date_end = '0000-00-00' OR pd2.date_end > NOW()))
ORDER BY pd2.priority ASC, pd2.price ASC LIMIT 1
) AS discount,
(
SELECT price
FROM " . DB_PREFIX . "product_special ps
WHERE
ps.product_id = p.product_id
AND ps.customer_group_id = '" . (int)$this->config->get('config_customer_group_id') . "'
AND (
(ps.date_start = '0000-00-00' OR ps.date_start < NOW())
AND
(ps.date_end = '0000-00-00' OR ps.date_end > NOW())
)
ORDER BY ps.priority ASC, ps.price ASC LIMIT 1
) AS special";
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question