I have 3 tables: cc_claim, cc_exposure, cc_new
I am trying to select the claimID from cc_claim by claimNumber and then use that ID to retrieve an exposureID from the cc_exposure table. Then finally I want to select the column from cc_new table that has that exposureID. Here is my code so far:
SELECT cc_claim.ID as test
FROM cc_claim
where ClaimNumber ='19D1000011'
JOIN (cc_exposure where AssignedUserID = test)
I am not sure if I am on the right track.. new to sql.