Hello,
I have a table in SQL SERVER 2005. I would like to create a view that populates all records of a given Num value if one or more weights in records of that Num value = 0.
Table1
Num, weight
1, 5.3
2, 0
2, 25.3
2, 32.6
3, 2.3
3, 1.9
4, 53.3
4, 0
I want the view to look like this:
View1
Num, weight
2, 0
2, 25.3
2, 32.6
4, 53.3
4, 0
Note. Records of Num Value 1 and 3 donâÃÂÃÂt show up because all the weight values for these records is > 0.
Does anyone know how to do this??
Thanks!
Start Free Trial