Viewing 15 posts - 436 through 450 (of 4,087 total)
This looks like it works...
CREATE TABLE #Test(
col1 int,
col2 int,
col3 int);
GO
INSERT INTO #Test VALUES
(1, 203, 1232)
,(2, null, 2343)
,(3, 502, 15566)
,(4, null, 4566)
,(5, null, 4545)
,(6, 601, 4545)
,(7,...
August 29, 2019 at 3:32 pm
This is the approach. You can use CHAR instead of BINARY, but then you have to worry about padding the strings so that the MAX()
works correctly. You can also...
August 28, 2019 at 10:17 pm
SQL Tables represent sets which are UNORDERED. There is no concept of "values that exist right before it", because there is no concept of "before". You have to specify some...
August 28, 2019 at 9:18 pm
One of our groups is using MongoDB and we got a notice that we're evaluating making it more widely available. In the announcement was a link to a course we...
August 28, 2019 at 5:13 pm
This is a packing intervals problem, not a gaps and islands problem. The two are different, but related.
Please provide sample data and expected results. We can't run your query, because...
August 27, 2019 at 2:46 pm
Thanks again! So are you saying the table structure in my example would be OK for data storage, but instead of using checkboxes at the UI level, use a...
August 26, 2019 at 8:39 pm
Typically one would use a bit value setting to reduce space usage. For example:
languages int NOT NULL
You'd want a separate table with the language code values:
CREATE TABLE #language_codes (...
August 26, 2019 at 8:18 pm
This is interesting, how would I do this? Would I still have a field for each option? Or would I store a string of values into 1 table?
separate...
August 26, 2019 at 7:46 pm
I will be honest about this. I am one of the few people who actually sits down and reads ANSI/ISO standards. They are incredibly dull, and you need to...
August 26, 2019 at 7:32 pm
You've designed this in such a way that it's cumbersome to add new languages. Checkboxes requires you to update your web form and having a separate column requires you to...
August 26, 2019 at 7:14 pm
I should know the answer to these questions, but I'm having trouble with a couple of my queries.
First, my goal here is to compare data from a table in...
August 26, 2019 at 3:33 pm
Why are your seconds stored as strings? Convert them to integers, then this should do the trick.
SELECT *, [HH-MM-SS] = CAST(DATEADD(SECOND, l.Seconds, 0) AS time(0))
FROM...
August 20, 2019 at 2:48 pm
And yet another week of dealing with the "anti-virus" virus...
...
So how was your day?
Good and bad. worked a bit and then spent the last day and evening with...
August 16, 2019 at 7:22 pm
You haven't said what you are using to display this information. It may be (much) easier to do this in your presentation layer than the database layer.
Drew
August 16, 2019 at 7:13 pm
Speaking of website issues, is the bug where you have to unsubscribe from email notifications to a topic every time you reply going to be fixed?
I personally don't...
August 14, 2019 at 3:15 pm
Viewing 15 posts - 436 through 450 (of 4,087 total)