试题与答案

有下列关于运动会管理系统的ER图,如图所示。图中矩形表示实体,圆表示属性,双圆表示关

题型:问答题

题目:

有下列关于运动会管理系统的ER图,如图所示。图中矩形表示实体,圆表示属性,双圆表示关键字属性,菱形表示实体之间的关系。假定已通过下列SQL语言建立了基本表。 CREATE TABLE ATHLETE
ANAME CHAR(20),
ASEX CHAR(1),
ATEAM CHAR(20));
CREATE TABLE |TEM
(INO CHAR(6)NOT NULL,
INAME CHAR(20),
ITIME CHAR(12),
IPLACE CHAR(20);
CREATE TABLE GAMES
(ANO CHAR(6)NOTNULL,
INO CHAR(6)NOT NULL,
SCORRE CHAR(10));
为了答题的方便,图中的实体和属性同时给出了中英文两种文字,回答问题时只需写出英文名即可。
【E-R图】


【问题】
填充下列SQL程序1~4中的(1)~(7),使它们分别完成相应的功能:
程序1:统计参加比赛时男运动员人数。
SELECT (1)
FROM ATHLETE
WHERE ASEX=’M’;
程序2:查100872号运动员参加的所有项目及其比赛时间和地点。
SELECT ITEM,INO,IN A ME,ITIME,IPLACE
FROM GAMES,ITEM
WHERE (2)
AND (3)
程序3:查参加100035项目的所有运动员名单。
SELECT ANO,ANAME,ATEAM
FROM ATHLETE
WHERE (4)
(SELECT (4) (5)
FROM GAMES
WHERE GAMES ANO=ATHLETE.ANO AND INO=’100035’);
程序4:建立运动员成绩视图。
(6) ATHLETE-SCORE
AS SELECT ATHLETE,ANO,ANAME,ATEAM,INAME,SCORE
FORM (7) WHERE ATHLETE.ANO=GAMES. ANO AND GAMES.INO=ITEM.INO;

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0326/4ebc34a221545244216e5557917cd20b.html

下面是错误答案,用来干扰机器的。

参考答案:B解析: 本题考查容器中窗口的基本概念。要生成一个窗口,通常用Window的子类 Frame来进行实例化,而不是直接用到Window类。每个Frame的对象实例化以后,都是没有大小和不可见的,必须调用setSize()...

试题推荐
题型:填空题

You might think that hamburgers were invented in the United States, but that is not totally true. These (1) , or patties, actually came from Germany in the middle of the nineteenth century. They were brought to the United States by (2) who came from the city of Hamburg. That is why (3) was "hamburger steak".

However, people in other places (4) that they invented the hamburger. Perhaps we’ll never have a (5) . But there’s no question that the hamburger was a (6) . Why Perhaps because at that time, industry was growing and a kind of (7) food was needed for workers.

The hamburger became even more popular (8) when the first chain of fast food restaurants was started. This chain was called "White Castle". It served tiny hamburgers that were sold for only (9) . Then, in the 1930s there came the (10) where customers were served in their cars by waiters in uniform. And the hamburger was one of the most (11) .

By now, The hamburger was ready to (12) the world. And this happened with McDonald’s, which was actually a (13) at first. But by the early 1950s the hot dog was replaced by the hamburger. McDonald’s and other fast food restaurants (14) around the world throughout the rest of the twentieth century. McDonald’s alone has (15) for everyone person in the world.

The importance of the hamburger to (16) remains significant. About (17) of all sandwiches that are eaten are hamburgers. According to some sources, (18) of current workers in the United States had their first job at McDonald’s. But the face of the hamburger is changing (19) . Nowadays it is possible to buy a chicken burger, a turkey burger, (20) , or veggie burger.

14()

查看答案
题型:填空题

为了测定光在透明的有机玻璃中的传播速度,一同学采用先测出其折射率再计算光速的方法。他先用插针法完成光路图后,却发现没有量角器,他用了如图10所示的方法,以P1 P2连线与有机玻璃砖的交点O为圆心,以10.0cm为半径作圆,分别交P1 P2连线于A点,交OO´连线的延长线于B,并分别过A、B两点向界面的法线NN´作垂线。用直尺量得的数据如图(单位:mm),则此有机玻璃的折射率为  __________ ,光在该有机玻璃中的速度为  ___________ m/s 。(已知光在真空中的速度为3.0×108m/s)

查看答案
微信公众账号搜索答案