nt database. The primary keys are highlighted in bold. Student (studNo, studName, address, mobileNo) Registration (studNo, courseNo, regDate, semester, session) Course (courseNo, courseNam
Q: Please explore the database and then write the appropriate SQL command. 1.List all drugs whose…
A: The given is the requirement to be solved in SQL where three tables are already created with some…
Q: Write the sql commands to obtain the following information from the system catalog
A: a) The table SYSTABLES is the table of system catalog that contains information about the tables…
Q: Based on the above tables, write the SQL statements for each of the following operation: 1. Create…
A: According to the asked question, the solution is given below with a proper explanation. Keeping a…
Q: Display names of all those students who have “A”
A: Note: There are multiple questions are given in one question. According to the rule, you will get…
Q: Given the following relational schema (Hint: the bold text represents a primary key), Department…
A: From the above question, we have the condition as ,dept_code and stu_num are primary keys that means…
Q: Online shopping system & online book store: Rebuild View/Edit cart and checkout pages using PL/SQL…
A: {"generalGuidance"::"sections":[{"sectionId":"50c4cd6a-2383-4c53-b65d-4c2b1304a00d","title":"","text…
Q: Write the code steps to perform the following within SQL Create a database pearing the name of the…
A: we can perform this database designing in RDBMS software for example Oracle RDBMS. Below are the…
Q: The relational schema shown below is part of a hospital database. The primary and foreign keys are…
A: Here we will use to_char() function which converts date format into string and then we will apply…
Q: DataBase Use EMP and DEPT tables, in the Live SQL, to perform the following operations. Upload your…
A: Hey there, I am writing the required solution(query) based on the above given question. Please do…
Q: Create a database that contains four tables department, employee, address and contact info, then…
A: SQL (Structured Query Language) is a standardized programming language that's used to manage…
Q: The following figure is part of a university database. LNAME and FNAME stands for last name and…
A: Project operation (denoted by pi (∏) symbol) is used to select desired columns (or attributes) from…
Q: The relational schema shown below is part of a hospital database. The primary and foreign keys are…
A: A database is a collection and assembly of information that is organized in a way that can easily be…
Q: Student(StudentID, age) School(SchoolID, city) Write an SQL statement for the following query: For…
A: The above question is solved in step 2:-
Q: what sql statements could be use to find the following: A simple database composed of the following…
A: 1. SELECT DRUG_CODE , ROUND(DRUG_PRICE, 1) AS PRICE_ROUNDED FROM DRUG; OUTPUT : Selects the column…
Q: Computer Science Table student with the attribute’s student_Id, Fname, Lnameme, Date of Birth,…
A: According to bartleby guidelines we need to answer only first 3 subparts, please repost remaining…
Q: artists: artist_id, first_name, last_name, contact_no, Profession ,birth_date ,address awards:…
A: The SQL query is written based on the given details to get the output as mentioned.
Q: Hi I hope you can help me. I will rate the answer. Use MYSQL do it in a .sql format. Also please…
A: Given :- Hi I hope you can help me. I will rate the answer. Use MYSQL do it in a .sql format. Also…
Q: Find and display sales men that must not be living in the city similar to their customers also got a…
A: According to out guidelines, we are allowed to solve only the first three subparts of the question.…
Q: 1- Give an example of the following below in PL/SQL, and briefly describe the purpose of each. a)…
A: ( A ). Procedure :- A Procedure in PL/SQL is a subprogram unit that comprises of a gathering of…
Q: are underlined. Give an expression in SQL for each of the following queries. Student(studentID,…
A: 1) SELECT full_name, school_name FROM Student NATURAL JOIN School WHERE age>=10 AND age<=15
Q: Consider Following Tables. Student ( regNo, sName, sCity, sCGPA, sAge) Course ( cCode, cName,…
A: note: we are only allowed to solve maximum of three sub-part in one question. Please post other part…
Q: use sql to Display customer Id, customer name and total number of orders for customers
A: As the table name is not mentioned in the question, assume the name of the table is Customer_info.…
Q: Given the structure and contents of the SaleCo database shown in Figure below, use SQL commands to…
A: Request Organized Linguistic: SQL (Resource Description Framework) is a statistical terminology for…
Q: List doctor’s details where speciality is either Dermatology or Neurology. (Use INoperator). List…
A: The given requirement is to be solved in database SQL where the DOCTOR table is already created with…
Q: Below is part of a Student database. The primary keys are highlighted in bold. Student (studNo,…
A: The below sql statements are to calculate the amount to be paid for a student for all courses he/she…
Q: Create in PL/SQL a stored procedure called 'StudentsActivities' to display the list of students and…
A: The PL/SQL stored procedure is a PL/SQL block which performs one or more specific tasks. The…
Q: Please help with the following: Using oracle sql live or sql developer what sql statements could be…
A: 1.List all the rows in which the prescription dates occur on or after November 14. SELECT * FROM…
Q: Write SQL retrieval commands for each of the following queries:a. Display the course ID and course…
A: You didn't provide any tables for query, So I am assume the name of tables and its attributes…
Q: Write queries in SQL to answer each of the following questions:…
A: Below are the required queries: As per our company guidelines we are supposed to answer only first 3…
Q: Given the following table: Student ( id, first_name, last_name, address, program, phone), which of…
A: Here there are multiple questions asked so I have given answer of first 3 question so post remaining…
Q: Create a SQL statement to Display the number of clients for each CType with having less than 2…
A: We will display the count of number of clients where there are less than 2 clients based on ctype.…
Q: Please answer all the question from the SQL: Create table with the name AcademicDetails with…
A: Sql is the structured query languages. It is called as the domain specific languages where we use to…
Q: The relational schema shown below is part of a hospital database. The primary and foreign keys are…
A: Oracle:- Oracle database is developed by Oracle corporations and is used as a system to collect data…
Q: The aim of assignment 1 is to implement a database schema and execute different types of SQL queries…
A: CREATE table Student (studid char(9) primary key, FirstName varchar(50) NOT NULL, LastName…
Q: Answer these question by using these tables. Please. Create in PL/SQL a stored procedure called…
A: I have answered this question in step 2.
Q: Assume the following tables: Student (studid, email, name) Club (clubid, telephone, name,…
A: PL/SQL is a modern, block-structured programming language. It provides several features that make…
Q: SQL QUERIES Employees(EMPLOYEE_ID,FIRST_NAME,LAST_NAME,EMAIL,PHONE_NUMBER,HIRE_D…
A: As the database is not mentioned, I am using MYSQL. Create the table employee. Here sys is the…
Q: Create a procedure that takes instructor_ID as a parameter. Name it INSTR_SECTIONS. The procedure…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: use national join plz Consider the education database with student and scho ,where the primary keys…
A: We have created student and school tables, where the primary keys are underlined. Using below Given…
Q: The InstantRide Finance team wants to collect the price and discount information with the driver…
A: ON is a clause used in SQL to combine the data on two tables on particular condition Here, we are…
Q: The following figure is part of a university database. LNAME and FNAME stands for last name and…
A: Since you have posted a question with multiple sub-parts, according to the company's policy we will…
Q: _ID, FIRST_NAME, LAST_NAME, EMAIL, PHONE_NUMBER, HIRE_DATE, JOB_ID, SALARY, COMMISSION_PCT,…
A: Employees(EMPLOYEE_ID, FIRST_NAME, LAST_NAME, EMAIL, PHONE_NUMBER, HIRE_DATE,JOB_ID, SALARY,…
Q: Display details of jobs where the minimum salary is greater than 10000. Display details of employee…
A: Assuming the following two tables in the HR database: JOBS(job_id, job_title, min_salary,…
Q: Please help with the following: Using oracle sql live or sql developer what sql statements could be…
A: The BETWEEN operator selects values within a given range. The values can be numbers, text, or dates.
Q: use sql to answer the following question To perform below tasks, refer to tables in the JustLee…
A: Question 1. Create a list that display the title of each book and the name and phone number of the…
Q: Write PL/SQL or T-SQL procedures to retrieve and output the reservation ID, trip ID, number of…
A: According to the question below the solution:
Q: Instructor(Instructor_Id, Instructor_Name, specialization, Address,#Department_Id)…
A: Given: Instructor(Instructor_Id, Instructor_Name, specialization,…
Q: Execute the following statements using MYSQL: 1. Insert a row with the values (005, "Your name", ,…
A: 1. Insert a row with the values (005, "Your name", , "Your Dept", 50000, 40) 2. Create a trigger…
Below is part of a Student
Student (studNo, studName, address, mobileNo)
Registration (studNo, courseNo, regDate, semester, session)
Course (courseNo, courseName, creditHour, level)
Project (projNo, projName, courseNo)
QUESTION :
1. Write a PL/SQL PROCEDURE that will list the project names given the course ID.
2. Call the procedure from an anonymous block. Allow the user to enter the course ID (courseno)
Step by step
Solved in 3 steps
- Adjust the following information so that1) all users on the system are able to run the SQL Executable and 2) multiple users (such as a team of software engineers) have the power to modify the SQL Executable Introduce any new groups that are needed and assign them group IDs USERS SQL Manager UID: 3 GROUPS SQL Users GID: 5 FILESDatabase File Owner 3 Group NA owner: rw group: - world: - setUID: 0 setGID: 0 sticky: 0 SQL Executable Owner 3 Group 5 owner: rwx group: r-x world: - setUID: 1 setGID: 0 sticky: 0Table: Task Primary key: TaskID Foreign key: Team MemberID TaskID 1 2 3 Description Build login screen Implement inventory management Add logo to splahs 1 screen Duration StartDate 2022-05-06 4 10 TeamMemberID 2 1 2022-05-15 1 2022-05-06 2 Write a SQL statement that will add the below row to the Task table. TaskID Description Duration StartDate Team MemberID 3 4 Implement 2022-05-07 email notifications Write a SQL statement that will change the value of the Task description with ID 3 to "Add logo to splash screen".The attribute AGE is calculated from DATE OF BIRTH. The attribute AGE is: A Single valued. B Multivalued. C Derived. D Composite.
- An insurance company needs to store their salespeople’s information who are selling their insurance policies. They already have a database with multiple tables, one of the tables (Salesperson) stores information about each salesperson along with the bonus percent they receive, based on the city where the insurance is sold. The table has the following fields: Salesperson(spID, spName, spBirthDate,spCitySelling, bonusPercent) spID: Unique identification number of the salesperson. spName: Full name of the salesperson. spBirthDate: Birthdate of the salesperson. spCitySelling: The city in which the salesperson is selling the insurance. bonusPercent: The bonus percent received by the salesperson based on the city in which he/she sells the insurance. Each salesperson can sell the insurance in just one city. However, for a city, there can be more than one salesperson appointed. Also, the bonus percent is fixed for each city. For example, all of the salespeople who sells insurance in…Access Assignment Problem: JMS TechWizards is a local company that provides technical services to several small businesses in the area. The company currently keeps its technicians and clients’ records on papers. The manager requests you to create a database to store the technician and clients’ information. The following table contains the clients’ information. Client Number Client Name Street City State Postal Code Telephone Number Billed Paid Technician Number AM53 Ashton-Mills 216 Rivard Anderson TX 78077 512-555-4070 $315.50 $255.00 22 AR76 The Artshop 722 Fisher Liberty Corner TX 78080 254-555-0200 $535.00 $565.00 23 BE29 Bert's Supply 5752 Maumee Liberty Corner TX 78080 254-555-2024 $229.50 $0.00 23 DE76 D & E Grocery 464 Linnell Anderson TX 78077 512-555-6050 $485.70…In SQL This sample database consists of the following tables(see image for tables and there is one more at the bottom in this text):• Customers: stores customer’s data• Products: stores a list of scale model cars• ProductLines: stores a list of product line categories• Orders: stores sales orders placed by customers• OrderDetails: stores sales order line items for each sales order• Payments: stores payments made by customers based on their accounts• Employees: stores all employee information as well as the organization structuresuch as who reports to whom• Offices: stores sales office data Write SQL code for the following:We want to add a new sale order for the customer (customerNumber = 145) in thedatabase. The steps of adding a sale order are described as follows:(1) Get latest sale order number from “orders” table, and use the next sale ordernumber as the new sale order number(2) Insert a new sale order into “orders” table for the customer (customerNumber =145). For this order, the…
- The database has three tables for tracking horse-riding lessons: Horse with columns: ID - primary key RegisteredName Breed Height BirthDate Student with columns: ID - primary key FirstName LastName Street City State Zip Phone EmailAddress LessonSchedule with columns: HorseID - partial primary key, foreign key references Horse(ID) StudentID - foreign key references Student(ID) LessonDateTime - partial primary key Write a SELECT statement to create a lesson schedule for Feb 1, 2020 with the lesson date/time, student's first and last names, and the horse's registered name. Order the results in ascending order by lesson date/time, then by the horse's registered name. Make sure unassigned lesson times (student ID is NULL) appear in the results.You are expected to create a student registration system by using C# form application and SQL Server. Project may contain at least the following data by obeying the normalization rules: Data about student's personal information (like adress, phone number, blood type, etc...) Academic information of the students, Course information, Data about the academic personnel. Program may have an answer at least for the following situations: Course list registered by a student. The student list of a searched course. The students of an instructor. The course list that is given by an instructor. The course list that is taken by a student. The instructor(s) that is/are giving a searched course. The age of the male students whose ages are greater than 30 (maybe for military service). List of students who have previously taken the selected course and are nov w re-enrolled The most succesful student in the system and at a course. Give opportunity to delete the students, courses and instructor according…Problem Statement: You are the CTO of a startup based out of Arlington, VA that needs to setup a database to keep track of the details of the customers: last name, first name, customer ID, street address, customer star rating (a rating on a 1– 5 scale, with 5 being best, representing the type of customer) and phone number. It also needs to keep track ofsimilar information for suppliers as well (although instead of supplier first and last name, there will just be a suppliercompany name). The database should maintain the data on products that are offered. Information about whichproduct is offered by which supplier should also be maintained. Finally, which customers have purchased whichproducts should also be tracked (note that we are only interested in which customers bought which product, but notconcerned about the date or how many were bought). 1.1 Business Rules: Assumptions for the business model are as follows:•Only customers that have purchased one or more products will exist in…
- A better design would be one with the following tables: Patient : | pid | name | dob | addr | tel | Exam : | acc | pid | eid | result | date | ExamDictionary : | eid | name | normal | Questions: Create SQL queries (select statements) that accomplish the following. 1. List all of the Exams for Ms. Jones (pid=12). 2. List all of the Patients that hail from jolly old London. 3. List all of the Exams with results that exceed their normal. 4. List the name of all Patients that had Exams with results that exceed their (the exam’s) normal. 5. List the name of all Patients that had Exams with results that exceed their (the exam’s) normal, but list names only once and in alphabetical order.The relational schema shown below is part of a hospital database. The primary and foreign keys are highlighted in bold. Patient (patientNo, patName, patAddr, DOB)Ward (wardNo, wardName, wardType, noOfBeds)Admission (patientNo, wardNo, admissionDate)Drug (drugNo, drugName, costPerUnit)Prescribed (patientNo, drugNo, unitsPerDay, startDate, finishDate) Write SQL queries based on the hospital database given above: 1. Create the above tables together with its constraints. 2. Insert some data into the tables to check that the tables created are correct. No limit on how many rows you want to add. Insert Syntax:insert into table_namevalues (col1_value, col2_value, etc.); 3. List all the patients’ details, alphabetically by name. IF YOU WANT SOME CHALLENGE4. List all the patients admitted today. (Join between Patient and Admission table)SQL QUERIES Employees(EMPLOYEE_ID, FIRST_NAME, LAST_NAME, EMAIL, PHONE_NUMBER, HIRE_DATE,JOB_ID, SALARY, COMMISSION_PCT, MANAGER_ID, DEPARTMENT_ID,DEPARTMENT_NAME)Department(DEPARTMENT_ID, DEPARTMENT_NAME, MANAGER_ID, LOCATION_ID)Location(LOCATION_ID,STREET_ADDRESS,POSTAL_CODE,CITY,STATE_PROVINCE,COUNTRY_ID) Write a Query in SQL to delete the record of all those cities where city name ends with b fromlocations table.