Hi team, I want to select a particular row where any fields name contains the value as 1.How can I.I am using vb as Front End and SQL server as back end.
Dear chiragkhabaria, Thanks for your reply.The table has more that 25 columns.So i need some general Module.Any field can have a value as 1.But I need to select the value of any of the fieldss.
SELECT Field1 f
FROM TableName
WHERE Field1 = 1
UNION
SELECT Field2 f
FROM TableName
WHERE Field2 = 1
UNION
SELECT Field3 f
FROM TableName
WHERE Field3 = 1
...