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

📄 select_group_by.sql

📁 Absolute Database 5.12 src. Absolute Database lets you forget the Borland Database Engine (BDE). Th
💻 SQL
字号:
/*This SQL script uses Demos.abs database. 
  Please open ...\AbsoluteDatabase\Demos\Data\Demos.abs database file.
  This example illustrates use of GROUP BY keywords. 
  After performing this query the resulting dataset will contain names of employees and a number - how many times this name is met in the table.*/

select e1."FirstName", count(e1."FirstName") as "cntFirstName"
  from "employee" e1
 group by e1."FirstName"
 order by "cntFirstName" desc

⌨️ 快捷键说明

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