Viewing 15 posts - 11,146 through 11,160 (of 15,376 total)
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
kevmck (7/30/2012)
July 30, 2012 at 3:22 pm
Are you trying to figure out which tier a person should belong to? In other words this sounds like you are trying to write a GetPersonTier function or something like...
July 30, 2012 at 2:17 pm
Abu Dina (7/30/2012)
July 30, 2012 at 1:46 pm
Luis Cazares (7/30/2012)
Thanks Sean, but I was joking with this because I'm not sure palindromes count as a "practical application".
Well of course but it was rather fun to write in...
July 30, 2012 at 1:44 pm
Viewing 15 posts - 11,146 through 11,160 (of 15,376 total)