Answer the question
In order to leave comments, you need to log in
What does this SQL expression mean?
Good time.
I came across an incomprehensible structure in the request:
SELECT `a_products`.`season_alias`, (`a_products`.`season_alias` %2) AS seasons_alias_order
Answer the question
In order to leave comments, you need to log in
% is the operator for getting the remainder of a division. Literally, the query reads:
Take the season_alias field from the a_products table and then add the season_alias_order column, equal to the remainder of the season_alias field from the a_products table divided by 2
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question