Viewing 15 posts - 31 through 45 (of 125 total)
shindle 17293 (6/15/2015)
DELETE x
...
June 16, 2015 at 3:00 am
koles2004 (6/11/2015)
A resolved yet !
You've found a solution? If so, please share it.
June 11, 2015 at 2:51 am
Would you be able to provide some DDL and sample data for this?
What data are you looking to use from the other 2 tables?
June 11, 2015 at 2:45 am
dwain.c (6/8/2015)
ChrisM@Work (6/8/2015)
This is a slightly different take on Dwain's method.Seems Dohsan gets the credit for that one. 🙂
hah I try my best Dwain!
June 9, 2015 at 1:00 am
dwain.c (6/7/2015)
reader97 (6/5/2015)
June 8, 2015 at 2:15 am
luissantos (5/28/2015)
I need to build TSQL query to return the Last unit Cost from my table of movement of goods SL (on CTE)
but the MAX(Datalc) must be Less or...
May 29, 2015 at 1:34 am
Small example
DECLARE @TestA TABLE
(
ID INT IDENTITY(1,1) NOT NULL,
Chuff CHAR(1) COLLATE SQL_Latin1_General_CP1_CI_AS
);
DECLARE @TestB TABLE
(
ID INT IDENTITY(1,1) NOT NULL,
Chuff CHAR(1) COLLATE SQL_Latin1_General_CP1_CS_AS
);
INSERT INTO @TestA (Chuff)
VALUES ('a'),('A'),('á'),('a'),('A'),('B'),('b'),('1'),('á');
INSERT INTO @TestB...
May 28, 2015 at 9:43 am
Collation will determine how data is sorted and compared, for example should case sensitivity be taken into account when comparing strings etc.
If in this case each column has a different...
May 28, 2015 at 9:36 am
daniel.globalstudio (5/28/2015)
SELECT pcm.CategoryId, pcm.ProductId, c.mlCode, mlc.code
FROM [cpr_data_bak].[dbo].[Product_Category_Mapping] AS pcm
JOIN [cpr_data_bak].[dbo].[Category]...
May 28, 2015 at 9:17 am
That's a function I use to generate a numbers table
this is the function below, I imagine some here have one with a few extra performance tweaks
CREATE FUNCTION [dbo].[GetNums]
(
@low AS BIGINT,
@high...
May 28, 2015 at 3:40 am
emadkhanqai (5/28/2015)
DECLARE @startDate date , @endDate date;
SET @startDate = ( SELECT proj_start_date FROM [BSD].[dbo].[d_project_p] WHERE proj_id = 1)
SET @endDate = ( SELECT proj_end_date FROM...
May 28, 2015 at 3:07 am
I can explain the code sample if you're unsure how it works.
The sample uses a tally or numbers table to help generate the date ranges from the date variables provided...
May 28, 2015 at 2:40 am
If the data you want is always separated by the and in this way, just add the spaces either side, which will eliminate any strings containing the letters and.
SELECTSQ1.SomeStuff
FROM
(
VALUES('Andrea'),
('Anderson'),
('England'),
('A and...
May 28, 2015 at 2:14 am
Just so I'm clear you wish the dates to display as Monday - Sunday, but if the fromDate is not a monday, you wish to start on that day and...
May 28, 2015 at 1:55 am
Would you be able to provide any sample DDL for the tables you are trying to update?
You guys are quick today!
May 27, 2015 at 7:20 am
Viewing 15 posts - 31 through 45 (of 125 total)