sql server笔试题
时间: 2023-12-18 16:30:16 浏览: 162
SQL Server笔试题
5星 · 资源好评率100%
以下是两个关于SQL Server笔试题的例子:
1. SQL Server笔试题示例
```sql
-- 从表中查询出不重复的城市列表
SELECT DISTINCT city
FROM table_name;
```
2. SQL Server笔试题示例
```sql
-- 查询每个部门的员工数量,并按照员工数量降序排列
SELECT department, COUNT(employee_id) AS employee_count
FROM employee_table
GROUP BY department
ORDER BY employee_count DESC;
```
阅读全文