OL ICT Database-related questions – Write the answers to the questions

AI answer for when upload question image
(a) House Table හි Primary Key කුමක්ද?
- HouseID යනු House Table හි Primary Key වේ.
පිළිතුර:
HouseID
(b) BestPlayer Table හි Foreign Key කුමක්ද?
- StudentID සහ HouseID යන කොටස් දෙකම Foreign Keys වේ.
පිළිතුර:
StudentID, HouseID
(ii)
(a) StudentDetails Table වෙත නව තොරතුරු ඇතුලත් කරන්න:
- Isira Pathirathna (S2015) ට Troy House වෙත එක් කරන්න.
ක්රියාමාර්ගය:
Isira Pathirathna සමඟ අලුත් පේළියක් StudentDetails Table වෙත එක් කරන්න.
පිළිතුර:
StudentID: S2015, Name: Isira Pathirathna, House: Troy
(b) Amantha Hettige හි තොරතුරු යාවත්කාලීන කරන්න:
- Amantha Hettige හි House එක Sparta ලෙස වෙනස් කරන්න.
- ඇය 4th Place ලෙස BestPlayer Table වෙත එක් කරන්න.
ක්රියාමාර්ගය:
- Amantha Hettige හි HouseID එක HSSP (Sparta) ලෙස වෙනස් කරන්න.
- BestPlayer Table වෙත ඇය 4th Place ලෙස එක් කරන්න.
පිළිතුර:
Amantha Hettige හි House Sparta ලෙස වෙනස් කර, 4th Place ලෙස එක් කරන ලදී.
(iii)
සියලු සිසුන්ගේ නම් සහ ඔවුන්ගේ House Names සහ Places පෙන්වන්න. එක් එක් Place අනුව (1st, 2nd, …) පිළිවෙලට පෙන්වන්න. Place නොමැති තොරතුරු අවසානයට පෙන්වන්න.
පිළිතුර:
සියලු සිසුන්ගේ නම්, House Names, සහ Places පිළිවෙලට පෙන්වන ලදී.
(iv)
1st Place Winner වන සිසුවා කවුද?
පිළිතුර:
Geesha Alahakon (House: Troy)
සරල පිළිතුරු:
- (i)(a): HouseID
- (i)(b): StudentID, HouseID
- (ii)(a): Isira Pathirathna (S2015, Troy)
- (ii)(b): Amantha Hettige Sparta ලෙස වෙනස් කර, 4th Place ලෙස එක් කරන ලදී.
- (iii): සියලු සිසුන්ගේ තොරතුරු Place අනුව පිළිවෙලට පෙන්වන ලදී.
- (iv): Geesha Alahakon (1st Place, Troy)
අවසාන පිළිතුර:
1st Place Winner: Geesha Alahakon

