I have a one to many relationship between a building table and a building attributes table as shown below:
BLD_ID BLD_NAME
1 Warehouse1
2 Warehouse2
ATTRIBUTE_ID BLD_ID ATTRIBUTE
1 1 Loading Dock
2 1 Fenced Compund
3 2 Loading Dock
4 2 Retail Space
I want to create a query that would return all buildings that had a loading dock and a fenced compound.
BLD_ID BLD_NAME
1 Warehouse1
2 Warehouse2
ATTRIBUTE_ID BLD_ID ATTRIBUTE
1 1 Loading Dock
2 1 Fenced Compund
3 2 Loading Dock
4 2 Retail Space
I want to create a query that would return all buildings that had a loading dock and a fenced compound.