sql
minglotus
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SQL some key word
MEANING: SOME compares a value to each value in a list or results from a query and evaluates to true if the result of an inner query contains at least one row. SOME must match at least one row in the原创 2015-04-18 12:27:17 · 336 阅读 · 0 评论 -
DB Manipulation
delete, insert, modify these operations which may alter the contents of a table have to be done before any change to the table happens. insert insert into table values(column_v1, column_v2, column_v3原创 2015-04-18 15:10:06 · 241 阅读 · 0 评论 -
sql JOIN
(natural) join (natural) join … using … join…on difference between natural join using and join on in natural join, column specified by using appears only once, but in join on, it appears twice. join原创 2015-04-18 23:27:42 · 353 阅读 · 0 评论 -
terms in db
correlated subquery(相关子查询) correlation name from an outer query used in a subquery in a where clause scoping rule for correlation query 1)It’s only legal to use correlation names defined in the subq原创 2015-04-18 12:35:34 · 291 阅读 · 0 评论 -
Leetcode Customers Who Never Order
WA: select Customers.Name as Customers from Customers where Customers.Name not in (select Customers.Name from Customers join Orders on Customers.Id = Orders.CustomerId) ; AC: select Customers.Name a原创 2015-04-23 16:34:02 · 258 阅读 · 0 评论 -
db 错题
Select out of following the code which uses a JOIN to show a list of all the departments and number of employed teachers WA: SELECT dept.name, COUNT(teacher.name) FROM teacher JOIN dept ON dept.原创 2015-04-23 09:07:59 · 280 阅读 · 0 评论
分享