Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I have as asp c# project. I wrote a stored procedure but I have a problem with the stored procedure's view.
select PROJE.AD     ,ISGUCU.islem1 as work1    ,ISGUCU.islem2 as work2,    ISGUCU.islem3 as work3 from ISGUCU inner join PROJE on ISGUCU.PROJE_ID=PROJE.ID 

this view is in my sp, but I want this view.

Im trying to do this view but no success
select detay,ad from 
( 
select ISGUCU.islem1    ,ISGUCUislem2     ,ISGUCU.islem3 from PERSONEL inner join ISGUCU on PERSONEL.ID=ISGUCU.PERSONEL_ID inner join PROJE on ISGUCU.PROJE_ID=T_PROJE.ID 
)as sorun 
unpivot 
( 
ad 
for detay in 
(islem1 islem2,islem3 ) 
)AS DEVAM 


help please, I don't this view http://c1302.hizliresim.com/16/l/k7wvr.png[^]
Posted
Updated 18-Feb-13 11:20am
v6
Comments
Hasham Ahmad 18-Feb-13 14:34pm    
can you please explain the scenario which you are trying to implement? also what is the error you are facing? I am unable to understand and test your scenario as I have no clue of the table structure you are following or the condition you are trying to implement
Ccsnow 18-Feb-13 14:52pm    
Hi ahmet, firstly sorry for my bad english :)
THEN,i dont give error message. i exec my sp i saw this http://b1302.hizliresim.com/16/l/k83w2.png but i dont want to this view ,,,, i want to view this http://c1302.hizliresim.com/16/l/k7wvr.png . it's different. this view so necessary for me.
Shanalal Kasim 20-Feb-13 1:49am    
Provide your table structure with sample data
Ccsnow 20-Feb-13 2:11am    
but how? example pls :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900