Doctor id Doctor_name Degree Join year Salary D550 Saleh Khalil DM 2001 1700 D551 Osama Ahmad DPM 2011 2100 D552 Sarah Qasim B.Med 2013 1500 D553 Zuhair Mohammad DOM 2008 1600 D554 Amera Jalal MBBS 2006 1000 1.Show the doctor name and the degree IN the following format. Example Saleh Khalil is DM Doctor
Q: CONCAT the patients’ first and last name and display their DOB in the following format ‘DD, Month…
A: According to a question we need to CONCAT the patients’ first and last name and display their DOB in…
Q: From worksheet Laptop, in cell 15, find the category if 600 < Price <=D1030 then Category is "C1"…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: Consider the following table then answer the following questions? Stld StNameCourseName Courseld…
A: Yes the above given table is in 1NF or first normal form. It states that all the values in the…
Q: employeeAbsences.bxt # × daysOut.cpp EMPLOYEE ABSENCE REPORT employee id 1234 days absent 3 22 667 4…
A: C++ code :- #include <iostream> using namespace std; int main() { string id; int…
Q: Your Name - Week 1 PA Classes Initial information for each employee Name: John Jones Monthly Salary:…
A: As per the requirement program is developed in java. Algorithm: Step 1: Write the Employee class…
Q: Create the following table with the following structure Doctors: Column Name Doctor id Doctor_name…
A: According to the Question below the Complete Query
Q: Table EMP Column name EMPNO ENAME Column type Integer Up to 10 characters Example entry 7369…
A: Given: - The solution as per the given information
Q: Based on the ERD below, display Employee first name, middle initial and last name so it displays in…
A: In this case, the whole name is displayed in a single column of employees where the job code is…
Q: Add the following values in the table Doctor id Doctor_name Degree Join_year Salary D550 Saleh…
A: DOCTOR TABLE: CREATE TABLE DOCTOR(Docotr_id varchar2(5),Doctor_name varchar2(25),Degree…
Q: Display the manager number and the salary of the lowest paid employee for that manager. Exclude…
A: We will write SQL query to solve the given problem.
Q: 4. Display customer ID, customer name, and the order ID and the order date of all orders for…
A: 4) SELECT c.CUSTOMER_ID, c.NAME, o.ORDER_ID, o.ORDER_DATE, oi.QUANTITY AS "Total Items",…
Q: Using a SET operator, Display all names that are used both as a last name and a first name. Example:…
A: SET operators are special type of operators which are used to combine the result of two queries.…
Q: Person(Name, Age, Phone, Extension) Find all names whose Extension starts with 5 folllowed by any…
A: we want it to start from 5, have exactly one character in the second place, which is denoted by the…
Q: Complete the following exercise: Alter your student table adding a new column called enroll_date…
A: Alter your student table adding a new column called enroll_date using the datetime data type.…
Q: The pg2.np_2016traffic table contains monthly traffic statistics from the National Park Service for…
A: Given : we have to create a new table which will contain monthly traffic statistics with park names.…
Q: Create a series called 'directors' that contains each director's name and his or her average rating.…
A: #include<bits/stdc++.h> using namespace std; Struct director( string name; int rating; } int…
Q: US gun murders by state for 2010 Description: Gun murder data from FBI reports. Also contains the…
A:
Q: Find the first names and last names of employees if they got a salary increase more
A: create table commands and inserting sample data into the table for query create table employees…
Q: ISKier the SALEMAD NAME MUMERIC (8) WICHAR) wCHAR (16 DECMALD aSTOMERD MERC(S) CUT NAE CHR ( CITY…
A: The required query is given in step 2.
Q: Column Name Sie Constraints Data Type DepelD Varchar 4 Primary key DepeName 40 Not mull Varchar…
A: I have created the query below for the table:
Q: The following query throws an error. Choose the correct reason for the error as given in the options…
A: Here B and C both part are correct R square always increase with increase in number of variable…
Q: EMP NO EMP NAME | EMP COMM DEPTNO | DEPT NAME | MIN SAL | MAX SAL | DEPTNO EMP EMP SAL | DEPTNO |…
A: /* Creation of EMP table, I am creating column EMP_FIRST_NAME and EMP_LAST_NAME instead of…
Q: Question 2: implement get_athletes() function and return a list of athletes * Requirement: the…
A: Answer: MySQL Source Code: CREATE TABLE athletes( id int not null PRIMARY KEY AUTO_INCREMENT,…
Q: Happy Shop sells different products to the customers. A customer could buy one or more products at a…
A: Ans: The primary key for the given table is customer ID. The 3 different update anomalies are as…
Q: paid salesperson for 10 months. The following are the monthly paychecks in $: 3000, 3300,
A: THE CODE IS IN BELOW STEP
Q: epartment DepartmentID DName ContactNo 1 UIIT 0300-1234567 2 UIMS 0300-4567891 Student RollNo…
A: required: Function which takes input data (RollNo, Sname, Fname and DepartmentID) of student from…
Q: 15. List the first name for all contacts and whether they have a spouse or not (yes/no). Order by…
A: Structured Query Language : SQL ( Structured Query Language) is an area explicit language utilized…
Q: The following table stores details of tutors, students and dates of lectures. The Primary Key is…
A: Rules regarding 2nd NF:- tables must be in 1st NF. No non-prime is functionally dependent on part…
Q: There's a "messages" table that has more than 1 million rows of information about the messages that…
A: Given Data : Table name : messages Table attributes : message_id from_user_id to_user_id…
Q: Add the following values in the table Doctor id Doctor_name Degree Join_year Salary D550 Saleh…
A: 4. Show the doctor's names, degree and salary for all doctors who hoint between 2010 and 2015 select…
Q: Department DepartmentID DName ContactNo 1 UIIT 0300-1234567 2 UIMS 0300-4567891 Student RollNo Sname…
A: Actually, given information: Department DepartmentID DName ContactNo 1 UIIT 0300-1234567 2 UIMS…
Q: The file P02_02.xlsx contains data on 256 movies that grossed at least $1 million in 2017. • Recode…
A: The table containing data about 211 movies released is given below.
Q: 5. Display the employee name and department number of all employees in departments 10 and 30 in…
A: Before writing the query for the given condition we have to create the table and then we have to…
Q: I. Which normal form is the following table in? I. Transfer the table to 3rd Normalised form and…
A: Primary key is (agreementID, BuildingID) The FDs are AgreementID -> Duration UnitID ->…
Q: Objective: At the end of the exercise, the students should be able to: Use arithmetic operators and…
A: Given student course table for we have to create table and insert data and write the queries using…
Q: 1. Using Printf , \t & \n and get the ouput as shown below *** **** **** CIMS Student Result Report…
A: Sample Response: //C programming language#include <stdio.h>//main function definitionint…
Q: Create a function that calculate the total commission
A: The solution is written in SQL query. Please check step 2 for the solution.
Q: Subject SubjectNO Student SUB_Name STD_Name Pre SUB STD NO Registration SubjectNO STD NO REG date…
A: A procedure in SQL is a reusable unit that encapsulates the specific business logic of the…
Q: Display all the student names whose grade is C. Display the Section-Identifier and Course-name…
A: The answer is
Q: TABLE FOR EMPLOYEE SALARY EMP ID EMP NAME TOTAL SALARY TAX1 TAX2 NET SALARY notes 1 TAYSEER 850 tax1…
A: The given problem is to be solved in Excel using suitable formulas to find the output value for each…
Q: The following statement uses a non-correlated subquery to find the South American country with the…
A: Question 1. The following statement uses a non-correlated subquery to find the South American…
Q: The Movie table has the following columns: ID - integer, primary key Title - variable-length string…
A: The query along with a screenshot of the output is given below.
Q: Based on given data sets (car_final.csv and car_insurance.CSV), complete the following tasks:
A: As mentioned the question the datasets are : --> car_final.csv --> car_insurance.csv a) Code…
Q: Customer ID 1 2 3 4 5 6 7 8 9 10 Items of transaction {A,B,E,D} {A,C,D,E} {D,E,A} {E,B,A,C}…
A: please do upvote for my efforts ! answer:
Q: Select "Patent Number Search" for patents. Give the title or brief description for each of the…
A: Question = Select "Patent Number Search" for patents. Give the title or brief description for each…
Q: Use the Histogram tool to construct frequency distributions and histograms for weekly usage and…
A: 1) Histogram for Weekly usage
Q: V M.Code Module B M_Code M_Name M_Credit M_Duration Write SQL statements for the following: 6.1…
A: please do upvote for my efforts thanks! anwer: 6.1) CREATE TABLE Students( S_ID int…
Q: 18. The HR department needs a report of employees in Toronto. Display the last ame, job, de ment…
A: We are supposed to solve only question, please repost other question. The query is written for…
Q: The sold products names for each date should be sorted lexicographically. Return the result table…
A: Create Activities table: CREATE TABLE Activities(sell_date date,product varchar(50));…
Step by step
Solved in 3 steps with 1 images
- You are given this table: Registration SID CourseID SemID Instructor Grade 282712 ENGL210 201701 H. Zacny B+ 362112 CS101 201701 K. Ross C 652123 CS403 201701 K. Ross A 362112 CS403 201701 K. Smith C+ 282712 BIO101 201601 I. Olsen C What will the result of the following query be? select sid, count(*)from registrationgroup by sid Select one: a. The entire table sorted by sid b. No results due to an error c. 282712 2362112 2652123 1 d. 282712 1362112 1652123 1MySQL CREATE TABLE students ( id INT PRIMARY KEY, first_name VARCHAR(50), last_name VARCHAR(50), age INT, major VARCHAR(50), faculty VARCHAR(50)); CREATE TABLE location ( id INT PRIMARY KEY, name VARCHAR(50), rooms INT); CREATE TABLE faculty ( id INT PRIMARY KEY, name VARCHAR(50), department_id INT); 4. Find the number of employees in each department who get no commission or have salary less than5000.5. Find the maximum salary of employees in each department that the employee was hired 15 yearsbefore now. *hint: user TIMESTAMPDIFF(<unit type>,<Date_value 1>,<Date_value 2>), the unitcan be YEAR, MONTH, DAY, HOUR, etc...6. Find the last name of all employees that were not hired on Tuesday *hint: (UseDATE_FORMAT() function amd the format you need is %W, also use UPPER()7. Find the number of employees in each department who have a manager.8. Find the number of employees for each manager whose employees' minimum salary is greaterthan 5000.9. Find the number of…Using MySQL, populate the CUST_LNAME, CUST_FNAME, and CUST_BALANCE fields with the following customers: CUST_LNAME CUST_FNAME CUST_BALANCE Smith Jeanne 1050.11 Ortega Juan 840.92
- Create a table named BOOK_STORES to include the columns listed in the following chart.Attempt to view the structure of the HOMEWORK13 view.Insert the following data into your database tables.STUDENTSSTUDENT_ID STUDENT_NAME STUDENT_SURNAMES123456 Neo PetleleS246810 Derek MooreS369121 Pedro NtabaS654321 Thabo JoeS987654 Dominique WoolridgeMODULESMODULE_ID MODULE_NAME MODULE_CREDITDATA6212 Database Intermediate 30INPU221 Desktop Publishing 20PROG6211 Programming 2A 15PROG6212 Programming 2B 15WEDE220 Web Development (Intermediate) STUDENT_MODULESSTUDENT_ID MODULE_IDS123456 PROG6211S123456 PROG6212S246810 DATA6212S369121 DATA6212S369121 INPU221S369121 WEDE220S987654 PROG6211S987654 PROG6212S987654 WEDE220LECTURERSLECTURER_ID LECTURER_NAME LECTURER_SURNAMEL578963 Kwezi MbeteL876592 Julia RobinsL916482 Trevor JanuaryLECTURER_MODULESMODULE_ID LECTURER_IDDATA6212 L578963INPU221 L876592PROG6211 L916482PROG6212 L916482WEDE220 L876592Correct INSERT statements used and all data correctly inserted per table.
- Below are some rows of the table INVOICE COD PROV_COD DATE TYPE LOC TOTAL 2910 192 2022-03-11 90 TX 1928 9301 384 2022-05-03 90 NY 2800 Overdue invoices are those whose date plus TYPE days have passed. Which of the following shows all invoices with overdue dates? a. SELECT * FROM INVOICE WHERE CURDATE() - DATE > TYPE b. SELECT * FROM INVOICE WHERE CURDATE()-TYPE >DATE c. SELECT * FROM INVOICE WHERE DATE+TYPE < CURDATE() d. SELECT * FROM INVOICE WHERE DATE+TYPE > CURDATE()CREATE TABLE DONORS (donor_id INT NOT NULL,donor_name varchar(255) NOT NULL,donor_age int,PRIMARY KEY (donor_id ));CREATE TABLE DONATIONS(pledge_id INT NOT NULL,pledge_date varchar(255) NOT NULL,amount_pledged int,Is_paid int,donor_id int,PRIMARY KEY (pledge_id ),FOREIGN KEY (donor_id) REFERENCES DONORS(donor_id)); 1. Populate every relation with three rows.1- Display contact First name and contact Last name for customers after sorting the customersby their contact Last name in ascending order.2- selects the order line items (orderNumber, orderlinenumber) from the “orderdetails” table.Also, display the subtotal (quantityOrdered * priceEach) for each line item and sorts the resultset based on the subtotal descending .3- Display unique last names from employees table ordered by last name.4- Display customerNumber, customerName and creditLimit for getting the top five customerswho have the highest creditLimit.5- Find customer Name, customer country, sales representative employee number fromcustomers who do not have a sales representative.6- For each order status, display status and count of orders have this status.7- For Each order number in order details table, Display order number, sum of quantity ordered(itemsCount) and sum of (priceEach * quantityOrdered) as total. With condition “total”greater than 1000.8- Display product code, product…
- Assume the EMPLOYEE table contains four attributes, ID, DEPT, SALARY and NAME, and has the following rows ID DEPT SALARY NAME 100 SALES 40000 Smith 101 RD 38000 Terry 102 HR 60000 David 103 SALES 58000 Ellie 104 RD 70000 Judy The DEPARTMENT table contains two attributes, DEPTNAME and PHONE, and has the following rows: DEPTNAME PHONE RD 8596001234 SALES 8596005555 HR 8596009876 A.) The EMPLOYEE table needs to enforce the following integrity constraints: • The ID is the primary key. • The DEPT column is a foreign key that references the DEPTNAME in the DEPARTMENT table, so that any value that appears in the DEPT column should also exist in the DEPARTMENT table. • The value for the NAME column can never be null. What should be the statement used to create the EMPLOYEE table, if 1) the table was created as a partitioned table such…4. Update the name of the student to "John Doe" where its id is 10. Enter your answer 5. Modify the "student" table by adding "address" column/field as string and allows null.Given the following relation that stores details of student registration: Stu_ID Name Town Province Course RegisteredDate S101 Malak Al Nadabi Al Khuwair Western ITDR2106 02-02-2020 S101 Malak Al Nadabi Al Khuwair Western ITDR1105 14-09-2019 S102 Nadar Al Hashli Daesit Southern ITDR1102 05-02-2020 S102 Nadar Al Hashli Daesit Southern ITDR1101 05-02-2020 S103 Basit Barkat Ruwi Central ITDR1105 06-02-2020 S104 Yeshan Al Khuwair Western ITDR2106 15-09-2019 If the functional dependencies are consistent with the above relation, put TRUE. If they are not, put FALSE. Stu_ID à Name, Town Town à Province Course à RegisteredDate RegisteredDate à Course Stu_ID, Course à RegisteredDate Stu_ID à Course Stu_ID