I'm not sure if it's possible to write a single SQL query to retrieve this information, but I figured this is the best place to ask.
Here's the table I'm working with:
DrugPrices (PharmID int, DrugID int, Price float, GenericPrice float)
What I want to do is select 4 distinct values from the table: the max and min of the Price column where DrugID = 11, and the max and min of the Price column where DrugID = 17.
I've pored over this and can't seem to figure it out... maybe this is where I need to switch to SQL Server and stored procedures! TIA
Here's the table I'm working with:
DrugPrices (PharmID int, DrugID int, Price float, GenericPrice float)
What I want to do is select 4 distinct values from the table: the max and min of the Price column where DrugID = 11, and the max and min of the Price column where DrugID = 17.
I've pored over this and can't seem to figure it out... maybe this is where I need to switch to SQL Server and stored procedures! TIA