Viewing 15 posts - 1,741 through 1,755 (of 2,463 total)
... and for a bonus answer. Because of the XML data structures/schemas I deal with I can get away with the lazy guy technique of "*:". This is not a...
-- Itzik Ben-Gan 2001
March 5, 2015 at 1:48 pm
First, welcome to SSC! The sample data you provided was very helpful. In the future try to include some DDL to create the table you are working with. Today I...
-- Itzik Ben-Gan 2001
March 5, 2015 at 1:34 pm
To expand on what Nevyn said, they will only have access to Master.
-- Itzik Ben-Gan 2001
March 5, 2015 at 1:20 pm
Chris, Jeff...
If I understand the OP correctly, they could not solve this problem with ISNULL or COALESCE alone because of the awkward data type requirement.
Example:
DECLARE
@x1 varchar(10) = NULL,
@x2...
-- Itzik Ben-Gan 2001
March 5, 2015 at 1:06 pm
sureshjevani 78421 (3/5/2015)
-- Itzik Ben-Gan 2001
March 5, 2015 at 12:29 pm
TheSQLGuru (3/4/2015)
Nevyn (3/4/2015)
SELECT PERSID,
CASE MAX(CASE DUESTATUS
WHEN 'Overdue' THEN 2
WHEN 'DUE' THEN 1
ELSE 0
END)
WHEN 2 THEN 'Overdue'
WHEN 1 THEN 'Due'
ELSE 'Unknown'
END DUESTATUS,
CASE MAX(CASE...
-- Itzik Ben-Gan 2001
March 4, 2015 at 1:58 pm
I personally hate cursors because the syntax is bloated, counter-intuitive and just plain ridiculous. I have been writing SQL for 15+ years and still need to reference Books online or...
-- Itzik Ben-Gan 2001
March 4, 2015 at 1:53 pm
DerbyNeal (2/25/2015)
You would handle this in the default value for each child parameter. Make the default value the same as the available values
Hi Alan,
Thank you for your reply, I appreciate...
-- Itzik Ben-Gan 2001
February 25, 2015 at 6:28 pm
Sean Lange (1/30/2015)
Jeff Moden (1/30/2015)
Sean Lange (1/30/2015)
Jeff Moden (1/29/2015)
Sean Lange (1/29/2015)
Alan.B (1/29/2015)
I am certainly not anywhere at the same DBA skill level as say Jeff, Gail or Sean...
Gosh I am...
-- Itzik Ben-Gan 2001
February 24, 2015 at 10:49 pm
Jeff Moden (1/29/2015)
Sean Lange (1/29/2015)
Alan.B (1/29/2015)
I am certainly not anywhere at the same DBA skill level as say Jeff, Gail or Sean...
Gosh I am humbled to be grouped with those...
-- Itzik Ben-Gan 2001
February 24, 2015 at 10:23 pm
Sean Lange (1/29/2015)
Alan.B (1/29/2015)
I am certainly not anywhere at the same DBA skill level as say Jeff, Gail or Sean...
Gosh I am humbled to be grouped with those two in...
-- Itzik Ben-Gan 2001
February 24, 2015 at 10:20 pm
I have created a report that contains a cascading drop-down. My problem is, when selections are changed/updated
on the parent (Customer Stopped Status) drop-down I need all of the resulting...
-- Itzik Ben-Gan 2001
February 24, 2015 at 3:39 pm
Do you have any DDL? Sample data? Example of the desired output?
-- Itzik Ben-Gan 2001
February 24, 2015 at 3:30 pm
ChrisM@Work (2/24/2015)
SQLRNNR (2/24/2015)
ChrisM@Work (2/24/2015)
Dogma spawns bad code as efficiently as laziness and ignorance.Nice. Great quote. I'm gonna use it now.:-D
That’s Plan B. Plan A was one of those...
-- Itzik Ben-Gan 2001
February 24, 2015 at 12:14 pm
PHYData DBA (2/24/2015)
I stopped at the 5th time I saw "Select *" used in the code for an article about...
-- Itzik Ben-Gan 2001
February 24, 2015 at 11:10 am
Viewing 15 posts - 1,741 through 1,755 (of 2,463 total)