Viewing 15 posts - 3,421 through 3,435 (of 4,820 total)
lsalih (7/16/2015)
I have a query as following:
** Query***
With CTE1 (col1, col2, col3)
AS
(SELECT COL1, COL2, COL3
FROM TBL1 JOIN TBL2)
SELECT A.A, A.B, B.COL1, B.COL2
FROM TBL4 A JOIN CTE1 B ON...
July 16, 2015 at 8:13 am
GilaMonster (7/16/2015)
July 16, 2015 at 7:48 am
Bharatvip (7/15/2015)
July 16, 2015 at 7:40 am
jonathanm 4432 (7/15/2015)
Thank you for that. I will have to try to set up DBmail first. I don't believe we have that set yet. A lot of reports and just...
July 15, 2015 at 1:42 pm
rourrourlogan (7/15/2015)
July 15, 2015 at 1:32 pm
sql_novice_2007 (7/15/2015)
I am sorry following is the right query.SELECT * FROM tblNew a LEFT JOIN tblOld b
ON a.empId=b.empId WHERE a.deptId<>b.deptId
OR b.deptId is null
We have no way to know what your...
July 15, 2015 at 1:13 pm
demeritrious (7/15/2015)
July 15, 2015 at 12:50 pm
redmittens7 (7/15/2015)
I'm brand new to XML and I'm struggling to modify the T-SQL query below to return the results as XML.
SELECT ProductModelID, Name
FROM Production.ProductModel
WHERE ProductModelID IN...
July 15, 2015 at 11:43 am
WayneS (7/15/2015)
CREATE FUNCTION dbo._tTVFN_tEEst2 (@countryNr INT, @telNr NCHAR(30))
RETURNS...
July 15, 2015 at 10:06 am
dhanekulakalyan (7/15/2015)
Any thoughts on this ?
Try this:
Declare @a table (
id int,
data varchar(10)
);
insert into @a values(1,'data1')
insert into @a values(2,'data2')
insert into @a values(3,'data3')
insert into @a values(4,'data4');
Declare @b-2 table (
id int,
data varchar(10)
);
insert into...
July 15, 2015 at 8:18 am
Raymond van Laake (7/15/2015)
For the loop it should be the same:
DECLARE @a CHAR(30)DECLARE @b VARCHAR(30)
SET @a = 'hello'
SET @b = 'hello'
SELECT LEN(@a), LEN(@b)
results in 5 on both variables
That's not where...
July 15, 2015 at 7:53 am
Wayne,
Why NCHAR(30) instead of VARCHAR(30) ? For a phone number, it makes no sense to waste the extra byte per digit when you only need to account for...
July 15, 2015 at 7:34 am
farax_x (7/15/2015)
declare @tt table
( TagId int, TagType int, ReportId int)
INSERT...
July 15, 2015 at 7:04 am
jbalbo (7/14/2015)
SELECT
ParentObject,
STUFF((SELECT ', ' + [View As] FROM dbo.Signatures t2 WHERE t2.ParentObject = t1.ParentObject FOR XML...
July 15, 2015 at 6:47 am
rourrourlogan (7/14/2015)
here's an example of what I am trying to do.
--Exec Database.Employees
--Use Database
--Go
--Create PROCEDURE AEM.TempTable
--AS
--BEGIN
--Select * into #emptemp From Database.Employees
--End
--Select * From #emptemp
Is something like this possible? I can get...
July 15, 2015 at 6:37 am
Viewing 15 posts - 3,421 through 3,435 (of 4,820 total)