help pls
if u look at the code the inner select code it returns the first record that match the where case,the outer select use that result to find the description and userref,this is my version of code..select...
View Articlehelp pls
Please try to post your query in this format (use the insert code block):select mh.EntityRef, mh.Number, Min_historytimestamp, mh.description, mh.UserRef --INTO #TEMP1from mha innerjoin (select...
View Articlehelp pls
As mentioned by Cool Mind (I like this name) please post DDL script, sample data and expected output.Balmukund Lakhani | Please mark solved if I've answered your question, vote for it as helpful to...
View Articlehelp pls
What's your expected output? Partition by on what column? Please provide some more information and data.
View Articlehelp pls
HiPlease help me to rewrite the code using partition by select mh.EntityRef, mh.Number, Min_historytimestamp, mh.description, mh.UserRef--INTO #TEMP1from mha innerjoin ( select EntityRef,...
View Article
More Pages to Explore .....