Count the number of id's in Oracle's SQL

Viewed 34

I am looking to sum the total number of "Std Cav" when pdadyprod_id = pdayprod_id. I've tried many things, nun which has worked, my latest attempt leaves me with an error "From keyword not found where expected". Please advise.

enter image description here

Whenever pdayprod_id equals itself, add the number of std cav to get a "Part Count"

enter image description here

0 Answers
Related