Question: Project 2 - Importing and Getting Data CSC 2 2 3 5 Gregory Book, MS Objectives Become familiar with importing and selecting data from a
Project Importing and Getting Data
CSC
Gregory Book, MS
Objectives
Become familiar with importing and selecting data from a database.
Background
Expanding upon Project we will now attempt to input data into our database and get data out of the database. Getting data into the database uses the INSERT statement. Getting data out of the database uses the SELECT statement.
The Assignment
There is a SQL file provided on Blackboard that contains tables for a research subject database. Import this file into your MariaDB database using HeidiSQL.
Get the row counts of the imported tables
Perform the following queries and get the row counts for each of them:
a Find all Male gender M subjects between the age of and and
b Find all subjects with a name starting with a
c Find all imaging series where the subject was female and aged to and For this query, you will need to calculate the "age at imaging scan" which will be the difference between their birth date and the seriesdatetime
d Perform the query in part c and also find seriesdesc that contains 'localizer'
e Find the number of subjects that have at least one imaging series that has more than files seriesnumfiles column
What to submit
A document containing the following:
The row counts for each of the four tables
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
