i would like to create a sql query like these :
Select* from Table where
(if picod=1)
{
dvdt= "xxxx"
}
(if picod=2)
{
cddt= "xxxx"
}
(if picod=3)
{
bldt= "xxxx"
}
(if picod=3)
{
fadt= "xxxx"
}
I don’t know how doing this in SQL .
Anyone could help me please ?
Thanks a lot 🙂
1 Answer