Viewing 15 posts - 1,111 through 1,125 (of 1,228 total)
lmu92 (3/6/2010)
@Chris: You're using a CTE? How comes?
I've been studying your solutions mate - finally saw the light 😛
You've posted a third method for resolving this job, late on a...
March 7, 2010 at 1:51 am
lmu92 (3/6/2010)
clive-421796 (3/6/2010)
Would like to hear from the likes of Jeff Moden, Lynn Pettis, etc. if they have a solution for this.
I'm by far not at the level of Jeff...
March 6, 2010 at 3:28 pm
Here's a CROSS APPLY version of Jeff's derived table solution:
drop TABLE #AAATable
CREATE TABLE #AAATable(
[col1] [int] NULL,
...
March 6, 2010 at 1:14 am
There are two distinct stages to this problem, data selection, then transformation. This query makes a start on data selection based on Lutz' suggestion of using ROW_NUMBER():
DROP table #Accounts
create table...
March 6, 2010 at 12:54 am
vbprogrammer1986 (3/3/2010)
Can Also Use Top .
TOP1, preferably with ORDER BY regardless of whether or not the returned values are the same. Just good practice.
March 3, 2010 at 11:52 pm
Run this part:
select adminpermission from appadmin where addId=1
If the returned values are different, then you will have to decide which to use, using MIN()/MAX() or ROW_NUMBER() with OVER() or GROUP...
March 3, 2010 at 11:06 pm
lmu92 (3/2/2010)
Something like
SELECT *
FROM cElements A
LEFT JOIN sectionList D ON D.sectionID = A.sectionID
LEFT JOIN fList E ON E.fID...
March 2, 2010 at 3:27 pm
Magy (3/2/2010)
In English it would be like:
Is 2006 in the temp table? Then add this to the query....
Is 2007 in the temp table? ...
March 2, 2010 at 2:24 pm
pritesh-807803 (3/1/2010)
My input and output values are there in attached excel.
Pritesh, I know you've provided sample data in a spreadsheet, but I simply don't have the time to turn the...
March 1, 2010 at 11:28 pm
pritesh-807803 (3/1/2010)
My above posted query is wroking fine. I have problem with order by Status.
I wand distinct CandidateIDs from Candidate and CandidateProject table where i want to give...
March 1, 2010 at 10:59 pm
ma-516002 (2/28/2010)
Don't know what happened there. I recreated the database and everything works now 🙂 (Gremlins?)
Well done - but your observation that rebuilding the db solved the problem is almost...
February 28, 2010 at 10:28 am
ma-516002 (2/28/2010)
This looks like there is something missing to sp_executesql or the target procedure in...
February 28, 2010 at 7:23 am
ma-516002 (2/28/2010)
This looks like there is something missing to sp_executesql or the target procedure in...
February 28, 2010 at 7:03 am
ma-516002 (2/28/2010)
That statement is generated by System.Data.Common.DbCommand, you cannot modify it.
Thanks for the extra info.
I think the problem is with setting up the command string in your interface code....
February 28, 2010 at 5:11 am
ma-516002 (2/28/2010)
February 28, 2010 at 4:13 am
Viewing 15 posts - 1,111 through 1,125 (of 1,228 total)