Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Nathon Jones #1
Town (5) - how to pull this out of database/recordset?
Hi.
Access/VBScript/ASP
I have a table of records. Each record has a "town" field. Some of the
records are from the same town.
How do I:
1) Group the towns, in order to display a town list on the site:
Aberdeen
Edinburgh
Glasgow
2) Incorporate the "total number of matching records" into this list for
each town, like so:
Aberdeen (2)
Edinburgh (4)
Glasgow (3)
Hope someone can help. Thanks.
Nath.
Nathon Jones Guest
-
Using SPRY to pull from database and auto rotate
I am trying to create an effect for a client site where their current news will be 'scrolled' with page by page transitions on the home page. I am... -
Is it possible to pull pages of html from database?
I have a number of articles that I have applied a css sheet to. I have close to twenty articles. Each article has a couple of pictures - headings... -
pull text from a database or file with html in it
Is it possible to pull html from a database a have the page dynamically eg <h3>hello</h3> <p>bbbbbbbbbbbbbbbbbbbbbbb</p> etc then when... -
dynamic pull-down based on another pull-down
Greetings, is there a tech doc somewhere to show: 1) 2 pull-downs, dynamically loaded from two record sets. first is "State" and next is "City"... -
Unable to save recordset into an access database
Hi I am trying to make a page where i simply collect data from a form and update it in the database. i am useing a recodset to do the above. The... -
Singularity.co.uk #2
Re: Town (5) - how to pull this out of database/recordset?
Nathon
Try the following:
SELECT TblAddress.City, Count(TblAddress.City) AS CountOfCity
FROM TblAddress
GROUP BY TblAddress.City
ORDER BY TblAddress.City
Brendan
"Nathon Jones" <nathonjonesNOT@kirkmoor.com> wrote in message
news:d0sb6f$6sh$1@forums.macromedia.com...> Hi.
>
> Access/VBScript/ASP
>
> I have a table of records. Each record has a "town" field. Some of the
> records are from the same town.
>
> How do I:
>
> 1) Group the towns, in order to display a town list on the site:
>
> Aberdeen
> Edinburgh
> Glasgow
>
> 2) Incorporate the "total number of matching records" into this list for
> each town, like so:
>
> Aberdeen (2)
> Edinburgh (4)
> Glasgow (3)
>
> Hope someone can help. Thanks.
>
> Nath.
>
>
Singularity.co.uk Guest
-
Julian Roberts #3
Re: Town (5) - how to pull this out of database/recordset?
You'd have
select town,count(town) as towncount from mytable group by town
For more on the basics of SQL see
[url]www.sqlcourse.com[/url]
[url]http://www.w3schools.com/sql/default.asp[/url]
--
Jules
[url]http://www.charon.co.uk/charoncart[/url]
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004
Julian Roberts Guest
-
Nathon Jones #4
Re: Town (5) - how to pull this out of database/recordset?
Supoib!
Nath. :))
"Singularity.co.uk" <Brendan.Collins@RemoveThisSingularity.co.uk> wrote in
message news:d0sbgv$7he$1@forums.macromedia.com...> Nathon
>
> Try the following:
>
> SELECT TblAddress.City, Count(TblAddress.City) AS CountOfCity
> FROM TblAddress
> GROUP BY TblAddress.City
> ORDER BY TblAddress.City
>
> Brendan
>
> "Nathon Jones" <nathonjonesNOT@kirkmoor.com> wrote in message
> news:d0sb6f$6sh$1@forums.macromedia.com...>>> Hi.
>>
>> Access/VBScript/ASP
>>
>> I have a table of records. Each record has a "town" field. Some of the
>> records are from the same town.
>>
>> How do I:
>>
>> 1) Group the towns, in order to display a town list on the site:
>>
>> Aberdeen
>> Edinburgh
>> Glasgow
>>
>> 2) Incorporate the "total number of matching records" into this list for
>> each town, like so:
>>
>> Aberdeen (2)
>> Edinburgh (4)
>> Glasgow (3)
>>
>> Hope someone can help. Thanks.
>>
>> Nath.
>>
>>
>
Nathon Jones Guest



Reply With Quote

