Answered step by step
Verified Expert Solution
Question
1 Approved Answer
SHOW SQL CODE WITH OUTPUT Question 12: 1. Consider the following table: Column Name BusNo Origin Destination Rate Kilometer Start time Datatype NUMERIC VARCHAR VARCHAR
SHOW SQL CODE WITH OUTPUT
Question 12: 1. Consider the following table: Column Name BusNo Origin Destination Rate Kilometer Start time Datatype NUMERIC VARCHAR VARCHAR DECIMAL NUMERIC NUMERIC Size 4 10 10 Constraint Primary Key NOTNULL NOTNULL NOTNULL CHECK for >200 5,2 5 2.2 a) Write a SQL command to create the above table and insert suitable data. b) Find out the bus no which has the same destination like other bus but rate is greater than the other. c) Create a view bus consisting of busno, origin, destination, start_time of buses with destination as Agra
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started