Viewing 15 posts - 46 through 60 (of 68 total)
hic, i have another question
My table
CREATE TABLE [dbo].[AAATable01](
[K1] [int] NOT NULL,
[K2] [int] NOT NULL,
[KBN] [int] NULL,
[SKU] [int] NULL,
[MONEY] [int] NULL,
)
With data
K1 ...
March 12, 2010 at 8:42 pm
Thanks HowardW , a good asnwer
😀
March 12, 2010 at 7:33 pm
😀 many many pro SQL
I like ChrisM@home's SQL. I compare 3 SQL and the best performance is: My SQL :-D:-D
March 6, 2010 at 2:21 am
Thank Jeff Moden 😀
I were try this SQL but it complex, any one else?
SELECT
Col1,
Col2,
Col3,
Max(Rnk2) OVER (PARTITION BY Col1) as C_col21,
Max(Rnk3) OVER (PARTITION BY Col1) as C_col31
FROM
(SELECT
...
March 5, 2010 at 9:14 pm
arun.sas (3/5/2010)
nguyennd (3/5/2010)
C_col21: count distinct col2 by col1C_col31: count distinct col3 by col1
Hi
count(distinct col2) = 3 and count(distinct col3)= 2
then, Is you want to divided the value with col1 count?
I...
March 5, 2010 at 8:46 pm
arun.sas (3/5/2010)
Hi,What is the logic beyond the columns C_col21 and C_col31? And how you determined the values?
C_col21: count distinct col2 by col1
C_col31: count distinct col3 by col1
Regard
March 5, 2010 at 8:23 pm
thanks Peter Brinkhaus. so it's will wrong if @i > 2100
March 5, 2010 at 3:48 am
Thanks for your reply but your SQL cannot extract this data
2 b 2 null <--A.K=B.K...
March 2, 2010 at 5:31 am
I have same problem but my data is:
create table A
(
H int,
D int
)
insert into A
select...
February 25, 2010 at 1:56 am
Viewing 15 posts - 46 through 60 (of 68 total)