Viewing 15 posts - 1 through 15 (of 49 total)
Alias name confused and mind thought it should be right join 🙂
December 17, 2019 at 6:18 am
Select M.*,L.Name,L.Company,L.Salary,L.ValidUser, Case when M.ID = R.ParentId then 'Parent' else 'Child' end as Relation
from @Logic L Join @Releation R On L.Id =R.ParentId
Join @master M On M.ID in (R.ChildId,R.ParentID)
May 8, 2015 at 7:07 am
Batch process means SSIS package ?
If you are using SSIS, recently I came across a situation that extracting data using a view from SSIS slower but running the same view...
April 17, 2013 at 2:43 am
Great explanation Hugo. Thanks.
Even I always use COUNT(1) though few times I heard both COUNT(*) and COUNT(1) are same. But today I more clear and thanks for you.
🙂
April 16, 2013 at 9:09 am
Hugo Kornelis (4/16/2013)
There are three variations of COUNT:
* COUNT(*) - returns the number of rows, regardless of content.
*...
April 16, 2013 at 7:57 am
Nice one Chris..
I Understood (Hope) the requirement after seeing the query from Chris... Still not able to bring all the rows.. Not able to get the ID's doesn't have any...
April 3, 2013 at 5:17 am
Yes as Vinu said we need a relationship between Term and Attend.
I have tried the below query and it is not exactly matching your requirement but it might help you...
Select...
April 3, 2013 at 1:35 am
Hi,
You can achieve this with Pivot as well..
SELECT Certyear, [HI-Master] , [HI-Instr] , [HI-Train]
FROM
(SELECT Certyear,CertCode,Quantity FROM Certification) C
PIVOT ( SUM (Quantity) FOR CertCode IN ( [HI-Master], [HI-Instr],...
April 2, 2013 at 3:12 am
Hi Ananda,
First delete statment can be done using a CTE like below...the below code might not exactly work for your requirement, please test it with select to match the count.
;with...
April 2, 2013 at 2:40 am
Nice Question.
SELECT * FROM tempdb.INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME LIKE '#TempQoD%'
March 15, 2013 at 12:37 am
It will make effect Kapil. Try the below...
As in the explanation the scope is only within the EXECUTE statement.
USE master;
-- Query#1
SELECT DB_NAME() DatabaseName1;
EXECUTE ('USE AdventureWorks2008; SELECT DB_NAME() DatabaseName2');
-- Query#2
SELECT DB_NAME()...
February 15, 2013 at 12:20 am
demonfox (1/27/2013)
Lokesh Vij (1/27/2013)
Thanks Ron for another one on SS 2012.Though I understood the CHOOSE function well, but have to query Employee table to get the answer correctly.
Ya , without...
January 28, 2013 at 12:27 am
Lokesh Vij (1/20/2013)
Thanks Ron for another one on SS 2012!
+1
January 21, 2013 at 12:15 am
Stewart "Arturius" Campbell (1/18/2013)
paul s-306273 (1/18/2013)
In my naivete I'm thinking 'so what?'.Is there a relevance to this?
+1
+1
I wanted to see the answer and explanation without spending time in analyzing and...
January 18, 2013 at 4:37 am
Viewing 15 posts - 1 through 15 (of 49 total)