Moderators: jmacgreg, michael, John, jheckman, barbarah, btbell, vgabler, bdgregg
SELECT issue_id, volume, number, year, date_published, CONCAT(year, '-', number, '-', '1') AS new_date_published FROM issues LIMIT 10;asmecher wrote:Hi Evo,
You can use your publication schedule along with the volume, number, and year to calculate the effective publication date. For example, if you publish an issue per month, then try working with something like this...When you have it working as you want, then convert that SELECT statement into an UPDATE statement to correct the date_published columns with the new value.
- Code: Select all
SELECT issue_id, volume, number, year, date_published, CONCAT(year, '-', number, '-', '1') AS new_date_published FROM issues LIMIT 10;
Regards,
Alec Smecher
Public Knowledge Project Team
Users browsing this forum: No registered users and 6 guests