Viewing 15 posts - 2,746 through 2,760 (of 4,087 total)
Sergiy (3/31/2016)
drew.allen (3/31/2016)
March 31, 2016 at 7:22 pm
I recommend ALWAYS using UNC paths.
Drew
March 31, 2016 at 2:34 pm
Sergiy (3/30/2016)
1. Create a "translation" table:
CREATE TABLE #Mapping (
FromChar NCHAR(1) PRIMARY KEY,
ToChar NCHAR(1)
)
INSERT INTO #Mapping ( FromChar, ToChar )
SELECT 1, 'A'
UNION ALL
SELECT 2, 'B'
UNION ALL
SELECT...
March 31, 2016 at 2:32 pm
doasidont (3/31/2016)
couldn't I use the same 'Where In' clause to qualify (filter) 'Sales'.empID using 'WorkForce' empID? Workforce.empID lists unique ID's. If so,...
March 31, 2016 at 12:28 pm
Alan.B (3/31/2016)
Sergiy (3/30/2016)
1. Create a "translation" table:
CREATE TABLE #Mapping (
FromChar NCHAR(1) PRIMARY KEY,
ToChar NCHAR(1)
)
INSERT INTO #Mapping ( FromChar, ToChar )
SELECT 1, 'A'
UNION ALL
SELECT 2, 'B'
UNION ALL...
March 31, 2016 at 10:41 am
Michael L John (3/30/2016)
Maybe we can lobby for VI editor?
Seen eons ago on alt.religion.emacs
And the number of the beast is VI VI VI.
Drew
March 31, 2016 at 8:52 am
pietlinden (3/30/2016)
the DelimitedSplit8K would split out the string into individual characters, and then you could join that to the conversion...
March 30, 2016 at 10:57 am
Sergiy (3/29/2016)
'DY1' DayNo into nvarchar(4) column.It causes an implicit conversion and consequently, the warning.
If you either change the datatype to varchar(4) or use N'DY1' DayNo...
March 30, 2016 at 8:11 am
GilaMonster (3/30/2016)
I don't know what bo universe is, If it accesses SQL server, can you put the...
March 30, 2016 at 8:08 am
First, the WHERE clause in your subquery is turning your LEFT OUTER JOIN into an INNER JOIN. The purpose of using the LEFT OUTER JOIN in the first place...
March 29, 2016 at 3:33 pm
Phil Parkin (3/29/2016)
Alan.B (3/29/2016)
You would use AND.
SELECT vend_id, prod_id, pro_priceFROM products
WHERE prod_price <=5
AND vend_id IN (1001, 1002);
Disagree. This requires an OR.
select a from b where condition1
union (should probably be union...
March 29, 2016 at 11:08 am
Use the QUOTENAME function instead of hard-coding the quotes.
I also recommend that you use the XML string concatenator to create a dynamic table value constructor rather than using UNION all....
March 29, 2016 at 10:45 am
With LEFT and RIGHT the two sides represent independent sets, but with APPLY the RIGHT side can be dependent on the LEFT side. Since the right side IS dependent...
March 29, 2016 at 10:22 am
Eirikur Eiriksson (3/29/2016)
😎
SELECT
C.cust_id
,C.cust_name
,C.cust_state
...
March 29, 2016 at 8:46 am
SQL 2016 (3/29/2016)
SELECT cust_name,
cust_state,
(SELECT Count(*)
FROM orders
...
March 29, 2016 at 8:17 am
Viewing 15 posts - 2,746 through 2,760 (of 4,087 total)