Click here to Skip to main content
15,922,696 members
Home / Discussions / Database
   

Database

 
QuestionSQL2005 UPDATE/DELETE TRIGGER, Knowing the difference Pin
MatthysDT4-May-09 1:10
MatthysDT4-May-09 1:10 
AnswerRe: SQL2005 UPDATE/DELETE TRIGGER, Knowing the difference Pin
Henry Minute4-May-09 2:59
Henry Minute4-May-09 2:59 
AnswerRe: SQL2005 UPDATE/DELETE TRIGGER, Knowing the difference Pin
MatthysDT4-May-09 8:16
MatthysDT4-May-09 8:16 
GeneralRe: SQL2005 UPDATE/DELETE TRIGGER, Knowing the difference Pin
Henry Minute4-May-09 8:23
Henry Minute4-May-09 8:23 
Questionpass Comparison Operators as parameter to query in C# Pin
obarahmeh4-May-09 0:18
obarahmeh4-May-09 0:18 
AnswerRe: pass Comparison Operators as parameter to query in C# Pin
Eddy Vluggen4-May-09 1:14
professionalEddy Vluggen4-May-09 1:14 
AnswerRe: pass Comparison Operators as parameter to query in C# Pin
PIEBALDconsult4-May-09 4:56
mvePIEBALDconsult4-May-09 4:56 
QuestionApl;y Distinct in query Pin
SreejithAchutan3-May-09 23:58
SreejithAchutan3-May-09 23:58 
Hi Friends,

I need an sql query help.i need to implement distinct staetement in my select query.I need the Assets.AsstId should be distinct in query.i attach the query below .please help me i need its urgently.The bolded value should be distinct.


SELECT aspnet_Users.UserName, AssetsSettingsTypes.AssetSettingsName, CONVERT(varchar(MAX), Assets.AssetShortDescrition)
AS AssetShortDescrition,Assets.AssetId, '<img src="' + CONVERT(varchar(MAX), Images.ThumbUrl) + '" width="100" height="100"/>' AS Image,
dbo.GetFriendlyDateTimeValue(UserAssets.CreationTime) AS TimeDiff, UserAssets.CreationTime as CreationTime,
'profileUser/Profileview.aspx?' + CONVERT(varchar(MAX), aspnet_Users.UserName) AS UrlProfile,
'profileUser/userPhotos.aspx?AssetId=' + CONVERT(varchar(MAX), UserAssets.AssetId)
+ '&UserName=' + aspnet_Users.UserName AS NavUrl, 'forntend/Commentview.aspx?' + CONVERT(varchar(MAX), UserAssets.AssetId)
+ '&' + CONVERT(varchar(MAX), UserAssets.UserId) AS UrlComment, '(' + CONVERT(varchar(MAX),
(SELECT COUNT(*) FROM UserComments WHERE (UserAssetId = UserAssets.UserAssetId)))+ ')' AS CommentCount
FROM AssetsSettingsData INNER JOIN
Assets ON AssetsSettingsData.AssetId = Assets.AssetId INNER JOIN
AssetsSettingsTypes ON AssetsSettingsData.AssetSettingsTypeId = AssetsSettingsTypes.AssetSettingsTypeId INNER JOIN
Images ON Assets.AssetId = Images.AssetId INNER JOIN
UserAssets ON Assets.AssetId = UserAssets.AssetId INNER JOIN
aspnet_Users ON UserAssets.UserId = aspnet_Users.UserId
WHERE (aspnet_Users.UserId = '9D4C2631-BB10-47C0-A4EE-5B1E92FE1AB9')
QuestionWhile Deploying the SSRS 2008 Project I am getting a Reporting Services Login Dialog box. Pin
JiteshK3-May-09 22:58
JiteshK3-May-09 22:58 
AnswerRe: While Deploying the SSRS 2008 Project I am getting a Reporting Services Login Dialog box. Pin
dirty124-May-09 13:15
dirty124-May-09 13:15 
GeneralRe: While Deploying the SSRS 2008 Project I am getting a Reporting Services Login Dialog box. Pin
JiteshK4-May-09 20:27
JiteshK4-May-09 20:27 
GeneralRe: While Deploying the SSRS 2008 Project I am getting a Reporting Services Login Dialog box. Pin
dirty125-May-09 2:42
dirty125-May-09 2:42 
AnswerRe: While Deploying the SSRS 2008 Project I am getting a Reporting Services Login Dialog box. Pin
elizabethjayne9171925-Jun-09 11:16
elizabethjayne9171925-Jun-09 11:16 
QuestionSQL SCRIPT Pin
kibromg3-May-09 22:57
kibromg3-May-09 22:57 
AnswerRe: SQL SCRIPT Pin
Mycroft Holmes3-May-09 23:24
professionalMycroft Holmes3-May-09 23:24 
GeneralRe: SQL SCRIPT Pin
kibromg3-May-09 23:35
kibromg3-May-09 23:35 
GeneralRe: SQL SCRIPT Pin
kibromg4-May-09 0:16
kibromg4-May-09 0:16 
GeneralRe: SQL SCRIPT Pin
kibromg4-May-09 0:45
kibromg4-May-09 0:45 
AnswerRe: SQL SCRIPT Pin
PIEBALDconsult4-May-09 5:44
mvePIEBALDconsult4-May-09 5:44 
QuestionHow to Show Vertical Text in SQL Server 2008 Reporting Services Pin
JiteshK3-May-09 22:54
JiteshK3-May-09 22:54 
AnswerRe: How to Show Vertical Text in SQL Server 2008 Reporting Services Pin
mcb2k310-Jun-09 9:07
mcb2k310-Jun-09 9:07 
Questiondocumentating SQL Server 2005/2008 Pin
Amit Chaudhary3-May-09 21:38
Amit Chaudhary3-May-09 21:38 
AnswerRe: documentating SQL Server 2005/2008 Pin
Eddy Vluggen3-May-09 22:37
professionalEddy Vluggen3-May-09 22:37 
Questionis a View faster than a simple Query Pin
εїзεїзεїз3-May-09 20:22
εїзεїзεїз3-May-09 20:22 
AnswerRe: is a View faster than a simple Query Pin
saanj3-May-09 23:07
saanj3-May-09 23:07 

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.