runtime error #38
-
in that code its giveing runtime error please giveme salution |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
its give me
|
Beta Was this translation helpful? Give feedback.
-
MySQL Query ReviewProblem StatementThe question asked to write a MySQL query that retrieves the SELECT
user_id,
CONCAT(UPPER(SUBSTR(name, 1, 1)), LOWER(SUBSTR(name, 2))) AS name
FROM Activity
ORDER BY 1 ASC; Issue IdentificationThe problem was that the ResolutionTo resolve the error, replace the numeric column reference with the actual column name in the Updated QuerySELECT
user_id,
CONCAT(UPPER(SUBSTR(name, 1, 1)), LOWER(SUBSTR(name, 2))) AS name
FROM Activity
ORDER BY user_id ASC; By explicitly specifying Summary
|
Beta Was this translation helpful? Give feedback.
-
Thank You I understand that Question. |
Beta Was this translation helpful? Give feedback.
MySQL Query Review
Problem Statement
The question asked to write a MySQL query that retrieves the
user_id
and a formattedname
from theActivity
table. The formatted name should have its first letter in uppercase and the remaining letters in lowercase. The query provided was:Issue Identification
The problem was that the
ORDER BY 1 ASC
clause uses a column ordinal (the number 1) to indicate that the results should be sorted by the first column in the SELECT list. While this is often acceptable in many MySQL environments, some SQL environments or strict SQL modes may dis…