My table has data as shown in the picture.
I selected the SiteInstanceID
value based on a selection from another column "AttributeValue
".
SELECT
`SiteInstanceID`
FROM
`sitecomponentattributevalues`
WHERE
`AttributeValue` = 00069
Now I want to select all data from the same table where the SiteInstanceID
is 61
(the extracted value from the above code)
2
Answers
You can use
exists
:you can join both SELECT statements with WHERE IN like this