Consider the following schema: #Suppliers(sid: integer, sname: string, address: string) #Parts(pid: integer, pname: string, color: string) #Makers(mid: integer, mname: string) #Catalog(sid: integer, pid: integer, mid integer,cost: integer) It is created using following CREATE TABLE Suppliers ( sid integer NOT NULL, sname varchar (25) NOT NULL, address varchar (25), PRIMARY KEY (sid) ); CREATE TABLE Parts ( pid integer NOT NULL, pname varchar (25) NOT NULL, color varchar (25) NOT NULL, PRIMARY KEY (pid) ); CREATE TABLE Makers ( mid integer NOT NULL, mname varchar (25) NOT NULL, PRIMARY KEY (mid) ); CREATE TABLE Catalog ( sid integer NOT NULL, pid integer NOT NULL,mid integer NOT NULL, cost integer, PRIMARY KEY (sid,pid,mid),  FOREIGN KEY (sid) REFERENCES Suppliers(sid), FOREIGN KEY (pid) REFERENCES Parts(pid), FOREIGN KEY (mid) REFERENCES Makers(mid) );   Here sid is the primary key for Suppliers, pid is the primary key for Parts, and (sid, pid, mid) together form the primary key for Catalog. The Catalog relation lists the prices charged for parts. Parts.color can take values "Red", "Blue", "Yellow" etc. Write one SQL query  to find the sids of suppliers who supply all color "Red" parts in the table Parts. Please type your answer.  论述题

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

Choose a, b, c or d as the best answer. 2. Which statement about Brutalist buildings would the author, most probably, agree with?

Section A: Read the text and answer the questions. Brutalism is an architectural style, introduced in the 1950s. It uses exposed concrete to create geometric structures with a grey appearance. Concrete buildings are often criticised as cold and ugly, lacking the warmth of stone or the smooth feel of steel. However, concrete, as a building material, has unique characteristics. It is extremely flexible when wet, and is adapted to create interesting shapes. Many urban public buildings, such as universities, have also used concrete as the main material to indicate strength and permanence. Instead of keeping Brutalist buildings, many are being demolished to make space for modern styles. However, this does not acknowledge the cultural history of these buildings, and is not sustainable. Fill in the gap with ONE WORD from the paragraph. 1. Brutalist architecture included exposed concrete, which gave a cold Answer Question 1[input] .

Question 30 Choose a, b, c or d as the best answer. The author’s main argument is that the 100:80:100 model __________.

The 100:80:100 model will most likely 25. ____ to more fields of work with productivity improvements. Businesses which continue with the traditional working week could have 26. ____ , and may be forced to agree to the model. They would need to do this to stay 27.____. The advantages of a reduced working week have been revealed by 28. ____ businesses. Future trials of the concept must include those 29. Answer Question 17[input] not surveyed in the first round.

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!