Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: SQL-Server ASP:NET
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 18-Feb-13 6:32am
Edited 18-Feb-13 11:20am
(no name)2.6K
v6
Comments
Hasham Ahmad at 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
Ahmet2009 at 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 at 20-Feb-13 1:49am
   
Provide your table structure with sample data
Ahmet2009 at 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)



Advertise | Privacy | Mobile
Web01 | 2.8.141022.2 | Last Updated 18 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100