I am facing issues trying to write a query. (this is slightly modified from my previous question)
My tables are laid out as follows:
tblTicketIssues.TicketID
tblTicketIssues.RequesterID
tblPersonnelProfile.PersonnelID
tblPersonnelProfile.FirstName
tblPersonnelProfile.LastName
tblTicketAttribute.TicketID
tblTicketAttribute.Attribute
tblTicketAttribute.AttributeValue
I have to display the following fields:
TicketID, RequesterFullName, UrgentPriorityID, MediumPriorityID,
LowPrioritytID
This is the part that is challenging:
If tblTicketAttribute.Attribute= "Urgent" then the value from tblTicketAttribute.AttributeValue is displayed in UrgentPriority column
If tblTicketAttribute.Attribute= "Medium" then the value from tblTicketAttribute.AttributeValue is displayed in MediumPriority column
If tblTicketAttribute.Attribute= "Low" then the value from tblTicketAttribute.AttributeValue is displayed in LowPriority column
If tblTicketAttribute.Attribute= "Closed" then
The values in tblTicketAttribute.Attribute include "Urgent", "Medium", "Low", "Over30", "Over60", "Over90", "Closed"
I don't need to display all records. Only "Urgent", "Medium" & "Low".