Viewing 15 posts - 3,901 through 3,915 (of 10,144 total)
yuvipoy (12/12/2013)
Select Count(*) from Mytable;
COUNT(*)
----------
1001920
Time taken to return is 15 sec
select * from Mytable;
Time...
December 13, 2013 at 2:17 am
Why read ALL OF THOSE TABLES three times when you can get your results by reading them only once?
Why include tons of columns in your subquery - then throw them...
December 13, 2013 at 2:04 am
Take care with your join types. Referencing a column from an outer-joined table will convert the join to an IJ (except the special case of checking a column for NULL).
SELECT...
December 12, 2013 at 7:16 am
avdhut.k (12/12/2013)
Hi,My requirement is to validate the data,as per users specification,
...
What's the context? Is this user data entry, data import, data migration? The...
December 12, 2013 at 7:03 am
SELECT
@QTRSTRTDATE = DATEADD(m, DATEDIFF(m, 0, GETDATE()), 0),
@QTRENDDATE = DATEADD(m,DATEDIFF(m,-1, GETDATE()),-1)
EXEC @return_value = [dbo].[test] @QTRSTRTDATE, @QTRENDDATE
December 12, 2013 at 6:53 am
dwain.c (12/11/2013)
Jeff Moden (12/11/2013)
ChrisM@Work (12/11/2013)
December 12, 2013 at 6:45 am
dwain.c (12/12/2013)
ChrisM@Work (12/12/2013)
-- I might give it a go over lunch.
----------------------------------------------------------------------------------------
I can see it now. Cornish pasty in one hand while the other furiously types in the 1M row...
December 12, 2013 at 4:38 am
lotusnotes (12/11/2013)
In a fit of inspiration I have come up with my own solution. Although it gives a slightly different result set, I'd be interested in...
December 12, 2013 at 2:14 am
Gosh, I'm surprised that with a title like this, there have been so few takers - and so little feedback from the OP. Maybe those sleepless nights have caught up....
December 11, 2013 at 6:58 am
gary.morey (12/11/2013)
The combination of SSN, PKT and FICE_NBR in table A does not have a match on the combination of SSN, PKT...
December 11, 2013 at 6:54 am
There's an alternate interpretation of the question: the first match between the two tables (on OrderID, mpn) takes the first line number, the second match takes the second number and...
December 11, 2013 at 2:08 am
This doesn't look too challenging. Can you correct both your sample data and your expected output for EpisodeNo 10010? Cheers.
For those of you looking for sample data to play with...
December 10, 2013 at 6:55 am
Aram Koukia (12/9/2013)
gary.morey (12/9/2013)
I need to be able to retrieve the rows from table A...
December 10, 2013 at 1:49 am
SELECT DISTINCT *
FROM Tablea a
WHERE NOT EXISTS (
SELECT 1
FROM Tableb b
WHERE b.SSN = a.SSN
AND b.PKT = a.PKT
AND b.FICE_NBR = a.FICE_NBR
)
December 10, 2013 at 1:42 am
derekmcdonnell3 (10/24/2013)
December 6, 2013 at 4:53 am
Viewing 15 posts - 3,901 through 3,915 (of 10,144 total)