|
-
Dec 10th, 2007, 05:04 PM
#1
Thread Starter
Addicted Member
-
Dec 10th, 2007, 05:06 PM
#2
Re: Select Count Distinct
You have one too many closing parenthesis....
it should be
Code:
"SELECT COUNT(DISCTINCT(editura)) FROM lista_carti"
-tg
-
Dec 10th, 2007, 05:22 PM
#3
Thread Starter
Addicted Member
-
Dec 10th, 2007, 06:09 PM
#4
Thread Starter
Addicted Member
Re: Select Count Distinct
I did it!
Code:
SQL.CommandText = "SELECT COUNT(*) FROM (SELECT DISTINCT editura FROM lista_carti)"
Thanks again for your big help!
I'm still learning VB.NET
Sorry for my bad english
Thanks for your help
-
Dec 10th, 2007, 06:12 PM
#5
Hyperactive Member
Re: Select Count Distinct
Its been years since I did Access, but isn't it DistinctCount? (One word).
In SQL Server 2000, the query would be written:
SQL.CommandText = "SELECT COUNT(DISTINCT editura) FROM lista_carti"
Last edited by bigMeUp; Dec 10th, 2007 at 06:20 PM.
-
Dec 10th, 2007, 06:21 PM
#6
Hyperactive Member
Re: Select Count Distinct
Oh, you did it! I really have to read these eff**g posts before I tap keyboard, innit?
-
Dec 10th, 2007, 06:40 PM
#7
Thread Starter
Addicted Member
-
Dec 10th, 2007, 06:44 PM
#8
Hyperactive Member
Re: [RESOLVED] Select Count Distinct
Excellent, Alexandru_mbm! As a matter of interest, does
Code:
SQL.CommandText = "SELECT COUNT(DISTINCT editura) FROM lista_carti"
work?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|