18. Many-to-Many relationship in DBMS | Cardinality | DBMS complete syllabus playlist

Поделиться
HTML-код
  • Опубликовано: 14 янв 2025

Комментарии • 5

  • @venkateshkulkarni4985
    @venkateshkulkarni4985 4 месяца назад

    How to fetch details if we want to know details like how many students are taking a particular course ? I don’t see any relation established between them the two table are standing apart

    • @ConstantLearners_AI_ML_CS
      @ConstantLearners_AI_ML_CS  3 месяца назад

      How to fetch the details goes into querying part. We are not writing queries here, just understanding the relationships.

    • @ConstantLearners_AI_ML_CS
      @ConstantLearners_AI_ML_CS  3 месяца назад

      To ans your question that is 'how to fetch the details?'
      Let's say u have 2 tables STUDENTS(stu_id, stu_name) and CLASSES(class_id, class_name).
      First we need to create a new table which combines the data from the 2 tables. Then we use SQL JOIN to fetch the details that you are asking for.
      Hope this clarifies your doubt.

    • @venkateshkulkarni4985
      @venkateshkulkarni4985 3 месяца назад +1

      @@ConstantLearners_AI_ML_CS yes thank you
      Keep answering the questions,it would be great help

    • @ConstantLearners_AI_ML_CS
      @ConstantLearners_AI_ML_CS  3 месяца назад

      I'll try my best :)