Viewing 15 posts - 1,786 through 1,800 (of 1,922 total)
Yes jason, very silly of me.. there were no join in that query.. i just watched that group by and said that.. thanks for pointing it out though 🙂
April 14, 2010 at 12:36 pm
OMG, so many replies whilst i was decorating my code.. lol...:-D
Great going at SSC...
Cheers..
April 14, 2010 at 12:33 pm
Buddy, dint your subquery (which u used for the lookup alias) give the result u wanted?
Else, try this.
SELECT
T1.FIELD1 , COUNT(T2.FIELD2) COUNT_VAL
FROM
...
April 14, 2010 at 12:29 pm
I am getting closer to what u need of that string.. but still bit unclear though.. u have around six parameters in your string that need to parsed and stripped...
April 13, 2010 at 2:16 pm
Hmmm.. cool.. but before u could post question, i hope that u had looked over that link i specified in my earlier post on how to post question to get...
April 13, 2010 at 6:38 am
Kingston Dhasian (4/13/2010)
Does this help..
SELECTO.OwnerID, O.Owner_Name, COUNT( P.Pet_id ) [Count]
FROMOWNER O
LEFT OUTER JOINPET P
ON O.Owner_id = P.Owner_id
AND P.Pet_Age > 4
Kingston's code will also work but for a small change..you...
April 13, 2010 at 6:04 am
Hey buddy, i really had free time, so i created all the DLLs and some sample rows..
AND, the QUERY for you as wel..
DDLs
--===== CREATE TABLES
IF OBJECT_ID('OWNERS') IS NOT NULL
DROP TABLE...
April 13, 2010 at 5:57 am
Hi Buddy,how about you going through this following article and helping us help you?? 🙂
CLICK HERE FOR FORUM POSTING ETIQUETTES - JEFF MODEN[/url]
When u do so, i am sure a...
April 13, 2010 at 5:38 am
This will give you what u wnat mate..
WITH MIN_MODIFIED_DATE_FOR_EACH_ID (ID, MIN_DATE)
AS
(
SELECT
ID,
MIN(ModifiedOn)
FROM
#Schedule_Audit
WHERE
...
April 13, 2010 at 3:51 am
Ben Leighton (4/13/2010)
Surely the only sensible output from running this is: "Query was cancelled by user.";-)
precisely.. 😀
April 13, 2010 at 3:41 am
You wil have to use dynamic SQL for this.
Like
if object_id ('tempdb..#t1') is not null
drop table #t1
if object_id ('tempdb..#t2') is not null
drop table #t2
create table #t1(ID numeric identity(1,1), Product varchar(10))
go
Insert into...
April 13, 2010 at 3:37 am
Lynn Pettis (4/12/2010)
Basiclly
:-D, Lynnn, thats very basic , isnt it.. 😛 ... wonder how the OP missed filtering the rows directly by WHERE clause..
April 12, 2010 at 11:53 pm
Wow... awesome question.. i misread "while" to "If" in the question and was thinking why this one will end up in a loop.. lol..:-D
good loopy question :w00t:
April 12, 2010 at 11:36 pm
Viewing 15 posts - 1,786 through 1,800 (of 1,922 total)