Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For each question show me the query that you wrote and a screen shot of the results that you got. A few notes: It does

For each question show me the query that you wrote and a screen shot of the results that you got.

A few notes: It does no one any good to see just ids. So, if say it asks for a student then you need to show the student name, or if its asking for a major your query results should display the major name. Also keep an eye on your column names. Remember you will be showing this to other people that know nothing about your query so having two columns named name in the results will just confuse them or if a column doesn't have a name they wont know what the data represents.

1. How many female students are attending this college?

2. Who is the highest paid teacher in each college?

3. How many classes is each student taking? And what majors are they in?

4. How many Students are in each major in each college?

5. For fire code we need to know how many people will be in each class at a time.

6. What classes is Paul K. Palos teaching and what college is he in?

7. How much is each college paying to their teachers?

8. How many students are in each major in each college?

9. How many classes are in each college?

10. What is the average gpa of the students in each major in each college?

GO ALTER DATABASE [college_databse] SET COMPATIBILITY_LEVEL = 130 GO IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled')) begin EXEC [college_databse].[dbo].[sp_fulltext_database] @action = 'enable' end GO ALTER DATABASE [college_databse] SET ANSI_NULL_DEFAULT OFF GO ALTER DATABASE [college_databse] SET ANSI_NULLS OFF GO ALTER DATABASE [college_databse] SET ANSI_PADDING OFF GO ALTER DATABASE [college_databse] SET ANSI_WARNINGS OFF GO ALTER DATABASE [college_databse] SET ARITHABORT OFF GO ALTER DATABASE [college_databse] SET AUTO_CLOSE OFF GO ALTER DATABASE [college_databse] SET AUTO_SHRINK OFF GO ALTER DATABASE [college_databse] SET AUTO_UPDATE_STATISTICS ON GO ALTER DATABASE [college_databse] SET CURSOR_CLOSE_ON_COMMIT OFF GO ALTER DATABASE [college_databse] SET CURSOR_DEFAULT GLOBAL GO ALTER DATABASE [college_databse] SET CONCAT_NULL_YIELDS_NULL OFF GO ALTER DATABASE [college_databse] SET NUMERIC_ROUNDABORT OFF GO ALTER DATABASE [college_databse] SET QUOTED_IDENTIFIER OFF GO ALTER DATABASE [college_databse] SET RECURSIVE_TRIGGERS OFF GO ALTER DATABASE [college_databse] SET DISABLE_BROKER GO ALTER DATABASE [college_databse] SET AUTO_UPDATE_STATISTICS_ASYNC OFF GO ALTER DATABASE [college_databse] SET DATE_CORRELATION_OPTIMIZATION OFF GO ALTER DATABASE [college_databse] SET TRUSTWORTHY OFF GO ALTER DATABASE [college_databse] SET ALLOW_SNAPSHOT_ISOLATION OFF GO ALTER DATABASE [college_databse] SET PARAMETERIZATION SIMPLE GO ALTER DATABASE [college_databse] SET READ_COMMITTED_SNAPSHOT OFF GO ALTER DATABASE [college_databse] SET HONOR_BROKER_PRIORITY OFF GO ALTER DATABASE [college_databse] SET RECOVERY SIMPLE GO ALTER DATABASE [college_databse] SET MULTI_USER GO ALTER DATABASE [college_databse] SET PAGE_VERIFY CHECKSUM GO ALTER DATABASE [college_databse] SET DB_CHAINING OFF GO ALTER DATABASE [college_databse] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF ) GO ALTER DATABASE [college_databse] SET TARGET_RECOVERY_TIME = 60 SECONDS GO ALTER DATABASE [college_databse] SET DELAYED_DURABILITY = DISABLED GO ALTER DATABASE [college_databse] SET QUERY_STORE = OFF GO USE [college_databse] GO ALTER DATABASE SCOPED CONFIGURATION SET MAXDOP = 0; GO ALTER DATABASE SCOPED CONFIGURATION FOR SECONDARY SET MAXDOP = PRIMARY; GO ALTER DATABASE SCOPED CONFIGURATION SET LEGACY_CARDINALITY_ESTIMATION = OFF; GO ALTER DATABASE SCOPED CONFIGURATION FOR SECONDARY SET LEGACY_CARDINALITY_ESTIMATION = PRIMARY; GO ALTER DATABASE SCOPED CONFIGURATION SET PARAMETER_SNIFFING = ON; GO ALTER DATABASE SCOPED CONFIGURATION FOR SECONDARY SET PARAMETER_SNIFFING = PRIMARY; GO ALTER DATABASE SCOPED CONFIGURATION SET QUERY_OPTIMIZER_HOTFIXES = OFF; GO ALTER DATABASE SCOPED CONFIGURATION FOR SECONDARY SET QUERY_OPTIMIZER_HOTFIXES = PRIMARY; GO USE [college_databse] GO /****** Object: Table [dbo].[class] Script Date: 10/25/17 5:09:08 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[class]( [classID] [int] IDENTITY(1,1) NOT NULL, [name] [varchar](50) NOT NULL, [collegeID] [int] NOT NULL, CONSTRAINT [PK_class] PRIMARY KEY CLUSTERED ( [classID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY]

