Viewing 15 posts - 4,381 through 4,395 (of 7,597 total)
If you want to use TBD/NA/etc., you might as well just a one-byte status column. You'll have up to 8 bits to designate just "how" the data is missing....
February 29, 2016 at 2:52 pm
I prefer to create those types of tables in the tempdb simply because that makes them less overall overhead on the SQL instance, because of the optimizations available only in...
February 29, 2016 at 2:36 pm
If it's 128 bytes or less, use CONTEXT_INFO(). That will persist for the life of the connection.
February 29, 2016 at 11:48 am
kenambrose (2/29/2016)
the relational term for that is "natural key".
I would never design a table structure without one. There ALWAYS is one, and if no-one can say...
February 29, 2016 at 11:25 am
j-1064772 (2/26/2016)
That doesn't get rid of NULLs. You'd have to LEFT JOIN to the other tables ... which produces NULL if you don't find a match!
Well you can always...
February 29, 2016 at 8:23 am
j-1064772 (2/26/2016)
kenambrose (2/26/2016)
You just take any column where you would otherwise need nulls, and make a related table for it and...
February 26, 2016 at 2:50 pm
roger.plowman (2/26/2016)
j-1064772 (2/26/2016)
roger.plowman (2/26/2016)
j-1064772 (2/26/2016)
February 26, 2016 at 2:30 pm
patrickmcginnis59 10839 (2/26/2016)
ScottPletcher (5/21/2015)
JediSQL (10/31/2014)
In most conditional statements, like WHERE clauses and IF statements, the conditional expression will return TRUE if and only if SQL Server considers the assertion provably...
February 26, 2016 at 12:32 pm
kenambrose (2/26/2016)
February 26, 2016 at 8:05 am
Btw, you really should strongly consider using ints to represent the StoreNumber and MerchantNumber -- the typical StoreNumberId and MerchantNumberId -- and looking up the 25-byte strings from a separate...
February 25, 2016 at 1:38 pm
Do you (almost) always access this table by StoreNumber and MerchantNumber? If so, cluster the table on those columns -- using the code below -- and try again. ...
February 25, 2016 at 1:26 pm
pietlinden (2/24/2016)
CREATE TABLE Student(
StudentID INT IDENTITY PRIMARY KEY,
FirstName VARCHAR(10) NOT NULL,
LastName VARCHAR(15) NOT NULL
);
GO
INSERT...
February 24, 2016 at 5:57 pm
Are the blocks specific to one issue or "shared" across issues? For now, I'll assume that Block is a completely independent entity. [If it's not, we'll need to...
February 24, 2016 at 2:10 pm
hlsc1983 (2/24/2016)
The reason why i am using exam_year is because the marksheet that the system must finally print reads something like this:...
February 24, 2016 at 12:31 pm
You need to use the actual semester number to record the grade. Year alone is not enough, nor is "odd/even" (bizarre!).
It really seems like this is some type of...
February 24, 2016 at 9:05 am
Viewing 15 posts - 4,381 through 4,395 (of 7,597 total)