Viewing 15 posts - 1,621 through 1,635 (of 3,489 total)
Taking a step backward, what is the table supposed to describe / store data about? Are the values {present, absent, disallowed} mutually exclusive?
February 19, 2017 at 11:03 am
Why not just put the "absent" or whatever in another column? If you try to stuff everything in the same column, querying your data is going to be a nightmare.
February 19, 2017 at 10:18 am
Does your parameter have a default set? If not, and you don't enter anything, the report won't run because the stored procedure can't return any data.
February 16, 2017 at 10:09 am
You've been here over 500 times and can't even post an answerable question with proper sample data??? Please read this article and repost.
February 8, 2017 at 11:49 pm
Create a variable to store the value and then pass it?
February 8, 2017 at 7:47 pm
Sounds like you could use a Windowing function to do this... this isn't right, but should give you some idea.
SELECT SuperTaskID
, SubTaskID
, ID
, TaskName
,...
February 8, 2017 at 5:49 pm
I tried running your CREATE TABLE and INSERT scripts, but they wouldn't compile. Oh wait, there were no scripts. Hence no useful reply,,,
February 6, 2017 at 9:26 pm
Maybe I should make this bigger...
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices...
February 6, 2017 at 1:16 pm
Welcome to SSC. Please help us help you and read this article: Forum Etiquette: How to post data/code on a forum to get the best help
Once we have...
February 6, 2017 at 10:36 am
You would just OUTER join your query to the table of internal users. The result would be that any external users would generate a NULL in the Users table, so...
February 6, 2017 at 10:04 am
If you're not allowed to create the function, ask someone with permissions to do it. If they want their answers, they're going to have to comply. =) The function can...
February 2, 2017 at 10:17 am
First step is to give whoever did this a beating. Databases like this are pretty much useless.
Here's most of a solution:
link to DelimitedSplit8K
DECLARE @MyString...
February 2, 2017 at 9:55 am
UPDATE TimeAccountMovement
SET ownerID = DutyRosterShift
WHERE A.orig_owner_ID = 999999
AND B.Orig_id = A.OwnerID;
February 2, 2017 at 12:57 am
January 30, 2017 at 4:33 pm
January 30, 2017 at 1:44 pm
Viewing 15 posts - 1,621 through 1,635 (of 3,489 total)