I have two tables:
TableTransaction
NameFrom -> references TableName(NameID)
NameTo -> references TableName(NameID)
ActionID -> references TableAction (ActionID)
TableAction
ActionID
ActionName
TableName
NameID
Name
I need to get all columns in TableTransaction where
NameFrom = Name and ActionID = 1 or 2 or 3 or 4
and all columns from TableTransaction where
NameTo = Name and ActionID = 5
TableTransaction
NameFrom -> references TableName(NameID)
NameTo -> references TableName(NameID)
ActionID -> references TableAction (ActionID)
TableAction
ActionID
ActionName
TableName
NameID
Name
I need to get all columns in TableTransaction where
NameFrom = Name and ActionID = 1 or 2 or 3 or 4
and all columns from TableTransaction where
NameTo = Name and ActionID = 5