Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9174471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:45:41+00:00 2026-06-17T16:45:41+00:00

In my Sql have…4 tables like.. classtable sid date timetableid ct1 – tt1 ct2

  • 0

In my Sql have…4 tables like..

classtable
sid     date    timetableid
ct1      -       tt1
ct2      -       tt2
ct3     --       tt3

and my Timetable

sid    startDate   skillsetid
tt1      ---        ss1
tt2      ---        ss1
tt3      ---        ss2

and my Skillset

sid     courseid
ss1        c1
ss2        c2

and finally my Course table.

sid    name
c1     java
c2     flex

Finally my requirement is count the no.of courses.. using Classtable

for example according to above tables 2-java and 1-flex so these count will be displayed on my html page like 2(java) or 4(flex)..etc .. what ever we get the count…
so please suggest me how to get count and display on html..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T16:45:42+00:00Added an answer on June 17, 2026 at 4:45 pm

    Join your tables and group the result:

    SELECT   Course.name, COUNT(*)
    FROM     classtable
        JOIN Timetable ON Timetable.sid = classtable.timetableid
        JOIN Skillset  ON  Skillset.sid = Timetable.skillsetid
        JOIN Course    ON    Course.sid = Skillset.courseid
    GROUP BY Course.sid
    

    See it on sqlfiddle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have SQL Server 2008 with a table called ProductCategories designed like this: Id
I have SQL Table like Where DateDiff is in format (hh.mm) DateDiff ATM 1.45
SQL joins have never been my strength. I would like some help with this
I have SQL statement: SELECT ASIN, Date, DateSoldActualized, FNSKU, ItemName, MaxShipmentDateAllSkus, MaxShipmentDateThisSKU, MerchantID, MerchantSKU,
I have SQL query which joins 3 tables, one being just a many-to-many connecting
I have SQL like this (where $ytoday is 5 days ago): $sql = 'SELECT
I have sql output delimited file like this: FD LD -------- -------- 02-01-11 02-28-11
I have sql something like this: SELECT EMP_NAME, DEPT FROM EMPLOYEE WHERE TIME_CREATED >=
I have SQL Server 2008 database with 2 tables: Table A has columns ID
In SQL Server 2005, I have a Product search that looks like: select ProductID,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.