Q2. A Railway company uses machines …
CBSE, JEE, NEET, CUET
Question Bank, Mock Tests, Exam Papers
NCERT Solutions, Sample Papers, Notes, Videos
Q2. A Railway company uses machines to sell tickets. The machine details and daily sales information are recorded in two tables:
46 16
Table Name: Machine
Field
Data Type
Machine_ID
Station
CHAR (3)
CHAR (30)
Table Name: Sales
Field
Data Type
Machine_ID
CHAR (3)
Date
Tickets Sold
DATE
INTEGER
Income
DECIMAL (8,2)
The primary key of the table Machine is Machine_ID. Records in the table Sales are uniquely identified by the fields Machine_ID and Date
(a) Create the tables Machine and Sales.
(b) Write a query to find the number of ticket machines in each station.
(c) Write a query to find the total ticket income of the station "New Delhi" of each day.
(d) Write a query to find the total number of tickets sold by the machine ( ID = 122 till date.
Posted by Devmani Dhrithlahre 1 year, 5 months ago
- 1 answers
Related Questions
Posted by Priya Shukla 1 year, 3 months ago
- 1 answers
Posted by Prawar Narang 1 year, 3 months ago
- 1 answers
Posted by Hanni Pham 1 year, 1 month ago
- 1 answers
Posted by Syedali Fathima 1 year, 3 months ago
- 1 answers
Posted by Kandeepan Jothivel 1 year, 4 months ago
- 2 answers
Posted by Hanni Pham 1 year, 1 month ago
- 0 answers
myCBSEguide
Trusted by 1 Crore+ Students
Test Generator
Create papers online. It's FREE.
CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
Parveen Singh 1 year, 5 months ago
Few rules to keep homework help section safe, clean and informative.
Remember the goal of this website is to share knowledge and learn from each other. Ask questions and help others by answering questions.
4Thank You