Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 simple % return required

Author  Topic 

anandbohra
Starting Member

4 Posts

Posted - 2007-06-12 : 04:28:27
hi all
i am totally new to SQL (just started classes) but familiar with EXCEL
so i am trying to use EXCEL as front head & sql as data storage. EXCEL will fetch data from sql in Pivot table or through connectivity.
now coming to the point my query is
in SQL table i import this file Daily (no change in format every thing is unique means no replication of scrip in a day
data will look like (if you aware about NSE cash market bhavcopy in CSV)

Scrip--type--Closeprice--timestamp (only few which i need)
ABB--EQ--500--01/01/2007 (Eq is for Equity & gs stands for Govt. sec)
ABB-GS--100-01/01/2007 (means no replication in a day)
next day
ABB--EQ--550--01/01/2007
ABB--GS--90--01/01/2007

so on i will import the bhavcopy in SQL
now i want one report which shows me
Scrip--% Change
ABB--EQ--10
ABB--GS--(-10)

how to achive the same.

hope this will be left hands job for genius people like you
i can do in excel but excel is not for data storage that is why i start taking interest in SQL








Anand Manmohan Bohra
   

- Advertisement -