How do would I write a sql query to show me values in value set?
programhelp
2013-09-24 15:32:04 UTC
I have a table named tblPhone and I have field in the tabled called Codes that is a value list. How do I write a query in t-sql to shows me whats in the value list. I'm a newbie a t-sql.
Three answers:
TheMadProfessor
2013-09-28 14:15:14 UTC
Are you saying you have a column called Codes that can have multiple values? If so, that is a HORRIBLE design that is not at all normalized (which makes Dr. Codd cry) and I wouldn't even attempt to develop queries for it.
AJ
2013-09-26 17:34:45 UTC
Select codes from tblPhones group by codes
airdogspace2
2013-09-24 22:43:31 UTC
select codes from tblPhone where ????
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.