Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

DB help-select

Participant ,
Oct 20, 2008 Oct 20, 2008
I am trying to graph number of males and females per year for a specific conditon...However my query doesnt work properly....Numbers shows on the wrong year....
For sample please visit nexium-vs-joints.com

loop
select start_yr,count(*) from table where gender ='#gen#' group by start_yr order by start_yr
End loop
TOPICS
Database access
342
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 21, 2008 Oct 21, 2008
Don't know why you have a loop, but have you considered something like.

select start_yr, gender, count(*) thecount
from table
where something_maybe
group by start_yr, gender
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 21, 2008 Oct 21, 2008
LATEST
That might help...thank you...
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources