从 ProductCategory 表中获取 服装 产品类别的子类别列表。 将结果输出为一个名为 Clothing 的列,按字母顺序排序。 使用 ProductCategory 表的自连接来完成此任务。
在下面的字段中写下您的请求并点击 "检查它!" 按钮。
使用 SQL Server 2022 语法来写您的答案。 表的描述在屏幕底部提供。
从 ProductCategory 表中获取 服装 产品类别的子类别列表。 将结果输出为一个名为 Clothing 的列,按字母顺序排序。 使用 ProductCategory 表的自连接来完成此任务。
在下面的字段中写下您的请求并点击 "检查它!" 按钮。
使用 SQL Server 2022 语法来写您的答案。 表的描述在屏幕底部提供。
AdventureWorks 数据库 (SQL Server) 是一个示例数据集,模拟了一个虚构制造公司的业务流程。
本页面展示了表结构、关键列和用于实际 SQL 学习和查询练习的关系。
AdventureWorks 数据库包含 10 个主要表。
| AddressID | AddressLine1 | AddressLine2 | City | StateProvince | CountryRegion | PostalCode | rowguid | ModifiedDate |
|---|---|---|---|---|---|---|---|---|
| 9 | 8713 Yosemite Ct. | null | Bothell | Washington | United States | 98011 | 268AF621-76D7-4C78-9441-144FD139821A | 2006-07-01 00:00:00.000 |
| CustomerID | NameStyle | Title | FirstName | MiddleName | LastName | Suffix | CompanyName | SalesPerson | EmailAddress | Phone | PasswordHash | PasswordSalt | rowguid | ModifiedDate |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 0 | 先生 | Orlando | N. | Gee | [null] | A Bike Store | adventure-works\pamela0 | orlando0@adventure-works.com | 245-555-0173 | L/Rlwxzp4w7RWmEgXX+/A7cXaePEPcp+KwQhl2fJL7w= | 1KjXYs4= | 3F5AE95E-B87D-4AED-95B4-C3797AFCB74F | 2005-08-01 00:00:00.000 |
| CustomerID | AddressID | AddressType | rowguid | ModifiedDate |
|---|---|---|---|---|
| 29485 | 1086 | 主办公室 | 16765338-DBE4-4421-B5E9-3836B9278E63 | 2007-09-01 00:00:00.000 |
| ProductID | Name | ProductNumber | Color | StandardCost | ListPrice | Size | Weight | ProductCategoryID | ProductModelID | SellStartDate | SellEndDate | DiscontinuedDate | ThumbNailPhoto | ThumbnailPhotoFileName | rowguid | ModifiedDate |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 680 | HL Road Frame - Black, 58 | FR-R92B-58 | 黑色 | 1059.3100 | 1431.5000 | 58 | 1016.04 | 18 | 6 | 2002-06-01 00:00:00.000 | [null] | [null] | [binary] | no_image_available_small.gif | 43DD68D6-14A4-461F-9069-55309D90EA7E | 2008-03-11 10:01:36.827 |
| ProductCategoryID | ParentProductCategoryID | Name | rowguid | ModifiedDate |
|---|---|---|---|---|
| 1 | [null] | 自行车 | CFBDA25C-DF71-47A7-B81B-64EE161AA37C | 2002-06-01 00:00:00.000 |