⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rel-ops.txt

📁 ssd7 exercise 1 ,绝对有用~欢迎下载
💻 TXT
字号:
1
SELECT Title,Price
FROM BOOK 
WHERE PublisherID IN (SELECT PublisherID
                      FROM PUBLISHER
	              WHERE Name = "Thomas Connolly" OR Name = "Lippman"); 

2
SELECT Name
FROM PUBLISHER, BOOK
WHERE PublisherID IN (SELECT PublisherID
                      FROM BOOK
                      WHERE Title = "Database Systems");


I used select relational operation, which can return the special colomn of the table.

I select the Price and Title from the table BOOK when its PublisherID is selected in the table PUBLISHER whose name is "Thomas Connolly" or "Lippman".

I use the same relational operation to know a publisher which has special book,select the Name from the table PUBLISHER when its PUBILSHERID is selected in the table BOOK,whose Title is "Database Systems".

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -