Display data in two columns with UI Fabric React - office-ui-fabric

I would like to display data dynamically in 2 columns with UI Fabric React. For example I want to have 2 columns one for teachers and one for students, and each time I want to add an entry to one of these columns dynamically with code. These 2 columns should be aligned next to each other. How do we do this with Office UI Fabric? Knowing that the number of teachers and students might differ
Example Below:
Teachers Students
Teacher1 Student1
Teacher2 Student2
Teacher3

Related

How to Create subjects table that includes multiple teachers and multiple classes

My condition is like this:
There's a teachers table:Id, name and classes table:Id, name.
I want to create a third table which is subjects table.
I want to figure out columns for the subjects table, where
1)one teacher can teach multiple subjects.
2)and one subject is taught to a multiple classes.
For that you need multiple tables, it has to have multiple to multiple relations like this. You can even have multiple teachers in the same course or subject.

Table structure for reporting SQL Performance

I am not sure if this is the best structure for what I am trying to do.
I have 2 tables.
First table called Team which contains 3 columns, Team ID, Team Name and Kit Colour. This table contains data about the team only.
Second table called player name contains 3 columns, Player ID, Player name and Team ID. More columns will be added soon. Player table is about the player only. Team ID is the foreign key which links both tables together. A team can only have 15 players max so there can be 15 player entries for each team.
There can be thousands of teams with a maximum of 15 players each.
I have a horizontal Report that I need to fill that looks like this:
Team Name | Player 1 Name | Player 2 Name | Player 3 Name....| Player Name 15
My question is, I this best table structure set up for the report? How would I get data of a certain team with performance in mind? For example I want information for Team A, and all its players. There can be 15 players. If I can display the information in one select statement from left to right, I can easily fill in the report but this can t be done without using multiple selects which can be negative towards performance.
The other table structure that was suggested was having join both tables together instead of 2 table. A column for each player and their properties would have a column as well but this does not look correct as table would be massive and more player properties can be added.
I am using SQL 2008
You need to have two separate tables one for team and one for players, since team attributes can be common for multiple players it's better to have them separated rather having all together and duplicating, in your case TeamID serves as the link between both team and player table. so two table with a one to many relation ship is your ideal choice in my opinion.
To retrieve the information of a specific team you can use a simple join and a select statement
SELECT *
FROM TEAM T
INNER JOIN Player P
on T.TeamID=P.TeamID
WHERE T.TeamID=''

displaying all groups of data in ssrs

i have a student table that has each student with 10 rows for the 10 subjects he undertakes
.in the header section there is a field for school name and students name in the body section there is a table with subject and scores when i use a filter of one student it displays expected results but when i do not apply filters it displays only one name in the headers section and a continuous rows of all student record but i want it to display each student name and school name on different pages plus their records[This are part of the desired results][1]
This is how each page should look like
If I understand you question correctly you want to show student detail on each page (one student on one page if 10 student show 10 page) right ?
First, Add List to you body and move all control to List then group on student name or unique field to student.
Then. In List Properties Set Page break between each instance of a group.
you can see this question to guide.

Coalesce SQL output when one field has multiple values

I am trying to create a list of emergency contacts for students in our school district. I would like to include their names and phone numbers. The phone number field in the database has multiple phone numbers stored for each student.
So if I run the following query :
Select name, number
From student
My Results look like this (I'm using made up numbers and names):
Alex A. 235-777-8888
Alex A. 235-777-8878
Alex A. 235-777-8899
Sarah B. 435-777-9999
Sarah B. 435-777-9988
What I would like my result to look like would be:
Alex A. 235-777-8888, 235-777-8878, 235-777-8899
Sarah B. 435-777-9999, 435-777-9988
Basically I just want each student name listed once followed by all of the numbers associated with them.
Any suggestions? I am pretty new to both SQL and programming in general, so the simpler the solution the better!

having the same data values into more than one database table

I have a database with 200 thousand student records, each student have an extendable profile.
Students is the Primary key table,
StudentProfiles is stores the Profiles elements:
[ProfileID],[StudentID],[PropertyDefinitionID],[PropertyValue]
Each profile contains around 120 Property, so In StudentProfiles i have 200 thousand students * 120 Profile Properties = 24 Million rows.
Some important Profile elements like Count(StudentSiblings) or GuardianEmail are used in many external operations, while the other profile elements are used rarely.
For better performance, Is there any problem if we also saved this 3 or 4 Profile Properties as columns in the master Students Table?
This is just an Example, i also have another case where i want to save the result of an aggregate function for a table in another table for easier and faster access, like storing the Sum of payments for a student in the students table as column, is that kind of Denormalization breaks the DB design standards.
If these frequently used profile elements are atomic - ie each student has only one value for GuardianEmail - then I see no reason why not to store these values in the students table, in the same way that you would store the student's email or surname in the students table.