Click here to Skip to main content
15,899,023 members
Home / Discussions / Database
   

Database

 
GeneralRe: Advice for product manager Pin
i.j.russell28-Feb-10 5:33
i.j.russell28-Feb-10 5:33 
GeneralRe: Advice for product manager Pin
treefirmy28-Feb-10 5:40
treefirmy28-Feb-10 5:40 
GeneralRe: Advice for product manager Pin
i.j.russell28-Feb-10 5:58
i.j.russell28-Feb-10 5:58 
GeneralRe: Advice for product manager Pin
treefirmy28-Feb-10 6:13
treefirmy28-Feb-10 6:13 
GeneralRe: Advice for product manager Pin
i.j.russell28-Feb-10 7:08
i.j.russell28-Feb-10 7:08 
GeneralRe: Advice for product manager Pin
Mycroft Holmes28-Feb-10 10:58
professionalMycroft Holmes28-Feb-10 10:58 
GeneralRe: Advice for product manager Pin
jgrogan17-Dec-10 3:34
jgrogan17-Dec-10 3:34 
Questionquestion in regard to updating using mssql Pin
tonyonlinux26-Feb-10 18:19
tonyonlinux26-Feb-10 18:19 
AnswerRe: question in regard to updating using mssql Pin
R. Giskard Reventlov26-Feb-10 19:54
R. Giskard Reventlov26-Feb-10 19:54 
AnswerRe: question in regard to updating using mssql Pin
Mycroft Holmes26-Feb-10 23:28
professionalMycroft Holmes26-Feb-10 23:28 
Questionerror message 2754 Pin
reza assar26-Feb-10 9:44
reza assar26-Feb-10 9:44 
AnswerRe: error message 2754 Pin
Mycroft Holmes26-Feb-10 11:10
professionalMycroft Holmes26-Feb-10 11:10 
GeneralRe: error message 2754 Pin
reza assar28-Feb-10 2:11
reza assar28-Feb-10 2:11 
GeneralRe: error message 2754 Pin
Mycroft Holmes28-Feb-10 3:44
professionalMycroft Holmes28-Feb-10 3:44 
AnswerRe: error message 2754 Pin
reza assar11-Apr-10 9:29
reza assar11-Apr-10 9:29 
QuestionT-SQL Table Variable - Create a column for each row in a table Pin
kilkfoe126-Feb-10 8:00
kilkfoe126-Feb-10 8:00 
AnswerRe: T-SQL Table Variable - Create a column for each row in a table Pin
SilimSayo26-Feb-10 9:20
SilimSayo26-Feb-10 9:20 
AnswerRe: T-SQL Table Variable - Create a column for each row in a table Pin
Tim Carmichael26-Feb-10 9:22
Tim Carmichael26-Feb-10 9:22 
GeneralRe: T-SQL Table Variable - Create a column for each row in a table Pin
Mycroft Holmes26-Feb-10 10:59
professionalMycroft Holmes26-Feb-10 10:59 
AnswerRe: T-SQL Table Variable - Create a column for each row in a table Pin
Mycroft Holmes26-Feb-10 11:03
professionalMycroft Holmes26-Feb-10 11:03 
GeneralRe: T-SQL Table Variable - Create a column for each row in a table Pin
kilkfoe12-Mar-10 11:10
kilkfoe12-Mar-10 11:10 
Questionthe order by clause is invalid in views inline functions ... Pin
Majid Shahabfar26-Feb-10 3:37
Majid Shahabfar26-Feb-10 3:37 
SELECT	PD_Users.FirstName as FirstName, PD_Users.LastName as LastName, PD_Users.UserName as UserName, PD_Users.CityID as CityID, 
	        PD_Cities.CityName as CityName, aspnet_Membership.CreateDate as CreateDate,
        (SELECT COUNT(*) FROM PD_Articles WHERE  (PD_Users.UserName = UserName)) AS ArticleCount,
        (SELECT COUNT(*) FROM PD_News WHERE  (PD_Users.UserName = SenderName AND IsDevNews = 1)) AS NewsCount,
        (SELECT COUNT(*) FROM PD_News WHERE  (PD_Users.UserName = SenderName AND IsDevNews = 0)) AS ITNewsCount,
        (SELECT COUNT(*) FROM  PD_ForumMessage WHERE (PD_Users.UserName = UserName)) AS MessageCount,
        CASE WHEN aspnet_Users.LastActivityDate > @DateActive THEN cast(1 as bit) ELSE cast(0 as bit) end AS IsOnline,
		ROW_NUMBER() OVER (ORDER BY aspnet_Membership.CreateDate ) AS RowNumber
			
	FROM	aspnet_Users INNER JOIN aspnet_Membership ON aspnet_Users.UserId = aspnet_Membership.UserId INNER JOIN
                      PD_Users INNER JOIN PD_Cities ON PD_Users.CityID = PD_Cities.CityId ON aspnet_Users.UserName = PD_Users.UserName
    WHERE (@LastName = PD_Users.LastName  OR (@LastName = '' AND 1=1))    
          AND (@UserName = PD_Users.UserName OR (@UserName = '' AND 1=1))
          AND (@CityID = PD_Users.CityID OR (@CityID = -1 AND 1=1))
          AND (@UserStatus = (CASE WHEN aspnet_Users.LastActivityDate > @DateActive THEN cast(1 as bit) ELSE cast(0 as bit) end) OR (@UserStatus = 0 AND 1=1))                
     ORDER BY PD_Users.FirstName DESC     



I got the error: the order by clause is invalid in views inline functions ...

do you have any idea?
QuestionRe: the order by clause is invalid in views inline functions ... Pin
i.j.russell26-Feb-10 4:35
i.j.russell26-Feb-10 4:35 
QuestionRe: the order by clause is invalid in views inline functions ... Pin
Chris Meech26-Feb-10 8:56
Chris Meech26-Feb-10 8:56 
AnswerRe: the order by clause is invalid in views inline functions ... Pin
Majid Shahabfar26-Feb-10 21:53
Majid Shahabfar26-Feb-10 21:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.