Useful MySQL Queries
"Common MySQL Queries. Extending Chapter 9 of Get it Done with MySQL 5&Up
Here's an example: Compute date from year, week number and weekday:
SET @yr=2012, @wk=26, @day=0;
SELECT Str_To_Date( Concat(@yr,'-',@wk,'-',If(@day=7,0,@day) ), '%Y-%U-%w' ) AS Date;
Read, listen or watch here: artful software