Viewing 15 posts - 1,876 through 1,890 (of 10,144 total)
dprasannain (12/10/2015)
Why doesn't this query return's any value . Whats wrong with this querySelect * from #emps Where EN IN (@Names)
- because @Names isn't the comma-delimited list of string values...
December 10, 2015 at 8:31 am
dprasannain (12/10/2015)
Hello Experts,I have a table with EmployeeNames as below which is a varchar column
EmployeeNames
---------------
A
B
C
D
How do i get the output as 'A','B','C','D' using coalesce function. Kindly help
Is the use of...
December 10, 2015 at 6:43 am
Jeff Moden (12/9/2015)
ChrisM@Work (12/9/2015)
suvesh.sonker 2691 (12/9/2015)
-- Ten digitDeclare @field as varchar(20) = '559'
Select Replace(right(replicate(' ',10) + @field ,10),' ','0')
In what circumstances might this be preferable to the simpler SELECT RIGHT('0000000000'+@field,10)?
When...
December 10, 2015 at 6:40 am
hazeleyre_23 (12/10/2015)
thank you for your reply.
I have a start roster date however if someone works 21:00 - 06:00 then I need the date date to change to the next day.
i.e...
December 10, 2015 at 5:24 am
suvesh.sonker 2691 (12/9/2015)
-- Ten digitDeclare @field as varchar(20) = '559'
Select Replace(right(replicate(' ',10) + @field ,10),' ','0')
In what circumstances might this be preferable to the simpler SELECT RIGHT('0000000000'+@field,10)?
December 9, 2015 at 7:39 am
serg-52 (12/9/2015)
December 9, 2015 at 6:15 am
Aditya Daruka (12/8/2015)
DECLARE @T TABLE (Id INT IDENTITY(1,1) PRIMARY KEY, CategoryId INT NULL, SKU VARCHAR(60) NOT NULL)
INSERT INTO @T ( CategoryId, SKU)
SELECT 3200, '978-654-321' UNION...
December 9, 2015 at 3:39 am
chill-1062987 (12/8/2015)
December 9, 2015 at 2:20 am
Interesting...but have a play with this, which could be converted into an inline table-valued function:
-- SET DATEFIRST 7 = SUNDAY
SELECT DATENAME(DW,'18991231') -- sunday
-- count the number of whole weeks between...
December 8, 2015 at 9:32 am
-- Set up sample data
WITH Sampledata AS (
SELECT *
FROM (VALUES
(1, 'A', 'A', 'C', 'B', 'B', 'B', 'A', 'C', 'D'),
(2, 'B', 'A', 'C', 'A', 'C', 'A', 'A', 'B', 'B'),
(3,...
December 7, 2015 at 5:48 am
axaeffect 37346 (12/4/2015)
I'm querying cube my last update like this :
SELECT [CATALOG_NAME], [CUBE_NAME], [LAST_DATA_UPDATE]
FROM $System.MDSCHEMA_CUBES
I intend to add 8 hour to column LAST_DATA_UPDATE,
using DATEADD like this
SELECT [CATALOG_NAME], [CUBE_NAME],...
December 4, 2015 at 3:22 am
Sean Lange (12/3/2015)
December 3, 2015 at 7:42 am
Occasionally there's a requirement for elapsed time as years, months, days, hours, minutes, seconds and milliseconds, such that if you were to add all of these time fractions to the...
December 3, 2015 at 6:01 am
Shouldn't you be left-joining data to events?
December 2, 2015 at 9:31 am
TomThomson (12/1/2015)
Ed Wagner (12/1/2015)
GilaMonster (12/1/2015)
Ed Wagner (12/1/2015)
They appear to have a one-shot use though, before disappearing to somewhere else.
Probably something to do with collapsing the quantum mechanical wave function. Using...
December 1, 2015 at 7:01 am
Viewing 15 posts - 1,876 through 1,890 (of 10,144 total)