Create a web page where students can submit their specialization choice. They need only the name, specialization and studentid. Start WAMP server, open PHPMyAdmin and create a database "dbfinal". Create a table "tbl_specialization " for storing the name, specialization and sid (studentid). The structure of the table is shown below: Name Туре name varchar(50) sid varchar(10) specialization varchar(50) Create a webpage as shown below that accepts the data from the user and then inserts it in the database table "tbl_specialization ". The page should give a feedback message indicating whether the data has been successfully inserted or not. Specilaization Choice Your Name: Student Id: 9999999 Choose specialization : Software Engineering Database Network Security Submit Now
Q: We have database (company) that includes two tables: 1. Department (DeptNo, Dname, location). 2.…
A: PHP (Hypertext Pre-processor) is known as the standard target language that can be used to develop…
Q: Which of the following data dictionary objects should be used to view information about the…
A: Data Dictionary: A data dictionary is an essential part of database. It is defined as the…
Q: create Database CTU_YOURICASNO GO USE CTU_YOURICASNO; GO CREATE TABLE Course( CourseID int…
A: Given: Using the INSERT statement, Add five rows of distinct dummy data per table. On the course…
Q: Use below command to build and load initial data to inventory collections.. There must be 8…
A: Given: db.inventory.insertMany( [ { item: "journal", qty: 25, size: { h: 14, w: 21, uom: "cm" },…
Q: O Presidential suite can accommodate at most 5 persons; If any data is invalid, you need to prevent…
A: Here i am writing php and explain each line:…
Q: Our MongoDB database consists of a ‘class’ collection in which documents represent students and have…
A: Solution: Given, Collection name is "class" ‘address’ is an embedded document with fields…
Q: Part A: MySQL Query/Exec Create StudentsDB database in MySQL server with the following table:…
A: Answer
Q: ?php namespace Database\Seeders; use Illuminate\Database\Seeder; class Fakeseeder extends Seeder
A: <?рhр nаmesрасe Dаtаbаse\Fасtоries; use Арр\Mоdels\Соntасt;use…
Q: Which of the keys below are not supported by a relational database? a. Foreign keys b.…
A: As per our guidelines we are supposed to answer only one question so please post the other question…
Q: We need to create a database for the Circulation Department of a public library. The database will…
A: The database schema would have the following structure. The primary keys are underlined and foreign…
Q: Use below command to build and load initial data to inventory collections.. There must be 8…
A: use db : to create a database named db ------------------------------------------------------…
Q: This example shows the following: • CREATE PROCEDURE statement for a parameter style SQL procedure •…
A: #include <stdio.h> #include <string.h> #include <stdlib.h> #include…
Q: A University Try to complete the tasks below. Create a MYSQL Database named ' Create a MYSQL User…
A:
Q: We need to create a database for the Circulation Department of a public library. The database will…
A: Database schema: The database schema would have the following structure (primary keys are italicised…
Q: upid type user address upld img-id user name upid desc #upid id upid date login role id #login id…
A: For the above task , the following SQL statement should be used: CREATE TABLE PERMISSION (OWNER INT…
Q: create a history page based on a history table in a database. To be specific, you are asked to…
A: A Web Service which refers to an application that can be accessed over a network, such as the…
Q: The InstantRide Management team founded a new team for car maintenance. The new team is responsible…
A: Hello student I am going to explain you about this question in next step
Q: a. Write a PHP program to create a Database by name "Hospital", also create a table with name…
A: Php Code: <!DOCTYPE html><head> <title></title></head> <body>…
Q: using xamapp to write an php code for send message and store it in the database when click in the…
A: Here we assume we have text area and given a send button, so then user writing the message click on…
Q: Generate a project file with the correct dependencies Configure the application properties file for…
A: I have an example you may understand
Q: A gym wants to store user profile information in a NOSQL database. Write MongoDB interactive shell…
A: You have uploaded multiple questions . I am giving solution of first one . please upload all…
Q: Which of the following objects connects a database to a DataSet object? a. BindingSource b. DataBase…
A: Object that is used to connect a database to a DataSet object is: The TableAdapter object is used…
Q: Create a Node.js Server (or an express server if you want) to serve different requests for…
A: Server: Installing genus Herpestes and making the Person Schema$ npm init -yWith the project…
Q: 1. which one(s) of the following change(s) the name of a database? a) sp_rename b) sp_renamedb c)…
A: Note as per our guidelines we are supposed to answer?️ only one question. Kindly repost other…
Q: If there is a database by the name StudentMarks in MongoDB then you can use use StudentMarks command…
A: Below is the answer:
Q: Task 4: The Development team of InstantStay wants to ensure that all email data of the users are…
A: Create a TRIGGER called email_insert that will SET new email addresses to lowercase and run before…
Q: • Open MS Access, Select New, type Northwind on the search field, double click to open Northwind…
A: Due to the honor code, I can solve the first 3 questions. Please resubmit the remaining question.
Q: • Create a new database called 'Library' • Create two tables in the database O First table name is…
A: A database is an organized collection of data, so that it can be easily accessed and managed. You…
Q: We need to create a database for the Circulation Department of a public library. The database will…
A: The database schema would have the following structure (primary keys are italicised and foreign keys…
Q: First, create a MySql database or use an existing database (make sure to use a UTF8 character set)…
A: To set the Character set to UTF-8 use below command: SET NAMES 'utf8'; above command will set the…
Q: Modify the following code to perform simple password verification in PHP. if (___($password,…
A: We are only allowed to answer 1 question at a time, please repost the remaining questions…
Q: What are the three stages during the startup of an Oracle database? If a copy of the control file is…
A: Since you have asked multiple questions, we will solve the first one for you. If you want any…
Q: ) Create a trigger so that when user tries to update category table, new value won't take effect…
A: A) DECLARECursor c1 is select table_name from user_tables; BEGINOPEN c1;FETCH c1 INTO tables c1…
Q: 19. Which of the followings could be defined as a field in a database?. A. Muhammad Adib Najmi B. SP…
A: BELOW i have answered:
Q: Write a query against the Sales.Orders table that returns orders placed in June 2015. 2)Write a…
A: Since you have asked multiple questions, so we have provided answer for first three questions. If…
Q: I need help creating a table in Java/HTML from a SQL database. My syntax isn't working. DB table:…
A: For creating table in Java from a SQL database, we ca use JDBC connection. import java.sql.*; public…
Q: Create a MySQL Database called “CSC306Class”. Create three (3) tables in the database called…
A: CREATE DATABASE:A new SQL database is created using the CREATE DATABASE statement.Syntax:CREATE…
Q: Which of the following is the correct definition of alias in SQL statement? a. It specifies the…
A: We can rename a table or a column temporarily by giving another name known as Alias. The use of…
Q: The database has three tables for tracking horse- riding lessons: 1. Horse with columns: o ID -…
A: Answer: Create table Horse with below attributes, respective data types, and primary key create…
Q: You are creating a database for storing information for a Netflix like service. The database stores…
A: Below I have provided the E-R diagram of the given question
Q: Create a database called book_store that has a table called books in which has (book_name, author,…
A: 1) Create Database: CREATE DATABASE `book_store`; Create Database Screenshot: Create books table:…
Q: Use below command to build and load initial data to inventory collections.. There must be 8…
A: (a): db.inventory.find({qty:75}) (b): db.inventory.find({qty: {$gt:40,$lt:80}}) (c):…
Q: Given the data in this table, which of the following functional dependencies hold? FoodLog Food Түре…
A: The functional dependencies hold by the given table FoodLog are 1. FirstName,LastName -> Eaten 2.…
Q: Use below command to build and load initial data to inventory collections.. There must be 8…
A: use db : to create a database named db…
Q: For each of the following statements, circle T (True) or F (False)
A: Defined the given statement true or false
Q: Use below command to build and load initial data to inventory collections.. There must be 8…
A: Answer: (a): db.inventory.find({qty: 75}) (b): db.inventory.find({qty: {$gt:40, $1t:80}}) (c):…
Q: me Data type Constraint AuthorID Integer, auto-increment Primary key Name Up to 40 characters…
A: Use phpmyadmin to create a MySQL database called “library” that contains the following tables:…
Q: Create the same City Database that you created in the first question using Hash table. Add another…
A: The program is written in C++ As you have mentioned, Hash table is created for storing city s in…
Q: Q1/ A library service wants to create a database to store details ofits libraries, books and…
A: Solution: Approach: Step 1: List of entities and sub entities: Book BookCopy Library: two kinds…
PHP script
Step by step
Solved in 4 steps with 1 images
- Population Database Compile and run CreateCityDB.java which will create a Java DB database named CityDB. The CityDB database will have a table named City, with the following columns: CityName & Population. Their Data Types: CHAR(50) Primary Key & DOUBLE. The CityName column stores the name of a city, and the Population column stores the population of that city. After you run the CreateCityDB.java program, the City table will contain 20 rows with various cities and their populations. Next, create an application that connects to the CityDB database and allows the user to select any of the following operations: Sort the list of cities by population, in ascending order. Sort the list of cities by population, in descending order. Sort the list of cities by name. Get the total population of all the cities. Get the average population of all the cities. Get the highest population. Get the lowest population. CreateCityDB.java import java.sql.*; /** This program creates the CityDB…In this database we have users that can be two types students or instructors. They have groups and memberships. Any user can post and the post type can be video, photo or text. Here is the table structure: CREATE TABLE USER_ ( USER_ID INT NOT NULL AUTO_INCREMENT, CREATE_DATE DATE NOT NULL, PROF_DESC VARCHAR (100), PROF_PIC VARCHAR(40), LOCATION VARCHAR (40) NOT NULL, PRIMARY KEY (USER_ID) ); CREATE TABLE USER_INFO( USER_ID INT NOT NULL, SU_EMAIL CHAR(18), USER_FNAME VARCHAR(15), USER_LNAME VARCHAR (15), USER_DOB DATE, USER_GENDER CHAR(1), PRIMARY KEY (USER_ID), FOREIGN KEY (USER_ID) REFERENCES USER_(USER_ID) ON UPDATE CASCADE ); CREATE TABLE STUDENT ( SU_ID INT NOT NULL, USER_ID INT NOT NULL, YEAR_ VARCHAR (10), MAJOR VARCHAR (20), LOCATION VARCHAR (40) NOT NULL, PRIMARY KEY (SU_ID), FOREIGN KEY (USER_ID) REFERENCES USER_(USER_ID) ON UPDATE CASCADE ); CREATE TABLE INSTRUCTOR ( SU_ID INT NOT NULL, USER_ID INT NOT NULL, DEPARTMENT VARCHAR (40), INSTR_TYPE VARCHAR (40),…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…
- 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.assume that a database has a table named Stock, with thefollowing columns:Column Name TypeTrading_Symbol nchar(10)Company_Name nchar(25)Num_Shares intPurchase_Price moneySelling_Price money Write a Select statement that returns the Trading_Symbol column only from the rows where Selling_Price is greater than Purchase_Price and Num_Shares is greater than 100.Task 6: The StayWell Property Management team considers creating a discount scheme for the property owners with more than one property in the system. You will need to provide all the owner IDs (OWNER_NUM) and the count of properties of the owners with more than one active property in the database. The output columns should be OWNER_NUM and COUNT(*) respectively.
- # Question 1#Using the World database, in the city table, insert a new city for the Tasmania district. The city name is ‘Devonport’, #country code is ‘AUS’, district is ‘Tasmania’ and population is 25,387. Remember, the ID is set to auto-increment #and you will not assign a value. You will insert 2 snips for this question: #a. Insert a snip of the construct used. This MUST be a snip of the code used to insert this city into the city table. #b. Run a query to display the entire new row of Devonport inserted in the City table. Insert your snip here:You have a list of all your contacts details that you would like to store in a database. Your goal is that when a record is inserted in contacts table, you also want this record to be stored (inserted) in a backup table. Assume you have the two tables created: CONTACTS and CONTACTS_BACKUP. These two (2) tables have the same records. The CONTACTS table have the following columns: CONTACT_ID (Primary_Key), FIRSTNAME, LASTNAME and MOBILE_NO. CONTACTS_ID FIRSTNAME LASTNAME MOBILE_NO 1 100 Princess Kim 813023895 2 101 Henry Packer 811257891 3 102 Petrus Johannes 855698712 4 103 Lukas Shilongo 832584691 The CONTACTS_BACKUP table have the same columns and records as the CONTACTS table. CONTACTS_ID FIRSTNAME LASTNAME MOBILE_NO 100 Princess Kim 813023895 2 101 Henry Packer 811257891 3 102 Petrus Johannes 855698712 4 103 Lukas Shilongo 832584691 You now need to keep both tables in sync so that when a record is inserted into the CONTACTS table it should automatically be inserted into…Write Mysql code for: 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. Hint: Perform a join on the LessonSchedule, Student, and Horse tables, matching the student IDs and horse IDs.
- Below is part of a student database for your reference. The primary keys are highlighted in bold. Student (studNo, studlvame, address, mobileNo) Registration (studNo, courseNo, regDate, semester, session) Course (courseNo, courseName, creditHour, level) Project (projNo, projName, courseNo) Assignment (projNo, studNo, startDate, dueDate, hoursSpent) Fill the empty lines (Line 10, 12, 22, 23, 27) with the appropriate PL/SQL code so as to complete the following anonymous block. The anonymous block displays the list of courses taken by a certain student. Allow the user to enter the STUDENT NAME: 1. ACCEPT studname PROMPT 'Enter the student name:' 2. 3. DECLARE 4. v_cid course.courseno%TYPE; 5. V_sname student.studname%TYPE:= '&studname; 6. V_cname course.coursename%TYPE; 7. 8. CURSOR course_list IS 9. SELECT c.courseno, c.coursename 10. 11. WHERE s.studno = r.studno 12. 13. AND studname = V_sname; 14. 15. BEGIN 16. 17. OPEN course_list; 18. 19. DBMS_OUTPUT.PUT_LINE(List of courses for…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 $400.00 29 GR56 Grant Cleaners 737 Allard Kingston TX 78084 512-555-1231 $215.00 $225.00 22…Sales Database: Customers(custId, lastName, firstName, address, phone, creditLimit) Orders(ordNumber, itemNumber, qtyOrdered.) Items(itemNumber, itemName, price) For the Sales Database referenced above, write the SQL command to create the LineItem table, assuming the Orders table and items table already exist.