Ask a New Question

Question

I ned help creating a query that shows the number of days left before the end of the term. I need the following functions to accomplish this: CONCAT, DAYOFYEAR, NOW. So far I have this for my query:

SELECT CONCAT('There are ',DAYOFYEAR(NOW()),' ',DAYOFYEAR(NOW())) AS `Days Left`;

The result is supposed to say: There are 69 days left before school ends for the spring term!!!

The result I got was: There are 79 79
14 years ago

Answers

Related Questions

In the following SQL query why do they have an independent letter then period then the table name? I... my last query is unanswered. please .. can i use non creative as an antonym for creative . thank y... what does query operation mean This is a Query 1 relationship. The y-intercept is Query 2 and the slope is Query 3 . The equatio... This is a Query 1 relationship. The y-intercept is Query 2 and the slope is Query 3 . The equation o... This is a Query 1 relationship. The y-intercept is Query 2 and the slope is Query 3 . The equatio... This is a Query 1 relationship. The y-intercept is Query 2 and the slope is Query 3 . The equatio... . The election of Query 2 as president quickly led to the Query 3. What is the purpose if a query language ? to display a web page properly to compile code to inter... Question 1 Consider this query: SELECT Email FROM Teachers WHERE LicenseExpireMonth = "February"...
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use