Click here to Skip to main content
16,005,121 members
Home / Discussions / Database
   

Database

 
General[Solution] Re: "Cannot open database" if logging into SQL-server too fast Pin
Jörgen Sigvardsson16-Oct-09 1:05
Jörgen Sigvardsson16-Oct-09 1:05 
QuestionProduct Page From Database Pin
johntwebb15-Oct-09 15:25
johntwebb15-Oct-09 15:25 
AnswerRe: Product Page From Database Pin
Mycroft Holmes15-Oct-09 17:43
professionalMycroft Holmes15-Oct-09 17:43 
GeneralRe: Product Page From Database Pin
johntwebb16-Oct-09 0:51
johntwebb16-Oct-09 0:51 
QuestionDateTime from concatenated string Pin
Jay Royall15-Oct-09 4:05
Jay Royall15-Oct-09 4:05 
AnswerRe: DateTime from concatenated string Pin
Eddy Vluggen15-Oct-09 4:35
professionalEddy Vluggen15-Oct-09 4:35 
GeneralRe: DateTime from concatenated string Pin
Jay Royall15-Oct-09 4:41
Jay Royall15-Oct-09 4:41 
QuestionHelp with the Following SQl Logic Pin
Vimalsoft(Pty) Ltd15-Oct-09 2:11
professionalVimalsoft(Pty) Ltd15-Oct-09 2:11 
Good Day all

it is Probably a long day, i cant think Straight now.

i have a table that looks like this
Nodeid   Parent   Description     Type      Curr
==========================================================================================
89	 NULL     Compulsory        1	     10
90	  89	  B1052	            3	     10
2820      89	  One of	    2	     10
4113	89	  B1061	            3	     10 
2821	2820	  B1054             3	     10
2822	2820	  B1055             3	     10

Now the Bold Record needs to be on top of "One of" because the Parent is "Compulsary" with the "Parent" = 89. Now Even "One of " has the Same Parent as the Bold record but if its a "One of " and they have the same parent, then "One of " must always be below the record. What i mean is that if there is a record with a same parent but different Type , the one that has type 2 should go below the one that has type 3 in my query. here is my query

select distinct nP.id, nP.NodeID, nP.parent, nP.Description, nRef.ID refParent, np.type 
 from #Nodes nP
left outer join #Nodes nRef on nP.Parent = nRef.NodeID	-- look up the reference id of the parent
order by  refParent,nP.id,np.type desc


Thank you

Vuyiswa Maseko,

Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

AnswerRe: Help with the Following SQl Logic Pin
Vimalsoft(Pty) Ltd15-Oct-09 2:50
professionalVimalsoft(Pty) Ltd15-Oct-09 2:50 
QuestionNeed to add where rownum between 0 and 0 + 6 -1 in a query Pin
anbusenthil15-Oct-09 0:42
anbusenthil15-Oct-09 0:42 
AnswerRe: Need to add where rownum between 0 and 0 + 6 -1 in a query Pin
Niladri_Biswas30-Oct-09 21:11
Niladri_Biswas30-Oct-09 21:11 
QuestionReplication problem Pin
krishnaveer14-Oct-09 21:45
krishnaveer14-Oct-09 21:45 
Questionerror with OUTPUT Pin
Jassim Rahma14-Oct-09 8:58
Jassim Rahma14-Oct-09 8:58 
AnswerRe: error with OUTPUT Pin
Not Active14-Oct-09 10:24
mentorNot Active14-Oct-09 10:24 
QuestionNew memory manager for db4o object database Pin
netquake14-Oct-09 3:45
netquake14-Oct-09 3:45 
AnswerRe: New memory manager for db4o object database Pin
_Damian S_14-Oct-09 15:36
professional_Damian S_14-Oct-09 15:36 
QuestionReal time data transfer Pin
krishnaveer14-Oct-09 3:04
krishnaveer14-Oct-09 3:04 
AnswerRe: Real time data transfer Pin
J4amieC14-Oct-09 3:57
J4amieC14-Oct-09 3:57 
AnswerRe: Real time data transfer Pin
i.j.russell14-Oct-09 4:38
i.j.russell14-Oct-09 4:38 
AnswerRe: Real time data transfer Pin
Ashfield14-Oct-09 21:01
Ashfield14-Oct-09 21:01 
QuestionUpdating an Access database based on a sub-select Pin
Kyle Wood13-Oct-09 9:38
Kyle Wood13-Oct-09 9:38 
AnswerRe: Updating an Access database based on a sub-select Pin
Mycroft Holmes13-Oct-09 14:36
professionalMycroft Holmes13-Oct-09 14:36 
GeneralRe: Updating an Access database based on a sub-select Pin
Kyle Wood14-Oct-09 5:03
Kyle Wood14-Oct-09 5:03 
GeneralRe: Updating an Access database based on a sub-select Pin
Kyle Wood14-Oct-09 5:26
Kyle Wood14-Oct-09 5:26 
QuestionHow to Export a SQLExpress Database Pin
BoySetsFire13-Oct-09 6:54
BoySetsFire13-Oct-09 6:54 

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.