a,
b,
'(' AS c
FROM
c
)
SELECT
categoryid,
categoryname,
categorysystemname
FROM (
SELECT
nested,
CASE -- something here
WHEN 1 THEN
'and from'
WHEN 3 THEN
'sum(a'
ELSE
'or' -- and where ( is it?
END
FROM (
SELECT
*
FROM
category) AS b
WHERE
intcategoryid IS NULL
AND b.a = 1
AND b.c = 2
AND b.e = 3) AS tmp
WHERE
intcategoryid IS NULL
AND a = 1
но комментарий не распознался, да
Обсуждают сегодня