Viewing 15 posts - 2,836 through 2,850 (of 7,609 total)
FYI, just in case you care, I was able to get my code fully corrected.
April 18, 2019 at 8:33 pm
I personally wouldn't use "+2", as it's nebulous unless you already know what it's doing; instead, I'd use the actual base date. And, if you shift from Excel, the base...
April 18, 2019 at 6:51 pm
Under no circumstances should you use the actual SSN to link accounts. You might have to store the SSN in one place, but you sure don't have to store it...
April 18, 2019 at 4:40 pm
Sorry, I thought you only wanted it down to the minute based on your initial description
duration in terms of minutes
April 17, 2019 at 5:52 pm
SELECT SUM(DATEDIFF(MINUTE, '1899-12-30', duration)) AS duration_in_mins
April 17, 2019 at 4:39 pm
SELECT emailaddress, COUNT(DISTINCT emailID) AS emailID_Count
FROM ##myTable
GROUP BY emailaddress
HAVING COUNT(DISTINCT emailID) > 1
April 16, 2019 at 4:45 pm
Table "C" only has each unique Name and EIN combination only 1 time, no matter how many fiscal years or amounts it has. That't the whole point of the "C"...
April 15, 2019 at 9:14 pm
You can use either VALUES or SELECT, you can't combine them:
Insert into Cntrl.tbl_Entity_master
select distinct [Entity Name], [Entity EIN] from B
April 15, 2019 at 6:53 pm
Yep, just create another table.
CREATE TABLE dbo.Entity_master (
[Entity Name] nvarchar(60) NOT NULL, [Entity EIN] char(10) /*or whatever*/ NOT NULL,
CONSTRAINT Entity_master__PK PRIMARY KEY ( [Entity Name], [Entity EIN] )
)
April 15, 2019 at 6:41 pm
Itzik Ben-Gan books and/or videos.
Books will typically you a much more in-depth knowledge. If you'd rather just have an overview level of knowledge, then a video(s) would work.
April 15, 2019 at 6:13 pm
We really need to see the execution plan. Estimated is probably good enough, although actual is better.
April 15, 2019 at 6:12 pm
You need a separate table to specify a unique entry for ( [Entity Name], [Entity EIN] ).
(Actually, hopefully EIN by itself would be unique. If it is, use just that. ...
April 15, 2019 at 6:08 pm
Which specific brand of SQL? MySQL? SQL Server? Oracle (not likely in a 2-person shop, too expensive)?
April 15, 2019 at 2:28 pm
You can't pass expressions as parameter values. You need to resolve the expression yourself and pass only a single (scalar) value. For example:
DECLARE @start_date date
DECLARE @end_date date
SET @start_date = DATEADD(MONTH,...
April 12, 2019 at 3:33 pm
I don't know that you'll be able to fix it, particularly without the details of how the "standard audit dates" are maintained.
It seems like this is an integrity check to...
April 12, 2019 at 3:25 pm
Viewing 15 posts - 2,836 through 2,850 (of 7,609 total)