Viewing 15 posts - 241 through 255 (of 26,490 total)
May I ask why you are using CTEs in this manner when you could just use the tables themselves?
That was going to be my exact question.... or is...
February 11, 2020 at 4:03 am
May I ask why you are using CTEs in this manner when you could just use the tables themselves?
February 10, 2020 at 10:45 pm
Or, put the CTE with the select that is calling it:
With ProductName(ProductID, Description)
AS
(
SELECT ProductID, ProductName
FROM dbo.Products
)INSERT INTO ProductName ...
February 8, 2020 at 9:22 pm
To add to what Grant has stated, I agree that "new" voices are a bonus on any forum but I have seen some "new" people come in with some...
January 30, 2020 at 3:50 am
Should setup the place holder for the SSCFFL 2020 season. I will be back!
January 29, 2020 at 10:38 pm
DECLARE @Text nvarchar(250) = '\\ABC.dns.com\file_path1\filepath2\inc_files_20200122.xls'
SELECT SUBSTRING(REVERSE(@Text),CHARINDEX('.',REVERSE(@Text))+1,CHARINDEX('_',REVERSE(@Text))-CHARINDEX('.',REVERSE(@Text))-1)
This is much simpler and does not require the use of REVERSE: SELECT LEFT(RIGHT(@Text,12),8);
January 27, 2020 at 5:24 pm
SELECT LEFT(RIGHT(@Text,12),8);
Simple and to the point. I would put a comment with it to explain what is being so that someone with less SQL knowledge...
January 26, 2020 at 3:47 am
I took the time to look at the posing on ZipRecruiter and to me it seems rather vague as to what you are looking for in a candidate. I have...
January 26, 2020 at 3:42 am
You could also put it in a zip file and upload that to the site.
January 17, 2020 at 10:38 pm
Another option is to use dynamic SQL. For any input parameters that are null the AND clause could be removed. For example, if @PatientID were null you could remove...
January 16, 2020 at 8:41 pm
First, this is a catch all query. If either of the variables @PatientID or @CareProviderID are null you want to return all rows of data for PatientID and/or CareProviderID.
There is...
January 16, 2020 at 8:25 pm
Would help if you posted the actual execution plan, not a picture of the graphic. There isn't a lot of information available from the picture. Also seeing the code would...
January 16, 2020 at 6:47 pm
A question to be answered is this: How wide is each row of data? This will impact the number of rows of data in each data page. The fewer rows...
January 16, 2020 at 6:25 pm
Given that the table had no index at all, I didn't think in this case that making the clus index unique was necessary, particularly to the extent...
January 16, 2020 at 4:51 pm
Lynn Pettis, the difference in genetic structure between humans and chimps is around 4%. The pickyness of evolution is what gave rise to humans. One error in one line...
January 16, 2020 at 4:24 pm
Viewing 15 posts - 241 through 255 (of 26,490 total)