AKB Forums

Go Back   AKB Forums > Technical sections > Algorithms
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Algorithms The source of algorithms for your project

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Jul 21, 2005, 17:54  
Silence
 
Moonlight's Avatar
 
Join Date: Nov 2004
Location: back to meta level
Posts: 3,862
Blog Entries: 3
Rep Power: 4
Reputation: 144
Send a message via Skype™ to Moonlight
sql task. sos plz!

Description of the application. The following relational schema is used to maintain stock
price information.
stocks (skey, issued)

For each stock in the database, a unique identifier (skey, data type varchar2(10)) and
the date the stock was issued (issued, data type date) is stored.

stockdev (skey, tdate, price)

This table stores the time series of the diferent stock prices. For each stock referenced
by skey and trading day (tdate, data type date) the price (price, data type number)
is stored.

Compute the covariance of the time series of the stocks 'oracle' and 'ibm'.
Hint: In order to compute the covariance of two random variables you may use the
formula cov(X; Y ) = E(X  Y )
---------------------------
i got some ideas, but noth comes out

SELECT (SUM ( x * y ) - SUM ( y ) * SUM ( x ) * SUM ( x ) / n) / n

FROM stockdev
where ....?

but duno how to tell, that x is skey "oracle'-s price & y - ibm's. price1, price2??

was hinted to put subqueries into the cov formula:

SELECT (SUM (select price from stockdev where skey='oracle' AND tdate BETWEEN issuedate AND ??

or group by tdate?

how to tell that it's time series & not 1
can one say MAX(date) meaning the last date?
no, you should sort in order to get last date
Silence (07:37 PM) :
nasty.. group by won't do?\
__________________
Nothing is eternal under the Moon…

Miacum.ru
Moonlight is offline   Reply With Quote Quote selected
Old Jul 22, 2005, 13:49   #16
Silence
 
Moonlight's Avatar
 
Join Date: Nov 2004
Location: back to meta level
Posts: 3,862
Blog Entries: 3
Rep Power: 4
Reputation: 144
Send a message via Skype™ to Moonlight
Quote:
Originally Posted by accemic26
что есть студентка у которой 4-е мажера ?
accemic, ti ne verish v moe real'no sushetvovanie na Zemle? spustis' s Luni

Obelix jan, senks! no examen 4 chisa nazad sdala) nikakix php codes toli qsl queries, moi mozgi perekluchilis' uje na preis- und allokationstheorie:P
__________________
Nothing is eternal under the Moon…

Miacum.ru
Moonlight is offline   Reply With Quote Quote selected
Old Jul 22, 2005, 13:55   #17
панаехавший
 
Obelix's Avatar
 
Join Date: Jun 2003
Location: форпост
Posts: 4,001
Rep Power: 5
Reputation: 10
Send a message via ICQ to Obelix
)

Кстати, можно один неприличный вопрос я вот долго пытаюсь понять на чего это ты учишся и никак не пойму
__________________
Իսկ ԴՈՒ արդեն վաճառե՞լ ես Հայրենիքդ ռուսներին:

My Exchange Rate Monitor | Իմ Արտարժույթի Մոնիտորը

Obelix is offline   Reply With Quote Quote selected
Old Jul 22, 2005, 14:12   #18
Silence
 
Moonlight's Avatar
 
Join Date: Nov 2004
Location: back to meta level
Posts: 3,862
Blog Entries: 3
Rep Power: 4
Reputation: 144
Send a message via Skype™ to Moonlight
oy dumaesh ya ponimayu? int'l masters' prog takaya, chtob poluchit 1 degree, nado min 3, max 4 majors zakonchit'. ideya po idee super, tol'ko organizovali xrenovo, studenti libo muchayut'ca, lubo radi vozmojnosti jit' v berline i zakanchivayut' za 6 let pripevayushi vmesto obichnogo 2-yr masters.

look http://www.wiwi.hu-berlin.de/mems/
iz 3 fields of spec doljni vibrat' min 1 major s kajdogo. tk kak v yerevane uje got kibernetik-ekonomist, a eto po suti soderjit i Econometric Methods, i Multivariate Statistical Analysis, i
Operations Research. so ot Quantitative Methods dla menya novoe tol'ko Information Systems, chto i vibrala kak 1 mojor. i esho u mya Entrepreneurship, Finance and Banking, Advanced Microeconomic Analysis. esli vijit', potom budet kruto..

kstati, accemik, esli ti esho tut, ves'ma rekomenduyu te. s MEMS u te ne ostanet'ca nikakoy otrecatel'noy energii /i ne tol'ko otrecatel'noy/ chtob na golovu forumchan izlit', da i ne budet u te stol'ko vremeni na forum:P
__________________
Nothing is eternal under the Moon…

Miacum.ru
Moonlight is offline   Reply With Quote Quote selected
Old Jul 22, 2005, 14:14   #19
Silence
 
Moonlight's Avatar
 
Join Date: Nov 2004
Location: back to meta level
Posts: 3,862
Blog Entries: 3
Rep Power: 4
Reputation: 144
Send a message via Skype™ to Moonlight
a vaashe, vse eto fignya. moe prizvanie- psixolog
__________________
Nothing is eternal under the Moon…

Miacum.ru
Moonlight is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MS SQL RAM problem armen13 Languages, Compilers and Interpreters 6 Jan 12, 2005 10:19
Sql Collation Problem Masud Languages, Compilers and Interpreters 13 Mar 21, 2004 05:08
SQL first steps shatver Languages, Compilers and Interpreters 13 Nov 13, 2002 18:35
sql Paloma Languages, Compilers and Interpreters 9 Oct 20, 2002 13:32
Mojno li v VB kod vstavit sql zapros serty Languages, Compilers and Interpreters 1 Jul 18, 2002 10:41


All times are GMT. The time now is 12:15.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link