Hi,
I'm new to the FME world, and have a question that probably has a super obvious answer to anyone with experience with FME. SQL is rather new to me too.
I've got an SQLCreator with the following SQL Script running in it, against an Oracle Spatial Object database.
I know I need to enter something in the 'attributes to expose box', but I can't for the life of me work out what it needs to be.
FME_SQL_DELIMITER /
DECLARE GLASSHOUSEAR number;
BEGIN
select count (*) INTO GLASSHOUSEAR from GLASSHOUSE_AR;
END;
/
DECLARE RAILWAYSTATIONPT number;
BEGIN
select count (*) INTO RAILWAYSTATIONPT from RAILWAYSTATION_PT;
END;
/
DECLARE MARINEWATERAR number;
BEGIN
select count (*) INTO MARINEWATERAR from MARINEWATER_AR;
END;
/
When I use the following in the SQL script, all I need in the 'attribute to expose' is 'count(*)' and it throws the count out as expected.
select count (*) from RAILWAYSTATION_PT;
Could someone point me in the right direction so that I can get the SQL creator to output the correct things.
I'd like it to give me the counts for all three of:
GLASSHOUSE_AR
RAILWAYSTATION_PT
MARINEWATER_AR
When I run the workbench in it's current state, it connects to the database fine, runs the SQL, and returns nothing.
Attributes to Expose that I've tried so far with no luck:
count (*) from RAILWAYSTATION_PT
RAILWAYSTATIONPT
count (*) INTO RAILWAYSTATIONPT from RAILWAYSTATION_PT
COUNT(*) RAILWAYSTATIONPT
COUNT(*)
RAILWAYSTATIONPT
RAILWAYSTATION_PT
GLASSHOUSEAR
I've also tried the 'Populate from SQL Query' but that returns nothing at all.
Thanks for any help!