selecting distinct pairs of values in SQL

前端 未结 3 1746
借酒劲吻你
借酒劲吻你 2021-01-06 06:23

I have an Access 2010 database which stores IP addresses of source and destination machines. If I have the following entries in my database

|source           |            


        
3条回答
  •  太阳男子
    2021-01-06 07:05

    select unique source, destination from YourTable

    or

    select distinct source, destination from YourTable

    or

    select source, destination from YourTable group by source, destination

提交回复
热议问题