
Concept explainers
SQL:
Create a SQL query that uses an uncorrelated subquery and no joins to display the descriptions for products provided by a vendor in area code 615. Remember, the main difference between a correlated subquery and uncorrelated subquery is that, in a correlated subquery, the inner query is dependent upon the outer query, while, with an uncorrelated query, the inner query does not depend upon the outer query. Instead, it runs just once. You should NOT use union, minus, or intersect in this query. The outer query will use the PRODUCT table and the inner query will use the VENDOR table [hint: you should have 9 records of output].
My code:
select p_descript from product where (select v_areacode from vendor where v_areacode = '615' ;
I am getting this error, problem is I can't see what is missing any assistance is appreciated.
ORA-00936: missing expression


Trending nowThis is a popular solution!
Step by stepSolved in 3 steps

- Imagine that you are a database manager at a company that makes custom shirts. One column in the database lists the wholesale price of the shirts. A second column lists the labor charge, which is currently set to 11 percent of the wholesale price of the shirt. A third column lists the retail price of the shirt, which is the combination of the wholesale price and the labor charge. Write the statements that calculate the values that belongs in the second and third columns. How could you use a query to format these columns?arrow_forward3. Show the ID of all the authors that do not have any books. a). Using a join: b). Using a subquery:arrow_forwardRefer to the film and inventory tables of the Sakila database. The tables in this lab have the same columns and data types but fewer rows. Write a query that lists the titles of films with the fewest rows in the inventory table. This query requires a subquery that computes the minimum of counts by film_id: SELECT MIN(count_film_id) FROM ( SELECT COUNT(film_id) AS count_film_id FROM inventory GROUP BY film_id ) AS temp_table; This subquery is provided in the template.arrow_forward
- Let's wa(k through a review of basic SQL syntax, using as an example the database that was mentionedearlier. This database has the following simple structure(* indicates a primary key):Courses: CourseID*, CourseName, TeacherIDTeachers: TeacherID*, TeacherNameStudents; StudentID*, StudentNameStudentCourses: CourseID*, StudentID*Using the above table, implement the following queries.Query 1: Student Enrollment Query 2: Teacher Class Sizearrow_forwardDatabase Systems please help me answer this question I will give you a good rating Thank you!arrow_forwardYour implementation must directly follow a comment with a specification of a subtask.(1) First, write a SQL statement to create a new relational table SALARY that consists oftwo columns salary_level and minimum_salary. The columnsalary_level is defined the same type as it defined in a table LPOSITION. Thecolumn minimum_salary type is decimal that can store the value between 0.00and 999999.99. The primary of the SALARY is salary_level.(2) Next, write SQL statements to inserts into the relation table SALARY informationabout salary levels and minimum salaries by using the data in a table below.+--------------+---------------------+| Salary level | Minimum salary |+--------------+---------------------+| A | 56700.00 |+--------------+---------------------+| B | 65500.00 |+--------------+---------------------+| C | 77800.00 |+--------------+---------------------+| D | 89600.00 |+--------------+---------------------+| E | 105300.00 |+--------------+---------------------+ (3) Next, write a…arrow_forward
- A key for this database is {Departure Time}. Enter a different key for the database. Airline Flight Number Gate Destination Departure Time FlyRight 221 34 Denver 08:27 JetGreen 222 13 Anchorage 08:43 JetGreen 199 22 Honolulu 08:46 JetGreen 322 34 Anchorage 09:36 FlyRight 122 33 Honolulu 09:45 FlyRight 323 22 Detroit 09:50 FlyRight 222 33 Denver 09:55 Key: { Ex: Gatearrow_forwardComposite main keys have prospective keys.arrow_forwardA cake shop named "Whisk" has an online presence. It has multiple flavors of cakes supplied by various vendors. The manager wants to know the cost of the available quantity. Write a sql query to get the total cost of the available cakes. Code should run on Mysql. Data type along with the sample input and output is mentioned below:- Cake: Column Type Cake_Id int Flavor varchar(100) Cost int Producer varchar(20) Stock int Sample Input :- Cake: Cake_id Flavor Cost Producer Stock 1001 Vanilla 450 Just bake 8 1003 Chocolate 500 Flower Aura 12 1004 Red velvet 600 Bakingo 1 1005 Strawberry 700 Bigbasket 2 1006 Cinnamon 900 Creamy 1 1007 Vanilla 900 Creamy 2 1008 Mango 900 Just bake 2 1009 Strawberry 550 Creamy 2 Sample output - 17200arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





