Viewing 10 posts - 1 through 10 (of 10 total)
Jan Van der Eecken (3/31/2013)
March 31, 2013 at 12:50 pm
Now working, thank you.
SELECT Coalesce( sGIG, 'Tot' ) as sGIG, Sum(Number) as Num
FROM (
SELECT LEFT (idDGIG, 2) AS sGIG, COUNT(idDGIG) AS NUMBER
FROM TABLE_LONG
WHERE
...
March 31, 2013 at 3:22 am
Lynn Pettis (3/28/2013)
select
idDGIG,
count(idDGIG) as Number
FROM (
SELECT
LEFT (idDGIG, 2) AS idDGIG,
...
March 28, 2013 at 3:55 pm
mrivero1961 (3/28/2013)
Sean Lange (3/28/2013)
I really can't tell from what you have posted what the...
March 28, 2013 at 3:27 pm
Sean Lange (3/28/2013)
I really can't tell from what you have posted what the actual...
March 28, 2013 at 3:03 pm
Sean Lange (3/28/2013)
mrivero1961 (3/28/2013)
I've modified the query, but the output not change:
SELECT
DATE_START,
COALESCE (idDGIG, 'Tot') AS sGIG,
`NUMBER`
FROM
(
SELECT
CA.DATE_START AS DATE_START,
LEFT (CA.idDGIG, 2) AS sGIG,
COUNT(CA.idDGIG) + COUNT(A.EVENT) AS NUMBER
FROM
TABLE_LONG...
March 28, 2013 at 2:32 pm
Thank you for help.
I've modified the query, but the output not change:
SELECT
DATE_START,
COALESCE (idDGIG, 'Tot') AS sGIG,
`NUMBER`
FROM
(
SELECT
CA.DATE_START AS DATE_START,
LEFT (CA.idDGIG, 2) AS sGIG,
COUNT(CA.idDGIG) + COUNT(A.EVENT) AS NUMBER
FROM
TABLE_LONG CA
JOIN TABLE_SHORT A...
March 28, 2013 at 2:24 pm
Kingston Dhasian (2/20/2013)
This should help
WHERE a.connected = 0 AND ( dt.connected IS NOT NULL OR b.id IS NULL )
Thank you very much, now working!!! 😀
SELECT
A.ID,
A.connected,
B.id,
B.connected,
A.datum,
B.datum_update,
A.title,
A.author,
B.message,
B.last_replies
FROM
forums a
LEFT OUTER JOIN forums b...
February 20, 2013 at 7:53 am
Kingston Dhasian (2/20/2013)
change your WHERE Clause like below
WHERE A.connected = 0 AND dt.connected IS NOT NULL
thank you for help, but the output is incorrect:
SELECT
A.ID,
A.connected,
B.id,
B.connected,
A.datum,
B.datum_update,
A.title,
A.author,
B.message,
B.last_replies
FROM
forums a
LEFT OUTER JOIN forums...
February 20, 2013 at 7:30 am
Viewing 10 posts - 1 through 10 (of 10 total)