29.01.2014 Views

Chapter 6: Query Decomposition and Data Localization

Chapter 6: Query Decomposition and Data Localization

Chapter 6: Query Decomposition and Data Localization

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Query</strong> <strong>Decomposition</strong> – Analysis . . .<br />

• Example: Consider a query:<br />

SELECT ENAME,RESP<br />

FROM EMP, ASG, PROJ<br />

WHERE EMP.ENO = ASG.ENO<br />

AND ASG.PNO = PROJ.PNO<br />

AND PNAME = "CAD/CAM"<br />

AND DUR ≥ 36<br />

AND TITLE = "Programmer"<br />

• <strong>Query</strong>/connection graph<br />

– Nodes represent oper<strong>and</strong> or result relation<br />

– Edge represents a join if both connected<br />

nodes represent an oper<strong>and</strong> relation, otherwise<br />

it is a projection<br />

• Join graph<br />

– a subgraph of the query graph that considers<br />

only the joins<br />

• Since the query graph is connected, the query is semantically correct<br />

DDB 2008/09 J. Gamper Page 6

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!