13.07.2015 Views

Software Engineering for Internet Applications - Student Community

Software Engineering for Internet Applications - Student Community

Software Engineering for Internet Applications - Student Community

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ReferencesEngagement ManagementSQL*Net. This is not the way! SQL is a very powerful language andthere is no need to bring in any other tools if what you want to do ismove data around within the RDBMS.This section was primarily authored by Cesar Brea.Most of this book is about building a great experience <strong>for</strong> the users.In parallel, however, it is important to ensure that you're creating agreat experience <strong>for</strong> your client and his or her sponsors during yourteam's engagement with this client. These are the folks who will paythe bills and sing your praises.Whether or not your praises get sung depends primarily on whetherthe application that you build delivers the benefits your client expects.Thus it is important at all times to keep in mind an answer to thequestion "What does my client expect?" One com<strong>for</strong>ting factor is thatyou have a lot of control over the client's expectations. You arepreparing the planning documents, you are writing the schedule, andyou are bringing agendas to meetings with clients.This chapter presents an engagement management worksheet, alightweight tool <strong>for</strong> managing your relationship with the client.Definitions:306• Organization - the company or non-profit corporation <strong>for</strong>whom you are building the application; if you're working <strong>for</strong>an enormous enterprise, e.g. a university or Fortune 500, itis probably best to put down a particular department ordivision as the organization• Sponsor - the person whose budget is paying <strong>for</strong> this, orwho is accountable <strong>for</strong> business results the applicationsupports; in some cases if you are working directly <strong>for</strong> thetop manager at a small organization the sponsor will be theboard of directors• Client - the manager, typically a subordinate of the sponsor,who is your day-to-day contactThe worksheet has five sections:• About the Organization• using only one SQL statement, create a table calledstock_prices with three columns: symbol, quote_date, price.Within this one statement, fill the table you're creating withone row per symbol in my_stocks. The date and pricecolumns should be filled with the current date and a nominalprice. Hint: select symbol, sysdate as quote_date, 31.415 asprice from my_stocks; .• create a new table:create table newly_acquired_stocks (symbol varchar(20) not null,n_shares integer not null,date_acquired date not null);• using a single insert into ... select ... statement (with aWHERE clause appropriate to your sample data), copyabout half the rows from my_stocks intonewly_acquired_stocksDB Exercise 3: JOINWith a single SQL statement JOINing my_stocks and stock_prices,produce a report showing symbol, number of shares, price per share,and current value.DB Exercise 4: OUTER JOINInsert a row into my_stocks. Rerun your query from the previousexercise. Notice that your new stock does not appear in the report.This is because you've JOINed them with the constraint that thesymbol appear in both tables.Modify your statement to use an OUTER JOIN instead so that you'llget a complete report of all your stocks, but won't get pricein<strong>for</strong>mation if none is available.DB Exercise 5: PL/SQLInspired by Wall Street's methods <strong>for</strong> valuing <strong>Internet</strong> companies,we've developed our own valuation method <strong>for</strong> this problem set: astock is valued at the sum of the ascii characters making up its43

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

Saved successfully!

Ooh no, something went wrong!