oracle11g - using zend with oracle ORA-00911: invalid character -
ora-00911: invalid character select "scores"."subscriberid" "subscriberid", sum(scores.score) "score", "subscribers"."subscriberid", "subscribers"."firstname", "subscribers"."lastname", "subscribers"."mobile" "scores" inner join "subscribers" on "subscribers"."subscriberid"="scores"."subscriberid" ("scores"."pollingid"=2) , ("subscribers"."subscriberid" not in (select "polling_trialaudience_subscrib"."subscriberid" "polling_trialaudience_subscrib" ("polling_trialaudience_subscrib"."pollingid"=2))) , ("subscribers"."subscriberid" not in (select "group_subscribers"."subscriberid" "polling_trialaudience_groups" inner join "group_subscribers" on "polling_trialaudience_groups"."groupid"="group_subscribers"."groupid" ("pollingid"=2))) group "subscribers"."subscriberid" having (score *in ( select * from(select distinct sum("scores"."score") topscore `"scores"` "scores"."pollingid"=2 group "scores"."subscriberid" order topscore desc limit 100) t)) order "score" desc
please me!!!!!
assuming asterisk in having (score *in (
isn't there, generate "ora-00936: missing expression", first problem in posted backticks have around "scores"
. it's possible you've introduced while creating question of course, generate "ora-00911: invalid character if present".
you have other problems too; limit
isn't supported oracle, can't use as
table alias (as t
after limit), have non-aggregate columns in select list no in group-by clause, ... other things once resolved.
Comments
Post a Comment