Redian新闻
>
help needed about sql statement
avatar
help needed about sql statement# Database - 数据库
J*h
1
my table is like this:
lineID sub1 sub2 sub3
How can I get the distinct value of sub1 , sub2 and sub3?
Each column of Sub1, sub2 , sub3 has duplicate values.
And there are duplicate values between sub1, sub2 and sub3.
Thank you in advance.
avatar
n*m
2
SELECT DISTINCT SUB1 SUB2 SUB3 FROM T

【在 J*****h 的大作中提到】
: my table is like this:
: lineID sub1 sub2 sub3
: How can I get the distinct value of sub1 , sub2 and sub3?
: Each column of Sub1, sub2 , sub3 has duplicate values.
: And there are duplicate values between sub1, sub2 and sub3.
: Thank you in advance.

avatar
s*n
3
R u expecting one column in your return results, or 3 columns? Hehe...

【在 n**m 的大作中提到】
: SELECT DISTINCT SUB1 SUB2 SUB3 FROM T
avatar
J*h
4
one column.

【在 s******n 的大作中提到】
: R u expecting one column in your return results, or 3 columns? Hehe...
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。