IST210 LAB5

IST210 LAB5 - Lab 5 1) Input SELECT employee_id, last_name,

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab 5 1) Input SELECT employee_id , last_name , demo_department . department_id , name FROM demo_department , demo_employee ; Output * employee_id last_name department_id name 7369 SMITH 10 ACCOUNTING 7499 ALLEN 10 ACCOUNTING 7505 DOYLE 10 ACCOUNTING 7506 DENNIS 10 ACCOUNTING 7507 BAKER 10 ACCOUNTING 7521 WARD 10 ACCOUNTING 7555 PETERS 10 ACCOUNTING 7557 SHAW 10 ACCOUNTING 7560 DUNCAN 10 ACCOUNTING 7564 LANGE 10 ACCOUNTING 7566 JONES 10 ACCOUNTING 7569 ALBERTS 10 ACCOUNTING 7600 PORTER 10 ACCOUNTING 7609 LEWIS 10 ACCOUNTING 7654 MARTIN 10 ACCOUNTING 7676 SOMMERS 10 ACCOUNTING 7698 BLAKE 10 ACCOUNTING 7782 CLARK 10 ACCOUNTING 7788 SCOTT 10 ACCOUNTING 7789 WEST 10 ACCOUNTING 7799 FISHER 10 ACCOUNTING 7820 ROSS 10 ACCOUNTING 7839 KING 10 ACCOUNTING 7844 TURNER 10 ACCOUNTING 7876 ADAMS 10 ACCOUNTING * Only first 25 lines copied of very long list 2) Input SELECT state , salesperson_id FROM demo_customer , demo_employee WHERE state = 'tx' AND demo_customer . salesperson_id = demo_employee . employee_id ; Output TX 7560 TX 7560 TX 7564 TX 7654 TX 7564 TX 7789
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
TX 7789 TX 7789 TX 7789 Input SELECT demo_customer . name , salesperson_id , last_name , commission FROM demo_customer , demo_employee WHERE demo_customer . salesperson_id = demo_employee . employee_id ORDER BY commission DESC ; Output name salesperson_id last_name commission VOLLYRITE 7654 MARTIN
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/02/2009 for the course IST 210 taught by Professor Mcconn,charlotteryoo,jungwoo during the Summer '08 term at Penn State.

Page1 / 5

IST210 LAB5 - Lab 5 1) Input SELECT employee_id, last_name,

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online