i want to get id through passing values in sql server 2008?

Posted by jaykanth on Stack Overflow See other posts from Stack Overflow or by jaykanth
Published on 2010-05-27T22:07:33Z Indexed on 2010/05/27 22:11 UTC
Read the original article Hit count: 184

Filed under:
|
id Ptypefield Value
1   1   D
2   1   E
3   1   F
4   1   G
5   1   H
6   2   FL
7   2   IF
8   2   VVS1
9   2   VVS2
10  2   VS1
11  2   VS2
12  3   0.50
13  3   1.00
14  3   1.50
15  3   2.00
16  4   Marquise
17  4   Round
18  4   Pear
19  4   Radiant
20  4   Princess

this table i want to get id no i give value like D and F

my ans is 1 and 3

please write a query

© Stack Overflow or respective owner

Related posts about sql

Related posts about homework