Viewing 15 posts - 1,636 through 1,650 (of 3,509 total)
Do you mean you want to use some code to identify the columns that only contain nulls so that you can skip them? If you know which columns are always...
February 19, 2017 at 6:35 pm
Ed,
Do you have an example of creating constraints the way Gail does, but naming them? The only examples I have seen require an ALTER TABLE ADD CONSTRAINT style... I...
February 19, 2017 at 4:56 pm
Probably a silly question, but if you don't name the foreign key, how do you drop it (the easy way)? Can you name the constraint when you declare it that...
February 19, 2017 at 12:57 pm
Does it work? Can you query the table to get the answers you need?
February 19, 2017 at 12:43 pm
Something like this?
CREATE TABLE dbo.Grades (
StudentID INT
,ExamID INT
,Grade TINYINT
,StudentStatus VARCHAR(10)
CONSTRAINT pkGrades PRIMARY KEY (StudentID, ExamID)
);
GO
ALTER TABLE dbo.Grades...
February 19, 2017 at 11:46 am
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
Viewing 15 posts - 1,636 through 1,650 (of 3,509 total)