Viewing 15 posts - 4,171 through 4,185 (of 6,486 total)
Yup - got it. Sounds like you already found the discrepancy, though - are you all set?
March 13, 2008 at 1:59 pm
Then they're not user transactions. Check out what ALZDBA pointed out. It's background stuff.
March 13, 2008 at 1:50 pm
s gupta (3/13/2008)
So that's the same as "Full join" right?
No. not at all. In a cross join - there's no join criteria whatsoever.
In a FULL join,...
March 13, 2008 at 1:45 pm
Name's Matt by the way.
What are you trying to match this up to?
The statement earlier (The total number of users matching the date range is not the same...
March 13, 2008 at 1:42 pm
Every time I hear "paging", I think "range scan"....which leads me to clustered index.
If you do have to be doing that amount of paging, that might be the time to...
March 13, 2008 at 1:38 pm
Cross JOIN is also what is called a "cartesian product". Meaning - it essentially matches up every row of table X with ever row of table Y.
March 13, 2008 at 1:27 pm
If you're sure you want to roll stuff back...just type ROLLBACK in a query, and keep hitting execute until it whines at you....
Of course - you could also try committing...
March 13, 2008 at 1:24 pm
About the same as Gsquared - either should work, I think
select cityname as City, groupname as [Groupname],
isnull(subqty.qty, 0) as Qty
from (select groupid, group.name groupname, city.name Cityname, cityid
...
March 13, 2008 at 1:21 pm
Are you looking to start from a list of all groups matched up against all cities? If not - where's the list of all groups by city?
March 13, 2008 at 1:09 pm
Art - use Jeff's suggestion a few posts up. It's precisely to deal with issues just like that.
Meaning - use a "less than april first" syntax.
March 13, 2008 at 1:04 pm
I'm thinking you should be setting each of those up as
bobJones.Customer
JaneDoe.Customer
BrianSmith.Customer
By using schemas (and associating those user logins with the correct schemas), you'd be able to write that as...
March 13, 2008 at 12:49 pm
All right - you wanted it - you go it.... a 2 Million row table.(sorry - 1M was still a bit wimpy on this test).
Add the following expressions to this...
March 13, 2008 at 11:19 am
You're talking about cross-tabulating... Look up "SQL 2000 Cross Tab" and you'll come up with a bunch of examples, including this one:
http://www.simple-talk.com/sql/t-sql-programming/creating-cross-tab-queries-and-pivot-tables-in-sql/%5B/url%5D
March 13, 2008 at 10:05 am
Jeff Moden (3/13/2008)
Oh boy! Someone said "Pork chop"! Let me get my magic sling... 😀
I just had a Bladerunner moment....
"Do Jeff's DBA's dream of flying porkchops?"
Definitely time for...
March 13, 2008 at 9:59 am
I'm not sure differences that small are significant. I just ran it against something a bit bigger ( okay, a 2M row table instead of a 2K row table),...
March 13, 2008 at 9:54 am
Viewing 15 posts - 4,171 through 4,185 (of 6,486 total)