未分类题

到(35)题使用如下数据表。
部门(部门号C(2)、部门名称C(10) )
职工(部门号C(2)、职工号C(4)、姓名C(8)、基本工资N(7,2) )
检索有职工的基本工资大于或等于“11”部门中任意一名职工工资的“部门号”,正确的语句是( )。
A.SELECT DISTmCT部门号FROM职工WHERE基本工资>=ANY; (SELECT基本工资FROM职工WHERE部门号='11')
B.SELECT DISTINC部门号FROM职工WHERE基本工资>=ALL; (SELECT基本工资FROM职工WHERE部门号='11')
C.SELECT DISTINCT部门号FROM职工WHERE基本工资>=ANY; (SELECT MAX(基本工资)FROM职工WHERE部门号='11')
D.SELECT DISTINCT部门号FROM职工WHERE基本工资>=ALL; (SELECT MIN(基本工资)FROM职工WHERE部门号='11')

A.SELECT
B.SELECT
C.SELECT
D.SELECT

【参考答案】

B
解析:在SQL语句中可以利用ANY、ALL等量词进行查询。基本格式为:
<表达式><比较运算符>[A......

(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
热门 试题

未分类题
I was parked in front of the mall wiping off my car. Coming my way from across the parking lot was【C1】______society would consider a bum(无业游民). From the【C2】______of him, he had no car, no home, no clean clothes, and no money. He sat down in front of the bus stop but didn't look like he could have enough money to even【C3】______the bus. 'That's a very pretty car,' he saiD.He was【C4】______but he had a(n)【C5】______of dignity around him. I said, 'thanks,' and【C6】______wiping off my car. He sat there【C7】______as I workeD.The【C8】______beg for money never camE.As the silence between us widened something inside said, 'ask him if he needs any help.' I was【C9】______that he would say 'yes'. 'Do you need any help?' I askeD.He answered in three【C10】______but profound(深远的)words that I shall never【C11】______'Don't we all?' he saiD.I had been feeling high, successful and important【C12】______those three words【C13】______me like a shotgun. Don't we all? I needed help. Maybe not for bus fare or a place to sleep, but I needed help. I【C14】______my wallet and gave him not only enough for bus fare, but enough to get a warm meal and【C15】______for the day. Those three little words still ring【C16】______. No matter how much you have, no matter how much you have【C17】______, you need help too. No matter how【C18】______you have, no matter how【C19】______you are with problems, even without money or a place to sleep, you can【C20】______help.【C1】A.thatB.whatC.whichD.how
A.'
B.
C.
【C1】
A.that
B.what
C.which