11
answers
0
watching
200
views
5 Feb 2020

Create a database with the following tables and write queries in MySQL:

SALESMAN{SID, FNAME, LNAME, PRODID, QUAN, AMT}

PRODUCT{PID, PNAME, IN_STOCK}

  1. Write an SQL Query to display the first names of the salesperson in the upper case using the alias FIRST_NAME.

  2. Write an SQL COMMAND to display the names of the products that are out of stock.

  3. Write an SQL Query to display the details of the salesperson whose sale_amount is the second highest.

For unlimited access to Homework Help, a Homework+ subscription is required.

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Bunny Greenfelder
Bunny GreenfelderLv2
5 Feb 2020
Already have an account? Log in

Weekly leaderboard

Start filling in the gaps now
Log in