CREATE TABLE CLIENTS e_mail name surn1 surn2 birthdate phone address DNI ; VARCHAR2 (100), VARCHAR2 (80),...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
CREATE TABLE CLIENTS e_mail name surn1 surn2 birthdate phone address DNI ; VARCHAR2 (100), VARCHAR2 (80), VARCHAR2 (80) VARCHAR2 (80), when RFID 1 CONSTRAINT PK_CLIENTS PRIMARY KEY (e_mail), CONSTRAINT UK_CLIENTS UNIQUE (DNI) I ); DATE, NUMBER (9), VARCHAR2 (100), VARCHAR2 (8), CREATE TABLE ATTENDANCES ( client performer VARCHAR2 (100), VARCHAR2 (100), DATE, VARCHAR2 (120) NOT NULL, DATE, purchase CONSTRAINT PK_ATTENDANCES PRIMARY KEY (client, performer, when), CONSTRAINT UK_ATTENDANCES UNIQUE (performer, when, RFID), CONSTRAINT FK_ATTENDANCES1 FOREIGN KEY (performer, when) REFERENCES CONCERTS ON DELETE CASCADE, CONSTRAINT FK_ATTENDANCES2 FOREIGN KEY (client) REFERENCES CLIENTS SQL> select C.e_mail, concat(C.name, C.surn1) name, ROUND ((SYSDATE C.birthdate)/365, 1) age from clients C join attendances A on C.e_mail-A.client where e_mail not in (select e_mail from bannedfans) and A.client in (select A.client, count (A.perform er) num_attend from attendances A where A. performer-melopack.get_current_performer() group by A.client having count (A.perform er)>1) and A.performer-melopack.get_current_performer(); select C.e_mail, concat(C.name, C.surn1) name, ROUND ((SYSDATE C.birthdate)/365, 1) age from clients C join attendances A on C.e_mail=A.client where e_mail not in (select e_mail from bannedfans) and A.client in (select A.client, count (A. performer) n um_attend from attendances A where A.performer-melopack.get_current_performer () group by A.client having count (A. performer) >1 ) and A. performer=melopack.get_current_performer () ERROR at line 1: ORA-00913: too many values CREATE TABLE CLIENTS e_mail name surn1 surn2 birthdate phone address DNI ; VARCHAR2 (100), VARCHAR2 (80), VARCHAR2 (80) VARCHAR2 (80), when RFID 1 CONSTRAINT PK_CLIENTS PRIMARY KEY (e_mail), CONSTRAINT UK_CLIENTS UNIQUE (DNI) I ); DATE, NUMBER (9), VARCHAR2 (100), VARCHAR2 (8), CREATE TABLE ATTENDANCES ( client performer VARCHAR2 (100), VARCHAR2 (100), DATE, VARCHAR2 (120) NOT NULL, DATE, purchase CONSTRAINT PK_ATTENDANCES PRIMARY KEY (client, performer, when), CONSTRAINT UK_ATTENDANCES UNIQUE (performer, when, RFID), CONSTRAINT FK_ATTENDANCES1 FOREIGN KEY (performer, when) REFERENCES CONCERTS ON DELETE CASCADE, CONSTRAINT FK_ATTENDANCES2 FOREIGN KEY (client) REFERENCES CLIENTS SQL> select C.e_mail, concat(C.name, C.surn1) name, ROUND ((SYSDATE C.birthdate)/365, 1) age from clients C join attendances A on C.e_mail-A.client where e_mail not in (select e_mail from bannedfans) and A.client in (select A.client, count (A.perform er) num_attend from attendances A where A. performer-melopack.get_current_performer() group by A.client having count (A.perform er)>1) and A.performer-melopack.get_current_performer(); select C.e_mail, concat(C.name, C.surn1) name, ROUND ((SYSDATE C.birthdate)/365, 1) age from clients C join attendances A on C.e_mail=A.client where e_mail not in (select e_mail from bannedfans) and A.client in (select A.client, count (A. performer) n um_attend from attendances A where A.performer-melopack.get_current_performer () group by A.client having count (A. performer) >1 ) and A. performer=melopack.get_current_performer () ERROR at line 1: ORA-00913: too many values
Expert Answer:
Answer rating: 100% (QA)
It looks like you are attempting to execute a SQL statement that joins two tables CLIENTS and ATTENDANCES but are facing an ORA00913 too many values e... View the full answer
Related Book For
Posted Date:
Students also viewed these databases questions
-
How has the real estate industry evolved or changed throughout time? Write a critically discussion.
-
optimize the queries below by indexing and clustering to lower the amounts of consistent gets. The tables related to the queries are below. I want to be able to create clusters of the tables trucks...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Arrange the following events in the correct temporal sequence during eukaryotic cell division, starting with the earliest: (a) condensation of the chromosomes, (b) Movement of chromosomes to the...
-
The possibility of age discrimination in hiring MINI CASE Southeast Tile Distributors Inc. is a building tile wholesaler that originated in Atlanta but is now considering expansion throughout the...
-
Garden Sculptures presents the following data relating to the expected operations for the months of January to March 2018. Required a. Prepare a cash budget on a monthly basis for the three months...
-
US Obesity Levels by State and over Time These questions refer to the graphs found at http://stateofobesity.org/adult-obesity/ which show a sequence of maps of US states, colored by the proportion of...
-
Collyer Products Inc. has a Valve Division that manufactures and sells a standard valve as follows: The company has a Pump Division that could use this valve in the manufacture of one of its pumps....
-
x Bond Issue B (A) Cash Interest Paid $600,000.0 (B) Period Interest Expense Period 12.0% x (E) x 12.5% Ending 3/12 x 3/12 (C) Amort. (A) - (B) (D) (E) Carrying Value Unamortized $600,000 Balance (D)...
-
Crane Housing PLC has a current ratio of 2.5 and total current assets worth 5 million. Crane housing also has some long-term borrowings where the bank has stipulated that the current ratio of the...
-
What is Chemical Engineering and what are some of its applications?
-
What are the 8 symbols in Edgar Allan Poe's Fall of the House of Usher?
-
How has the U.S criminal judicial system shown industrialized racism ? explain
-
What is the theme of the poem "The Red Wheelbarrow?"
-
What are the advantages of Faulkner's use of firstperson plural point of view in "A Rose for Emily"?
-
Why does Odysseus conceal his identity when he is at the court of Alcinous?
-
To determine whether the series absolutely convergent, or divergent a description in the form write it in a similar form, aki where k begins at 2. This is not strictly necessary, but makes the k = 2...
-
One Way Cellular accountants have assembled the following data for the year ended September 30, 2014: Prepare the operating activities section using the indirect method for One Way Cellulars...
-
Create a simple E-R model depicting entities and relationship lines for data scenario. Every employee in a company is assigned to one department. Every department can contain many employees.
-
Which of the following is not a valid constraint type? a. PRIMARY KEYS b. UNIQUE c. CHECK d. FOREIGN KEY
-
Which of the following is an object privilege? a. CREATE SESSION b. DROP USER c. INSERT ANY TABLE d. UPDATE
-
A plate-and-frame filter press operating at a constant $\Delta P$ of $150 \mathrm{psi}$ is to be used to filter a sludge containing $2 \mathrm{lb}_{\mathrm{m}}$ of solids per $\mathrm{ft}^{3}$ of...
-
A slurry is being filtered at a net rate of $10,000 \mathrm{gal} /$ day by a plate-and-frame filter with 15 frames with an active filtering area of $1.5 \mathrm{ft}^{2}$ per frame, fed by a positive...
-
A slurry containing $40 %$ solids by volume is delivered to a rotary drum filter, which is $4 \mathrm{ft}$ in diameter and $6 \mathrm{ft}$ long and operates at a vacuum of $25 \mathrm{in}$....
Study smarter with the SolutionInn App