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 3940586
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:26:12+00:00 2026-05-20T00:26:12+00:00

I have a table with the following four columns. Student_Id Course_Id Seq_No Date_Taken Looking

  • 0

I have a table with the following four columns.

Student_Id  
Course_Id  
Seq_No  
Date_Taken  

Looking for any help on SQL for oracle db to get the following report.
Also is it possible to get the report in a single query using sub queries?

Course_ID                           | CR150   
=============================================
Total students Taken                | 5  
Students Taken this as First Course | 3  
Only Course  Taken by Students      | 3  
Students Taken 2 Courses            | 2 
  • 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-05-20T00:26:13+00:00Added an answer on May 20, 2026 at 12:26 am

    You need to do a nested query. The inner query should use an analytic query to select by student and course, how many courses the student is taking, and which course this is in sequence. Then you can use that in the FROM of a group by query that gives the report that you want.

    I could give you the SQL but won’t because it is your homework problem, not mine. But http://www.orafaq.com/node/55 may help you learn how to do analytic queries.

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

Sidebar

Related Questions

Using SQL Server 2005 I have a table with the following columns id name
Some help with some T-SQL would be most appreciated. I have the following four
Lets say I have table with following columns 1. Client - string. 2. Profit
I have a table with following columns: ContractorId ......... INT ............. IDENTITY ContractorName ........
I have a table with four columns, say P_Key(int), Ref_Key(int), Key(String), Value(Integer). I want
I have four columns in a table: date entered, time entered, date completed, time
I have some SQL similar to the following, which joins four tables and then
I have a basic recursive table setup in SQL 2008 with the following structure:
I have a table named coords with the following columns |name|lat|lon|und| import sqlite3 database
I have a table with the following columns source_title, country, language, source_url I need

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.