Hey guys, I've got a Syntax Error while doing SQL, Heres my code -
select title 'title of item', pubyear 'year of publication', round(replacementcost/1.1 'replacementcost(actual)', 1), round(lostfee/1.1 'lostfee(actual)', 1) item pubyear in (2001, 2002) sorry formatting of select query, it's quite long
the syntax round() function in mysql is:
round( number, [ decimal_places ] ) you apparently trying embed alias inside call round(), doesn't make sense.
corrected version:
select title 'title of item', pubyear 'year of publication', round(replacementcost/1.1, 1) 'replacementcost(actual)', round(lostfee/1.1, 1) 'lostfee(actual)' item pubyear in (2001, 2002)
Comments
Post a Comment