select line_number, TIME
from LINE join LINE_STOP join PASSAGE
where time = (select count (Time)
from passage
where time between 500 and 620)
group by line_number;
有人能告诉我我的错误在哪里吗?
答案 0 :(得分:1)
@Gordon Linoff更正!! TIME是Oracle中的PL / SQL保留字,可用于独立于PL / SQL代码的SQL查询。但在这里,将时间与计数值等同确实会引起混淆。我的猜测,Valerie试图用它来计算次数,line_number重复或类似的事情。
'missing keyword'错误是因为你没有使用'ON'关键字,如果你使用Join语句,这是必须的。
@ValérieHallé如果你试图像我上面所说的那样做,试试这个,
variable <- c("A1","B1","C1","D1","A1","B1","C1","D1","A1","B1","C1","D1")
period <- c("P1","P1","P1","P1","P2","P2","P2","P2","P3","P3","P3","P3")
coef <- runif(12, -1, 1)
coef_lb <- coef-0.3
coef_ub <- coef+0.3
df<- data.frame(variable,period,coef,coef_lb,coef_ub)
df$period <- factor(df$period,levels=c("P1","P2","P3"))
library(ggplot2)
bpdiaplot <- ggplot(data=df,aes(x=period,y=coef))
bpdiaplot <- bpdiaplot + facet_grid(.~variable,labeller = label_parsed)
bpdiaplot <- bpdiaplot + geom_pointrange(aes(ymin=coef_lb,ymax=coef_ub))
bpdiaplot <- bpdiaplot + geom_point()
bpdiaplot <- bpdiaplot + scale_y_continuous(limits=c(-1.4, 1.4),breaks=seq(-1.4, 1.4, by = 0.3))
bpdiaplot <- bpdiaplot + xlab("Period")
bpdiaplot <- bpdiaplot + ylab("Mean difference")
bpdiaplot <- bpdiaplot + geom_hline(yintercept=0,alpha=0.5)
bpdiaplot <- bpdiaplot + theme_bw()
bpdiaplot <- bpdiaplot + theme(axis.text = element_text(colour = "black"))
bpdiaplot <- bpdiaplot + theme(axis.text.x=element_text(angle = 45, hjust = 1))
这应该有效。如果没有,请回复我: - )