GO /****** Object: Table [dbo].[classroster] Script Date: 10/25/17 5:09:08 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[classroster]( [sectionID] [int] NOT NULL, [teacherID] [int] NULL, [studentID] [int] NULL ) ON [PRIMARY]

GO /****** Object: Table [dbo].[classsection] Script Date: 10/25/17 5:09:08 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[classsection]( [sectionID] [int] IDENTITY(1,1) NOT NULL, [sectionnumber] [int] NOT NULL, [classID] [int] NOT NULL, CONSTRAINT [PK_classsection] PRIMARY KEY CLUSTERED ( [sectionID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY]

GO /****** Object: Table [dbo].[college] Script Date: 10/25/17 5:09:08 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[college]( [collegeID] [int] IDENTITY(1,1) NOT NULL, [name] [varchar](50) NOT NULL, CONSTRAINT [PK_college] PRIMARY KEY CLUSTERED ( [collegeID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY]

GO /****** Object: Table [dbo].[major] Script Date: 10/25/17 5:09:08 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[major]( [majorID] [int] IDENTITY(1,1) NOT NULL, [name] [varchar](50) NOT NULL, [collegeID] [int] NOT NULL, CONSTRAINT [PK_major] PRIMARY KEY CLUSTERED ( [majorID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY]

GO /****** Object: Table [dbo].[student] Script Date: 10/25/17 5:09:08 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[student]( [studentID] [int] IDENTITY(1,1) NOT NULL, [name] [varchar](50) NOT NULL, [gpa] [float] NOT NULL, [phonenumber] [varchar](20) NOT NULL, [sex] [varchar](1) NOT NULL, [dateofbirth] [date] NOT NULL, [address] [varchar](50) NOT NULL, [city] [varchar](50) NOT NULL, [state] [varchar](50) NOT NULL, [zip] [int] NOT NULL, [email] [varchar](50) NOT NULL, [ssn] [int] NOT NULL, [collegeID] [int] NOT NULL, [majorID] [int] NOT NULL, CONSTRAINT [PK_student] PRIMARY KEY CLUSTERED ( [studentID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY]

GO /****** Object: Table [dbo].[teacher] Script Date: 10/25/17 5:09:08 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[teacher]( [teacherID] [int] IDENTITY(1,1) NOT NULL, [name] [varchar](50) NOT NULL, [email] [varchar](50) NOT NULL, [phonenumber] [varchar](20) NOT NULL, [sex] [varchar](1) NOT NULL, [dateofbirth] [date] NOT NULL, [address] [varchar](50) NOT NULL, [city] [varchar](50) NOT NULL, [state] [varchar](50) NOT NULL, [zip] [int] NOT NULL, [pay] [money] NOT NULL, [ssn] [int] NOT NULL, [collegeID] [int] NOT NULL, CONSTRAINT [PK_teacher] PRIMARY KEY CLUSTERED ( [teacherID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY]

GO SET IDENTITY_INSERT [dbo].[class] ON

GO INSERT [dbo].[class] ([classID], [name], [collegeID]) VALUES (1, N'English 101', 1) GO INSERT [dbo].[class] ([classID], [name], [collegeID]) VALUES (2, N'Data Base Management 1', 3) GO INSERT [dbo].[class] ([classID], [name], [collegeID]) VALUES (3, N'Introduction into Engineering', 2) GO INSERT [dbo].[class] ([classID], [name], [collegeID]) VALUES (4, N'College Writing', 1) GO INSERT [dbo].[class] ([classID], [name], [collegeID]) VALUES (5, N'Programming 2', 3) GO INSERT [dbo].[class] ([classID], [name], [collegeID]) VALUES (6, N'Project Management 1', 1) GO SET IDENTITY_INSERT [dbo].[class] OFF GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (1, NULL, 1) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (3, NULL, 1) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (8, NULL, 1) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (2, NULL, 2) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (4, NULL, 2) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (1, NULL, 3) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (5, NULL, 3) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (1, NULL, 4) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (4, NULL, 4) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (8, NULL, 4) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (2, NULL, 5) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (6, NULL, 5) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (1, NULL, 6) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (8, NULL, 6) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (1, NULL, 7) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (4, NULL, 7) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (2, NULL, 8) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (5, NULL, 8) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (1, NULL, 9) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (6, NULL, 9) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (1, NULL, 10) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (9, NULL, 10) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (2, NULL, 11) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (3, NULL, 11) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (2, NULL, 12) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (8, NULL, 12) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (2, NULL, 13) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (6, NULL, 14) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (8, NULL, 14) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (2, NULL, 14) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (9, NULL, 13) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (2, NULL, 15) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (3, NULL, 15) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (2, NULL, 16) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (9, NULL, 16) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (1, NULL, 17) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (5, NULL, 17) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (1, NULL, 18) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (3, NULL, 18) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (1, NULL, 19) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (9, NULL, 19) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (2, NULL, 20) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (6, NULL, 20) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (1, 4, NULL) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (6, 4, NULL) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (9, 4, NULL) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (2, 5, NULL) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (8, 5, NULL) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (3, 9, NULL) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (7, 9, NULL) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (4, 11, NULL) GO INSERT [dbo].[classroster] ([sectionID], [teacherID], [studentID]) VALUES (5, 14, NULL) GO SET IDENTITY_INSERT [dbo].[classsection] ON

GO INSERT [dbo].[classsection] ([sectionID], [sectionnumber], [classID]) VALUES (1, 1, 1) GO INSERT [dbo].[classsection] ([sectionID], [sectionnumber], [classID]) VALUES (2, 2, 1) GO INSERT [dbo].[classsection] ([sectionID], [sectionnumber], [classID]) VALUES (3, 1, 2) GO INSERT [dbo].[classsection] ([sectionID], [sectionnumber], [classID]) VALUES (4, 2, 2) GO INSERT [dbo].[classsection] ([sectionID], [sectionnumber], [classID]) VALUES (5, 1, 3) GO INSERT [dbo].[classsection] ([sectionID], [sectionnumber], [classID]) VALUES (6, 1, 4) GO INSERT [dbo].[classsection] ([sectionID], [sectionnumber], [classID]) VALUES (7, 1, 5) GO INSERT [dbo].[classsection] ([sectionID], [sectionnumber], [classID]) VALUES (8, 1, 6) GO INSERT [dbo].[classsection] ([sectionID], [sectionnumber], [classID]) VALUES (9, 2, 6) GO SET IDENTITY_INSERT [dbo].[classsection] OFF GO SET IDENTITY_INSERT [dbo].[college] ON

GO INSERT [dbo].[college] ([collegeID], [name]) VALUES (1, N'Education') GO INSERT [dbo].[college] ([collegeID], [name]) VALUES (2, N'Engineering') GO INSERT [dbo].[college] ([collegeID], [name]) VALUES (3, N'Information Technology') GO SET IDENTITY_INSERT [dbo].[college] OFF GO SET IDENTITY_INSERT [dbo].[major] ON

GO INSERT [dbo].[major] ([majorID], [name], [collegeID]) VALUES (1, N'English', 1) GO INSERT [dbo].[major] ([majorID], [name], [collegeID]) VALUES (2, N'Teaching', 1) GO INSERT [dbo].[major] ([majorID], [name], [collegeID]) VALUES (3, N'Electrical Engineering', 2) GO INSERT [dbo].[major] ([majorID], [name], [collegeID]) VALUES (4, N'Programming', 3) GO INSERT [dbo].[major] ([majorID], [name], [collegeID]) VALUES (5, N'Networking', 3) GO SET IDENTITY_INSERT [dbo].[major] OFF GO SET IDENTITY_INSERT [dbo].[student] ON

GO INSERT [dbo].[student] ([studentID], [name], [gpa], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [email], [ssn], [collegeID], [majorID]) VALUES (1, N'James A. Weber', 2.06, N'917-360-7728', N'M', CAST(N'1975-12-01' AS Date), N'3023 Bicetown Road', N'New York', N'NY', 10016, N'JamesAWeber@rhyta.com', 345331425, 3, 5) GO INSERT [dbo].[student] ([studentID], [name], [gpa], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [email], [ssn], [collegeID], [majorID]) VALUES (2, N'Raymond R. Hill', 1.97, N'310-295-2607', N'M', CAST(N'1952-04-14' AS Date), N'4889 Washburn Street', N'Baton Rouge', N'LA', 70806, N'MicahVWalls@dayrep.com', 586364885, 3, 5) GO INSERT [dbo].[student] ([studentID], [name], [gpa], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [email], [ssn], [collegeID], [majorID]) VALUES (3, N'Lila K. Sweeney', 3.84, N'405-833-7125', N'F', CAST(N'1975-01-20' AS Date), N'1378 Ruckman Road', N'Oklahoma City', N'OK', 73102, N'LilaKSweeney@teleworm.us', 112925324, 2, 3) GO INSERT [dbo].[student] ([studentID], [name], [gpa], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [email], [ssn], [collegeID], [majorID]) VALUES (4, N'David W. Craig', 3.58, N'936-591-6961', N'M', CAST(N'1985-04-10' AS Date), N'4474 Mulberry Street', N'Center', N'TX', 75935, N'DavidWCraig@jourrapide.com', 983044206, 3, 4) GO INSERT [dbo].[student] ([studentID], [name], [gpa], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [email], [ssn], [collegeID], [majorID]) VALUES (5, N'Lisette D. Parks', 2.11, N'602-634-5806', N'F', CAST(N'1981-09-20' AS Date), N'3711 Dogwood Road', N'Phoenix', N'AZ', 85017, N'LisetteDParks@jourrapide.com', 159101287, 1, 1) GO INSERT [dbo].[student] ([studentID], [name], [gpa], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [email], [ssn], [collegeID], [majorID]) VALUES (6, N'Vera W. Giron', 1.69, N'318-447-8892', N'F', CAST(N'1996-09-21' AS Date), N'2668 August Lane', N'Alexandria', N'LA', 71301, N'VeraWGiron@armyspy.com', 356948840, 1, 2) GO INSERT [dbo].[student] ([studentID], [name], [gpa], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [email], [ssn], [collegeID], [majorID]) VALUES (7, N'Craig T. Wilbur', 3.21, N'970-842-9200', N'M', CAST(N'1994-11-09' AS Date), N'388 Stark Hollow Road', N'Brush', N'CO', 80723, N'CraigTWilbur@dayrep.com', 938251842, 3, 4) GO INSERT [dbo].[student] ([studentID], [name], [gpa], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [email], [ssn], [collegeID], [majorID]) VALUES (8, N'Nathan M. Williams', 3.34, N'618-324-0761', N'M', CAST(N'1989-08-28' AS Date), N'2825 Eagle Street Fairview', N'Heights', N'IL', 62208, N'NathanMWilliams@rhyta.com', 298225818, 2, 3) GO INSERT [dbo].[student] ([studentID], [name], [gpa], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [email], [ssn], [collegeID], [majorID]) VALUES (9, N'Joe M. Theriot', 3.88, N'620-356-6100', N'M', CAST(N'1992-05-24' AS Date), N'2668 Breezewood Court', N'Ulysses', N'KS', 67880, N'JoeMTheriot@jourrapide.com', 563246760, 1, 1) GO INSERT [dbo].[student] ([studentID], [name], [gpa], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [email], [ssn], [collegeID], [majorID]) VALUES (10, N'Lara D. Poole', 1.8, N'360-856-7914', N'F', CAST(N'1996-04-13' AS Date), N'2906 Pratt Avenue Sedro', N'Woolley', N'WA', 98284, N'LaraDPoole@rhyta.com', 247099329, 1, 1) GO INSERT [dbo].[student] ([studentID], [name], [gpa], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [email], [ssn], [collegeID], [majorID]) VALUES (11, N'Brenda M. Tyler', 2.37, N'309-486-5606', N'F', CAST(N'1990-03-15' AS Date), N'5 Trainer Avenue', N'London Mills', N'IL', 61544, N'BrendaMTyler@dayrep.com', 724021496, 3, 5) GO INSERT [dbo].[student] ([studentID], [name], [gpa], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [email], [ssn], [collegeID], [majorID]) VALUES (12, N'Robert M. Reynolds', 2.51, N'979-691-4100', N'M', CAST(N'1995-04-07' AS Date), N'2412 Colonial Drive', N'College Station', N'TX', 77840, N'RobertMReynolds@rhyta.com', 747829355, 1, 2) GO INSERT [dbo].[student] ([studentID], [name], [gpa], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [email], [ssn], [collegeID], [majorID]) VALUES (13, N'George C. Hundley', 2.38, N'615-477-3722', N'M', CAST(N'1997-09-22' AS Date), N'2104 Wilkinson Street', N'Nashville', N'TN', 37209, N'GeorgeCHundley@armyspy.com', 144835911, 1, 2) GO INSERT [dbo].[student] ([studentID], [name], [gpa], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [email], [ssn], [collegeID], [majorID]) VALUES (14, N'Dale C. Debose', 1.5, N'269-686-7743', N'M', CAST(N'1991-10-02' AS Date), N'2602 Goff Avenue', N'Allegan', N'MI', 49010, N'DaleCDebose@teleworm.us', 805049824, 1, 1) GO INSERT [dbo].[student] ([studentID], [name], [gpa], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [email], [ssn], [collegeID], [majorID]) VALUES (15, N'Brittany A. Shepard', 3.08, N'202-205-4876', N'F', CAST(N'1994-06-17' AS Date), N'4730 Northwest Boulevard', N'Washington', N'DC', 20024, N'BrittanyAShepard@jourrapide.com', 424418731, 3, 4) GO INSERT [dbo].[student] ([studentID], [name], [gpa], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [email], [ssn], [collegeID], [majorID]) VALUES (16, N'Iola E. Harris', 1.99, N'818-405-7088', N'F', CAST(N'1993-01-31' AS Date), N'3047 Edsel Road', N'Alhambra', N'CA', 91801, N'IolaEHarris@teleworm.us', 908152961, 1, 2) GO INSERT [dbo].[student] ([studentID], [name], [gpa], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [email], [ssn], [collegeID], [majorID]) VALUES (17, N'Nancy H. Free', 2.89, N'650-985-4024', N'F', CAST(N'1991-03-21' AS Date), N'1931 Haul Road', N'Daly City', N'CA', 94015, N'NancyHFree@armyspy.com', 507289163, 2, 3) GO INSERT [dbo].[student] ([studentID], [name], [gpa], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [email], [ssn], [collegeID], [majorID]) VALUES (18, N'Opal H. Connors', 3.96, N'253-983-7340', N'F', CAST(N'1988-01-17' AS Date), N'3094 Hill Haven Drive', N'Tacoma', N'WA', 98499, N'OpalHConnors@rhyta.com', 178723200, 3, 4) GO INSERT [dbo].[student] ([studentID], [name], [gpa], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [email], [ssn], [collegeID], [majorID]) VALUES (19, N'Donald V. Ford', 2.03, N'219-567-0733', N'M', CAST(N'1995-11-07' AS Date), N'2955 Parrill Court', N'Francesville', N'IN', 47946, N'DonaldVFord@dayrep.com', 568397169, 1, 2) GO INSERT [dbo].[student] ([studentID], [name], [gpa], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [email], [ssn], [collegeID], [majorID]) VALUES (20, N'Johnnie W. Horne', 3.13, N'714-776-6489', N'F', CAST(N'1996-08-13' AS Date), N'3764 Sunny Day Drive', N'Anaheim', N'CA', 92805, N'JohnnieWHorne@jourrapide.com', 718330684, 1, 1) GO SET IDENTITY_INSERT [dbo].[student] OFF GO SET IDENTITY_INSERT [dbo].[teacher] ON

GO INSERT [dbo].[teacher] ([teacherID], [name], [email], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [pay], [ssn], [collegeID]) VALUES (4, N'Paul K. Palos', N'PaulKPalos@dayrep.com', N'707-632-2867', N'M', CAST(N'1941-03-03' AS Date), N'2767 Marietta Street', N'Cazadero', N'CA', 95421, 48445.0000, 175953077, 1) GO INSERT [dbo].[teacher] ([teacherID], [name], [email], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [pay], [ssn], [collegeID]) VALUES (5, N'Anthony M. Haydon', N'AnthonyMHaydon@teleworm.us', N'845-753-5145', N'M', CAST(N'1957-08-26' AS Date), N'4645 Old Dear Lane', N'Sloatsburg', N'NY', 10974, 33395.0000, 605440888, 1) GO INSERT [dbo].[teacher] ([teacherID], [name], [email], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [pay], [ssn], [collegeID]) VALUES (9, N'Donald M. Swanson', N'DonaldMSwanson@armyspy.com', N'631-396-2500', N'M', CAST(N'1939-03-12' AS Date), N'1121 Wayback Lane', N'Hicksville', N'NY', 11612, 69584.0000, 921883999, 3) GO INSERT [dbo].[teacher] ([teacherID], [name], [email], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [pay], [ssn], [collegeID]) VALUES (11, N'Maria G. Royals', N'MariaGRoyals@rhyta.com', N'650-405-7631', N'F', CAST(N'1946-10-28' AS Date), N'439 Wolf Pen Road', N'Oakland', N'CA', 94612, 75593.0000, 157521336, 3) GO INSERT [dbo].[teacher] ([teacherID], [name], [email], [phonenumber], [sex], [dateofbirth], [address], [city], [state], [zip], [pay], [ssn], [collegeID]) VALUES (14, N'Tanya E. Halton', N'TanyaEHalton@armyspy.com', N'985-351-0098', N'F', CAST(N'1985-04-29' AS Date), N'1058 Bassel Street', N'Metairie', N'LA', 70001, 53298.0000, 456745683, 2) GO SET IDENTITY_INSERT [dbo].[teacher] OFF GO ALTER TABLE [dbo].[class] WITH CHECK ADD CONSTRAINT [FK_class_college] FOREIGN KEY([collegeID]) REFERENCES [dbo].[college] ([collegeID]) GO ALTER TABLE [dbo].[class] CHECK CONSTRAINT [FK_class_college] GO ALTER TABLE [dbo].[classroster] WITH CHECK ADD CONSTRAINT [FK_classroster_classsection] FOREIGN KEY([sectionID]) REFERENCES [dbo].[classsection] ([sectionID]) GO ALTER TABLE [dbo].[classroster] CHECK CONSTRAINT [FK_classroster_classsection] GO ALTER TABLE [dbo].[classroster] WITH CHECK ADD CONSTRAINT [FK_classroster_student] FOREIGN KEY([studentID]) REFERENCES [dbo].[student] ([studentID]) GO ALTER TABLE [dbo].[classroster] CHECK CONSTRAINT [FK_classroster_student] GO ALTER TABLE [dbo].[classroster] WITH CHECK ADD CONSTRAINT [FK_classroster_teacher] FOREIGN KEY([teacherID]) REFERENCES [dbo].[teacher] ([teacherID]) GO ALTER TABLE [dbo].[classroster] CHECK CONSTRAINT [FK_classroster_teacher] GO ALTER TABLE [dbo].[classsection] WITH CHECK ADD CONSTRAINT [FK_classsection_class] FOREIGN KEY([classID]) REFERENCES [dbo].[class] ([classID]) GO ALTER TABLE [dbo].[classsection] CHECK CONSTRAINT [FK_classsection_class] GO ALTER TABLE [dbo].[major] WITH CHECK ADD CONSTRAINT [FK_major_college] FOREIGN KEY([collegeID]) REFERENCES [dbo].[college] ([collegeID]) GO ALTER TABLE [dbo].[major] CHECK CONSTRAINT [FK_major_college] GO ALTER TABLE [dbo].[student] WITH CHECK ADD CONSTRAINT [FK_student_college] FOREIGN KEY([collegeID]) REFERENCES [dbo].[college] ([collegeID]) GO ALTER TABLE [dbo].[student] CHECK CONSTRAINT [FK_student_college] GO ALTER TABLE [dbo].[student] WITH CHECK ADD CONSTRAINT [FK_student_major] FOREIGN KEY([majorID]) REFERENCES [dbo].[major] ([majorID]) GO ALTER TABLE [dbo].[student] CHECK CONSTRAINT [FK_student_major] GO ALTER TABLE [dbo].[teacher] WITH CHECK ADD CONSTRAINT [FK_teacher_college] FOREIGN KEY([collegeID]) REFERENCES [dbo].[college] ([collegeID]) GO ALTER TABLE [dbo].[teacher] CHECK CONSTRAINT [FK_teacher_college] GO USE [master] GO ALTER DATABASE [college_databse] SET READ_WRITE GO

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Logidata+ Deductive Databases With Complex Objects Lncs 701

Authors: Paolo Atzeni

1st Edition

354056974X, 978-3540569749

More Books

Students also viewed these Databases questions