House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

[OT] SQL help

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Hi
Spectrum WebDesign
05/25/04 05:56 P
what is OT?
Monique Boea
05/27/04 08:14 A
> From: Monique Boea
Philip Arnold
05/27/04 08:17 A
Thnx Matthew
Spectrum Web
05/27/04 11:11 A
Off Topic
John Stanley
05/27/04 08:15 A
Thanks :)
Monique Boea
05/27/04 08:19 A
You are welcome..... ;-)
John Stanley
05/27/04 08:23 A
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Spectrum WebDesign
05/25/2004 05:56 PM

Hi I have an table were our client save your dob(mm/dd/yyyy) in My$QL DB. By now I need to aggrupate that table queries like this: Group 1: <= 16 years Group 2: >=17 E <= 25 Group 3: >=26 E <= 40 Group 4: >=41 years My$SQL give the ages but how to aggrupate in that groups? Thanx for your time. -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Monique Boea
05/27/2004 08:14 AM

what is OT? Hi I have an table were our client save your dob(mm/dd/yyyy) in My$QL DB. By now I need to aggrupate that table queries like this: Group 1: <= 16 years Group 2: >=17 E <= 25 Group 3: >=26 E <= 40 Group 4: >=41 years My$SQL give the ages but how to aggrupate in that groups? Thanx for your time. -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm   _____  

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Philip Arnold
05/27/2004 08:17 AM

> From: Monique Boea > > what is OT? Off Topic

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matthew Walker
05/25/2004 09:38 PM

Try this (where age is the formula you're already using). I'd recommend making a view that has the age as one of the columns. SELECT CASE   WHEN age <= 16 THEN 1        WHEN age BETWEEN 17 AND 25 THEN 2        WHEN age BETWEEN 26 AND 40 THEN 3        ELSE 4 END  AS [group] ________________________________________ Sent: Wednesday, 26 May 2004 8:22 a.m. To: CF-Talk Subject: [OT] SQL help Hi I have an table were our client save your dob(mm/dd/yyyy) in My$QL DB. By now I need to aggrupate that table queries like this: Group 1: <= 16 years Group 2: >=17 E <= 25 Group 3: >=26 E <= 40 Group 4: >=41 years My$SQL give the ages but how to aggrupate in that groups? Thanx for your time. -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm ________________________________________

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Spectrum Web
05/27/2004 11:11 AM

Thnx Matthew works great.... brilliant! Success! ----- Excess quoted text cut - see Original Post for more -----

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
John Stanley
05/27/2004 08:15 AM

Off Topic what is OT? Hi I have an table were our client save your dob(mm/dd/yyyy) in My$QL DB. By now I need to aggrupate that table queries like this: Group 1: <= 16 years Group 2: >=17 E <= 25 Group 3: >=26 E <= 40 Group 4: >=41 years My$SQL give the ages but how to aggrupate in that groups? Thanx for your time. -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm   _____   _____  

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Monique Boea
05/27/2004 08:19 AM

Thanks :) Off Topic what is OT? Hi I have an table were our client save your dob(mm/dd/yyyy) in My$QL DB. By now I need to aggrupate that table queries like this: Group 1: <= 16 years Group 2: >=17 E <= 25 Group 3: >=26 E <= 40 Group 4: >=41 years My$SQL give the ages but how to aggrupate in that groups? Thanx for your time. -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm   _____   _____   _____  

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
John Stanley
05/27/2004 08:23 AM

You are welcome..... ;-) Thanks :) Off Topic what is OT? Hi I have an table were our client save your dob(mm/dd/yyyy) in My$QL DB. By now I need to aggrupate that table queries like this: Group 1: <= 16 years Group 2: >=17 E <= 25 Group 3: >=26 E <= 40 Group 4: >=41 years My$SQL give the ages but how to aggrupate in that groups? Thanx for your time. -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm   _____   _____   _____   _____  


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

February 09, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29