设关系R(A,B,C)和关系S(B,C,D),那么与R⋈S等价的关系代数表达式是
A. σ2=4(R⋈S)
B. σ2=4(R×S)
C. σ2=1(R⋈S)
D. σ2=1(R×S)
查看答案
Sql语句:select * from students where SNO like‘010[^0]%[A,B,C]%’,可能会查询出的SNO是()。
A. 01053090A
B. Hm3?
C. 01003090A01
D. 01053090D09
E. 0100A01
关于Truncate table, 以下()描述是错误的。
A. Truncate table可跟Where从句,根据条件进行删除。
B. Truncate table可以删除表中所有数据。
C. 触发器对Truncate table依然有效。
D. delete比Truncate table速度快。
现有订单表orders,包含用户信息userid, 产品信息 productid, 以下()语句能够返回至少被订购过两回的productid?
A. select productid from orders where count(productid)>1
B. select productid from orders wheremax(productid)>1
C. select productid from orders where having count(productid)>1group by product id_
D. select productid from orders group by productid having count(productid)>1
成绩表grade中字段score代表分数,以下()语句返回成绩表中的最低分。
A. select avg(score) from grade order by scoore
B. select top 1 score from grade order by score asc
C. Select min(score) from grade
D. select top 1 score from grade order by score desc