Viewing 15 posts - 11,146 through 11,160 (of 15,381 total)
So your process is going to insert rows into the original table? And then you are going to select all the rows from the table regardless of which Customer IDs...
July 31, 2012 at 3:33 pm
I am a little late to this one but...
I need to return 12 months (12 records) per passed in Customer.
Your desired output does not come close to this.
CustID 1...
July 31, 2012 at 3:20 pm
The reason for the error has been identified.
Please tell me, what is the worng with SP?
However nobody really addressed this question. Honestly I see a lot of things not necessarily...
July 31, 2012 at 2:45 pm
Try running your code in an empty database. There are dozens of errors. It would also be preferred if you can use IFCode shortcuts (over on the left when posting)....
July 31, 2012 at 12:16 pm
Your post is pretty sparse on details but I think you should look into cross tabs (rows into columns). I have two links in my signature about this topic. If...
July 31, 2012 at 12:10 pm
CELKO (7/31/2012)
Check boxes? There are no such things in SQL You missed the...
July 31, 2012 at 10:27 am
Glad that we could help. We all have those facepalm moments. 😀
July 31, 2012 at 9:50 am
You can do it like this using cte's so you don't have to change your underlying data structures.
CREATE TABLE #MapIDs
(
WonkyID CHAR(8) NOT NULL,
Client VARCHAR(50) NULL,
Identifier1 VARCHAR(12) NULL,
Identifier2 VARCHAR(20) NULL,
CONSTRAINT...
July 31, 2012 at 9:22 am
sjerromeharris (7/31/2012)
Ooooh, that's brilliant! I'm great at writing loops at the best of times so this is fantastic.Thanks v much
You are welcome.
Next time you think about writing a loop,...
July 31, 2012 at 9:12 am
rummings (7/31/2012)
Delete From Survey_Response
I received:
Msg 547, Level 16, State 0, Line 1
The DELETE statement conflicted with the REFERENCE constraint "JOB_TICKET_surveyResponse_FK". The conflict occurred in database "WHDProd", table...
July 31, 2012 at 9:01 am
You absolutely do NOT need a loop for this. You need to group by the columns that can contain your duplicates.
select Name, StorageRef, COUNT(*)
from YourTable
group by Name, StorageRef
having COUNT(*) >...
July 31, 2012 at 8:58 am
I believe a recursive cte is what you are looking for. If you want some more specific help you need to post some details. Take a look at the first...
July 31, 2012 at 8:24 am
erics44 (7/31/2012)
Sean Lange (7/31/2012)
erics44 (7/31/2012)
if anyone has any ideas how to deal with someone like that then please let me know
That somewhat depends on how that person is viewed in...
July 31, 2012 at 8:11 am
The splitter that Lynn mentions is awesome at splitting strings. However it sounds like you are looping in the front end to get the selected values? Assuming that you are...
July 31, 2012 at 7:35 am
erics44 (7/31/2012)
if anyone has any ideas how to deal with someone like that then please let me know
That somewhat depends on how that person is viewed in the department/company. If...
July 31, 2012 at 7:19 am
Viewing 15 posts - 11,146 through 11,160 (of 15,381 total)