What's new

Closed Database design tutorial - part 5 - creating db and tables

Status
Not open for further replies.
Retrieve the subject id from tblStudents_subjects recorded twice or more and display them with number of records. (baka po matulungan nyo ko ) salamat po
 
upload_2018-9-14_11-2-12.png
eto po ung table nya
 

Attachments

Retrieve the subject id from tblStudents_subjects recorded twice or more and display them with number of records. (baka po matulungan nyo ko ) salamat po

just quick and on top of my head, ganito:

solution 1: programmatically
- query and select mo lahat (that will give an array)
- get that array perform "compare". C# has some kind of comparator
- then count duplicates

solution 2: sql query
- hints: "HAVING COUNT > 1"

See if you can get it.
Gagawa ako ng test ko just to make sure. ;)
 
Think of them as different "companies" (MySQL and Oracle).
- they both provide database architecture or what not
- pero MySQL is an Open-Source (free)...Oracle is "ρáíd"
- they both use SQL as their "language" para hugutin ang data from the database (very small syntax difference)
 
need po ba mag dl ng xampp para sa mysql boss??
hindi mo naman kailangan ang xampp kung kaya mong i-install isa isa ang mga components (Apache, PHP, MYSQL).
- otherwise, kailangan mo ng some kind of package (XAMPP or WAMPP) para isang installation na lang lahat at wala ka ng po-problemahin
:)
 
BTW, re-download nyo uli yung PDF kasi hindi ko napansin na malabo pala yung images. I tried to make it more readable dito sa bagong PDF.
 
guys please help me ulit.. d ko talaga makuha to e

Retrieve from the tblStudents the student id and first name in the records whose year of birth is from 1980 to 1985.

eto po ung table salamat po huhu
upload_2018-9-15_11-10-59.png
 

Attachments

Status
Not open for further replies.

Similar threads

Back
Top