简体   繁体   中英

Query To Select One Record From Multiple Records

How can I write a query to get a table (the most right) in faster way if I want to select employers date "Dec-13" so the result look like this picture? Anybody help me?

在此处输入图片说明

Thank you !

use DISTINCT to unique select values from the column.

SELECT DISTINCT Employer_ID
FROM   TableName

Try with:

  SELECT ID, Employer_ID
    FROM table
GROUP BY Employer_ID

尝试

SELECT * FROM tablename GROUP BY Employer_ID

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM