Viewing 15 posts - 4,171 through 4,185 (of 8,753 total)
Steve Jones - SSC Editor (12/24/2015)
Date math is hardhttp://www.seattletimes.com/seattle-news/politics/inslee-error-releases-inmates-early-since-2002/
Banks seem to be capable of doing date math, I've for instance seen interests paid early
😎
December 24, 2015 at 9:18 am
jasona.work (12/24/2015)
December 24, 2015 at 7:38 am
For fun, here is an alternative method
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.TBL_TESTDUPE_05') IS NOT NULL DROP TABLE dbo.TBL_TESTDUPE_05;
CREATE TABLE dbo.TBL_TESTDUPE_05
(
set_id CHAR(3)
,col1 ...
December 24, 2015 at 7:28 am
I second Jeff's suggestion in most cases but there are times when an additional table might be an overkill such as y/N for YES / NO etc. In those cases...
December 24, 2015 at 2:45 am
Quick suggestion
😎
DDL and Sample data
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.Main') IS NOT NULL DROP TABLE dbo.Main;
IF OBJECT_ID(N'dbo.Tags') IS NOT NULL DROP TABLE dbo.Tags;
IF OBJECT_ID(N'dbo.Docs') IS NOT NULL DROP TABLE dbo.Docs;
CREATE TABLE...
December 23, 2015 at 4:07 am
Sergiy (12/22/2015)
What is the difference how fast your query returns a result if you cannot be sure if it's correct?
😉
faster the better...........oops
😎
December 22, 2015 at 4:58 pm
Brandie Tarvin (12/22/2015)
Cancer cat (Formerly had a sarcoma removed) now needs to go back in for some surgical...
December 22, 2015 at 1:23 pm
jayaprabhalnt (12/22/2015)
Got it. It is working now.Thanks
Jayaprabha
Good stuff, care to share the solution?
😎
December 22, 2015 at 1:07 pm
stevennjuki (12/22/2015)
I am able to get various totals summed up from varying row numbers of this table
CREATE TABLE [dbo].[tb_a]([cl_t][datetime] NOT NULL ,[cl_a][decimal](18,5) NOT NULL) ON [PRIMARY]
like this...
December 22, 2015 at 1:06 pm
Michael L John (12/22/2015)
Eirikur Eiriksson (12/22/2015)
GilaMonster (12/22/2015)
Eirikur Eiriksson (12/22/2015)
December 22, 2015 at 1:02 pm
GilaMonster (12/22/2015)
Oh that one. I saw it before it went off the rails and decided I didn't want to get involved.Still, it's working so it can't be impossible... *angel*
Crossing the...
December 22, 2015 at 1:01 pm
GilaMonster (12/22/2015)
Eirikur Eiriksson (12/22/2015)
December 22, 2015 at 12:22 pm
ScottPletcher (12/22/2015)
Edit: Not at all "moving the goalposts". The only reason for the rule is the issue it causes if you get the type wrong, as I stated many...
December 22, 2015 at 12:10 pm
Viewing 15 posts - 4,171 through 4,185 (of 8,753 total)