I can not get crosstab to working. "dbr.crosstab" is not recognized as a command at all. (I was wondering if "crosstab" is part of basic "community" edition of myDBR at all.) Please refer to the code below:
------------------
DROP PROCEDURE IF EXISTS sp_DBR_test_selvi
$$
CREATE PROCEDURE
()
_
BEGIN
select 'dbr.crosstab', 3;
select NAME as 'NAME',
CS_MODEL as 'CS_MODEL',
SITE as 'SITE'
from reporting_db.MACHINE_LOC;
END
$$
I call this procedure using:
call sp_DBR_test_selvi()
------------------
The query results show 2 different result sets as below:
02:21:20 pm: Query execution time at: 0.13 sec
dbr.crosstab 3
dbr.crosstab 3
NAME CS_MODEL SITE
NYCCxxxx OptiPlex xx222 NY
.
.
.