In order to provide the accurate and precise query, you would need to provide the db schema containing the table and column names. Since you have not provided it, I am providing the query by assuming the table and column names. Feel free to reach out in case of any queries.
QUERY
CREATE CLUSTERED INDEX vEmployeeList ON Employee (lastName, firstName);
SQL SQL STATEMENT Create a clustered index on the vEmployeeList view using the Last Name and...
SQL Command - Create a view called S LIST that lists the Cardholder Number, last name, first name and due date for all cardholders who have not returned a book. Use the CREATE OR REPLACE VIEW AS ... command. TABLE CARD HOLDERS Cardholder Numberint NOT NULL CONSTRAINT CH PK PRIMARY KEY, First_Name varchar(10) NULL, LastName varchar(15) NULL, Address varchar(20) NULL, varchar(15) NULL, State char(2) NULL, Zip_Code char(5) NULL) City TABLE BOOKS CHECKED OUT Cardholder_Numberint NOT NULL, Book Numberint NOT NULL,...
(SQL Coding) Create a view called: VIEW_COUNTRY_REGION_INFO Show the country id, country name, and region name that each country belongs to. Be sure to use syntax that will allow you to rerun the code without dropping the view and make the view read only.
Teacher table is queried often using teacher name as the condition. Create an index that will improve the performance of this query. You need to choose the most appropriate index
Write an SQL statement that will display the Employee ID, First name (only last 2 letters), phone number (replace . by /) of all employees whose job Id has a word ‘REP’.
2) What were the total rental fees for each member by member last name? (w3schools-> SQL Inner Join& SQL Functions Count, Avg, Sum & SOL Group By)- this requires 2 joins 13) What were the total rental fees for members treport Mem num who total fees were greater than $5-change the output label to FeesMoreThan5S? (w3schools->SQL Inner Join & SQL Functions Count, Avg, Sum& SQL Group By & SQL Having) 14) What was the highest fee paid by each member...
sql server please help me>>> Create a stored procedure called uspRetrieveOrders that returns all the orders for a last name. It should return first name, last name, item price, discount amount, quantity, the line item extended amount ((ItemPrice-DiscountAmount)*Quantity), the tax amount, and the card type. It should accept LastName as a parameter. Include logic to test if the customer exists in the database. If not, generate an error message. Show the code you used to test the proc.
I need to write a SQL query that displays the first name and last name of each author along with the number of books he or she has written. Capitalize the first and last names. AUTHOR table: AUTHORID, LNAME, FNAME BOOKAUTHOR table: ISBN, AUTHORID BOOKS table: ISBN, TITLE, PUBDATE, PUBID, COST, RETAIL, DISCOUNT, CATEGORY
I need to create a code based off of what the users first name
and last name are along with a random set of numbers no longer than
10 characters
as the picture below demonstrate (Java language)
Scenario: You have been appointed by the CS department to create a username generator to create CS email accounts automatically. The CS email will have the following format: Username@cs.utep.du. Your username must have a limit of 10 characters. Your program, will provide three...
SQL Queries – in this assignment you will be asked to create several SQL queries relating to the Sakila database that we installed in class. You may freely use DBeaver to create these queries, but I will expect your solution to show me the SQL code to answer or complete the tasks below. Write a query that produces the last name, first name, address, district, and phone number for every customer in the customer table. (You don’t need to include...
Provide the SQL to create a view to retrieve the total number of a particular product a particular customer ordered, the name of that product and the customer ID Hint: You will do this by executing an implict join on Orders and OrderDetails, with a condition for 'OrderDetails.ProductID in (query to retreive product)' and will use the sum() function