我正在使用的查询有多个名字,一个电子邮件地址的姓氏。我怎样才能只选择第一行而忽略剩余的。像
Tracy Dugan td@test.com
stephen stacy td@test.com
Ron Thomas td@test.com
结果 Tracy Dugan td@test.com 我有多行具有相同的电子邮件地址。如何实现
SELECT distinct f.email_address,TITLE,FIRST_NAME,LAST_NAME FROM
#tempFinal F,temp htc
where f.EMAIL_ADDRESS = htc.EMAIL_ADDRESS